fix underscore dangle problem
This commit is contained in:
parent
e6a4741a2e
commit
f9a10d9962
3
index.js
3
index.js
@ -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 }]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user