This commit is contained in:
Timo Hocker 2020-04-08 20:00:15 +02:00
parent 79e1379d4e
commit 53bb7c5046

View File

@ -31,6 +31,8 @@ module.exports = {
'@typescript-eslint/naming-convention': ['error',
{ 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'] }
],
'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]*)$', { onlyDeclarations: true }]