Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Sep 10, 2024
1 parent ab65566 commit 3f1e896
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rules/no-rename-default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ export = createRule<[Options?], MessageId>({
return
}

// Some packages have a default export that is meant to be renamed, like "typescript-eslint".
if (defaultExportName === "_default") {

Check failure on line 185 in src/rules/no-rename-default.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20 and ESLint 8.56 on ubuntu-latest

Replace `"_default"` with `'_default'`

Check failure on line 185 in src/rules/no-rename-default.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20 and ESLint 8 on ubuntu-latest

Replace `"_default"` with `'_default'`

Check failure on line 185 in src/rules/no-rename-default.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20 and ESLint 9 on ubuntu-latest

Replace `"_default"` with `'_default'`
return;

Check failure on line 186 in src/rules/no-rename-default.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20 and ESLint 8.56 on ubuntu-latest

Delete `;`

Check failure on line 186 in src/rules/no-rename-default.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20 and ESLint 8 on ubuntu-latest

Delete `;`

Check failure on line 186 in src/rules/no-rename-default.ts

View workflow job for this annotation

GitHub Actions / Lint and Test with Node.js 20 and ESLint 9 on ubuntu-latest

Delete `;`
}

context.report({
node,
messageId: 'renameDefault',
Expand Down

0 comments on commit 3f1e896

Please sign in to comment.