Skip to content

Commit 5d173eb

Browse files
committed
🔧 Patch ESLint naming convention rule for Enum Members
I needed to make an enum with camelCase properties for the display panel... 😭
1 parent c01c611 commit 5d173eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

eslint.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ const CUSTOM_RULES: ConfigWithExtends['rules'] = {
171171
},
172172
{
173173
selector: 'enumMember',
174+
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
175+
},
176+
{
177+
selector: 'enum',
174178
format: ['UPPER_CASE'],
175179
},
176180
] satisfies NamingConventionRule,

0 commit comments

Comments
 (0)