Skip to content

Commit

Permalink
fix(eslint-plugin): [naming-convention] allow PascalCase for imports (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Oct 26, 2023
1 parent 428a1bd commit 7ad86ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/eslint-plugin/docs/rules/naming-convention.md
Expand Up @@ -80,6 +80,11 @@ const defaultOptions: Options = [
trailingUnderscore: 'allow',
},

{
selector: 'import',
format: ['camelCase', 'PascalCase'],
},

{
selector: 'variable',
format: ['camelCase', 'UPPER_CASE'],
Expand Down
5 changes: 5 additions & 0 deletions packages/eslint-plugin/src/rules/naming-convention.ts
Expand Up @@ -39,6 +39,11 @@ const defaultCamelCaseAllTheThingsConfig: Options = [
trailingUnderscore: 'allow',
},

{
selector: 'import',
format: ['camelCase', 'PascalCase'],
},

{
selector: 'variable',
format: ['camelCase', 'UPPER_CASE'],
Expand Down

0 comments on commit 7ad86ee

Please sign in to comment.