fix underscore dangle problem

This commit is contained in:
Timo Hocker 2020-04-17 14:51:59 +02:00
parent e6a4741a2e
commit f9a10d9962

View File

@ -36,9 +36,6 @@ module.exports = {
'@typescript-eslint/camelcase': 'off', '@typescript-eslint/camelcase': 'off',
'@typescript-eslint/naming-convention': ['error', '@typescript-eslint/naming-convention': ['error',
{ selector: 'default', format: ['snake_case'] }, { selector: 'default', format: ['snake_case'] },
{ selector: 'memberLike', modifiers: ['private'], format: ['snake_case'], leadingUnderscore: 'require' },
{ selector: 'method', format: ['snake_case'], leadingUnderscore: 'forbid' },
{ selector: 'function', format: ['snake_case'], leadingUnderscore: 'forbid' },
{ selector: 'typeLike', format: ['PascalCase'] } { selector: 'typeLike', format: ['PascalCase'] }
], ],
'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]*)$', { onlyDeclarations: true }] 'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]*)$', { onlyDeclarations: true }]