Skip to content

Comments

feat(linter): typescript-eslint no-useless-empty-export#3605

Merged
Boshen merged 4 commits intooxc-project:mainfrom
keita-hino:no-useless-empty-export
Jun 12, 2024
Merged

feat(linter): typescript-eslint no-useless-empty-export#3605
Boshen merged 4 commits intooxc-project:mainfrom
keita-hino:no-useless-empty-export

Conversation

@github-actions github-actions bot added the A-linter Area - Linter label Jun 10, 2024
@codspeed-hq
Copy link

codspeed-hq bot commented Jun 10, 2024

CodSpeed Performance Report

Merging #3605 will not alter performance

Comparing keita-hino:no-useless-empty-export (9dd7cb0) with keita-hino:no-useless-empty-export (790949f)

Summary

✅ 22 untouched benchmarks

@DonIsaac DonIsaac added the C-enhancement Category - New feature or request label Jun 10, 2024
@Boshen
Copy link
Member

Boshen commented Jun 12, 2024

I realized that we can just check if module record has empty exports when we see export {}.

This TypeScript case happens to rare, better to ignore it 😅

import _ = require('_');
export {};

@Boshen Boshen merged commit 21d3425 into oxc-project:main Jun 12, 2024
@keita-hino
Copy link
Contributor Author

@Boshen Thank you for the fix🙏

@keita-hino keita-hino deleted the no-useless-empty-export branch June 12, 2024 12:01
@github-actions github-actions bot mentioned this pull request Jun 14, 2024
Boshen added a commit that referenced this pull request Jun 14, 2024
## [0.4.4] - 2024-06-14

### Features

- 8f5655d linter: Add eslint/no-useless-constructor (#3594) (Don Isaac)
- 29c78db linter: Implement
@typescript-eslint/explicit-function-return-type (#3455) (kaykdm)
- 21d3425 linter: Typescript-eslint no-useless-empty-export (#3605)
(keita hino)
- 85c3b83 linter: Eslint-plugin-jest/max-nested-describes (#3585)
(cinchen)
- f6d9ca6 linter: Add `eslint/sort-imports` rule (#3568) (Wang Wenzhe)
- 046ff3f linter/eslint: Add `no_unreachable` rule. (#3238) (rzvxa)
- e32ce00 linter/jsdoc: Implement require-param-name rule (#3636) (Yuji
Sugiura)
- 110661c linter/jsdoc: Implement require-param-description (#3621)
(Yuji Sugiura)
- d6370f1 linter/jsdoc: Implement require-param-type rule (#3601) (Yuji
Sugiura)
- d9c5b33 semantic/cfg: Add `Condition` instruction. (#3567) (Ali
Rezvani)
- f2dfd66 semantic/cfg: Add iteration instructions. (#3566) (rzvxa)

### Bug Fixes

- f0b689d linter: Panic in jsdoc/require-param (#3590) (Don Isaac)
- e148a32 semantic/cfg: Correct unreachability propagation in
try-finally. (#3667) (Ali Rezvani)

### Refactor

- 84304b4 linter: Add a `ctx.module_record()` method (#3637) (Boshen)
- f98f777 linter: Add rule fixer (#3589) (Don Isaac)
- fa11644 linter: Pass `Rc` by value (#3587) (overlookmotel)
- f702fb9 semantic/cfg: Cleanup control flow and it's builder. (#3650)
(rzvxa)
- 5793ff1 transformer: Replace `&’a Trivias` with `Rc<Trivias>` (#3580)
(Dunqing)

Co-authored-by: Boshen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants