Skip to content

Commit ff52509

Browse files
authored
feat(eslint): Extend typescript-eslint/naming-convention for class public properties
1 parent d24b187 commit ff52509

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/eslint-config/plugins/typescript-eslint.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ module.exports = {
5555
format: ['camelCase'],
5656
leadingUnderscore: 'allow'
5757
},
58+
{
59+
selector: 'classProperty',
60+
modifiers: ['public'],
61+
format: ['camelCase', 'PascalCase']
62+
},
5863

5964
{ selector: 'class', format: ['StrictPascalCase'] },
6065
{

0 commit comments

Comments
 (0)