disallow pascalcase

This commit is contained in:
Timo Hocker 2020-04-08 11:07:42 +02:00
parent f2c5af4b65
commit 6e08dfaaeb

View File

@ -139,7 +139,7 @@ module.exports = {
'block-spacing': ['error', 'always'], 'block-spacing': ['error', 'always'],
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }], 'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
camelcase: 'off', camelcase: 'off',
'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]*)$', { onlyDeclarations: true }], 'id-match': ['error', '^[a-z][a-z0-9_]*$', { onlyDeclarations: true }],
'comma-dangle': ['error', 'never'], 'comma-dangle': ['error', 'never'],
'comma-spacing': 'error', 'comma-spacing': 'error',
'comma-style': 'error', 'comma-style': 'error',