Skip to content

Commit ad64b1f

Browse files
committed
fix(@typescript-eslint): require enum names to be pascal or upper case
1 parent 52d2a30 commit ad64b1f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

@typescript-eslint.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ const config = {
3030
'@typescript-eslint/naming-convention': [
3131
'error',
3232
{ selector: 'typeLike', format: ['PascalCase'] },
33-
{ selector: 'variable', format: ['camelCase', 'UPPER_CASE'] }
33+
{ selector: 'variable', format: ['camelCase', 'UPPER_CASE'] },
34+
{ selector: 'enumMember', format: ['PascalCase', 'UPPER_CASE'] }
3435
],
3536
'@typescript-eslint/no-dynamic-delete': 'error',
3637
'@typescript-eslint/no-extra-non-null-assertion': 'error',

0 commit comments

Comments
 (0)