MOBILE-3609 lint: Allow underscores in private

main
Noel De Martin 2021-01-19 16:30:26 +01:00
parent 07a389be6b
commit 159613bdb5
1 changed files with 6 additions and 1 deletions

View File

@ -102,6 +102,12 @@ const appConfig = {
selector: 'property', selector: 'property',
format: ['camelCase'], format: ['camelCase'],
}, },
{
selector: 'property',
modifiers: ['private'],
format: ['camelCase'],
leadingUnderscore: 'allow',
},
], ],
'@typescript-eslint/no-empty-function': 'error', '@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-empty-interface': 'off', '@typescript-eslint/no-empty-interface': 'off',
@ -201,7 +207,6 @@ const appConfig = {
'no-new-wrappers': 'error', 'no-new-wrappers': 'error',
'no-sequences': 'error', 'no-sequences': 'error',
'no-trailing-spaces': 'error', 'no-trailing-spaces': 'error',
'no-underscore-dangle': 'error',
'no-unused-labels': 'error', 'no-unused-labels': 'error',
'no-var': 'error', 'no-var': 'error',
'object-curly-spacing': ['error', 'always'], 'object-curly-spacing': ['error', 'always'],