Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Sep 11, 2024
1 parent 2c8ac8f commit b2d29e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rules/no-rename-default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ export = createRule<[Options?], MessageId>({
// "typescript-eslint" has a default export of "_default" and "eslint-plugin-jsdoc" has a
// default export of "index".
const defaultExportNameTrimmed = defaultExportName.replace(/^_+/, '') // Trim leading underscores.
if (defaultExportNameTrimmed === 'default' || defaultExportNameTrimmed == 'index') {
if (
defaultExportNameTrimmed === 'default' ||
defaultExportNameTrimmed == 'index'
) {
return
}

Expand Down

0 comments on commit b2d29e0

Please sign in to comment.