Skip to content

Commit 96544bc

Browse files
authored
Enhance ESLint configuration to allow PascalCase for React imports in addition to camelCase. This improves consistency in import naming conventions. (#362)
1 parent 25d92be commit 96544bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/eslint-config/base.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ export const config = [
4646
types: ["function"],
4747
format: ["camelCase", "PascalCase"],
4848
},
49+
// Allow PascalCase for React imports
50+
{
51+
selector: "import",
52+
format: ["camelCase", "PascalCase"],
53+
},
4954
],
5055
"preferArrows/prefer-arrow-functions": [
5156
"warn",

0 commit comments

Comments
 (0)