allow numbers in id

This commit is contained in:
Timo Hocker 2020-01-24 09:41:14 +01:00
parent 50ad07a41e
commit 3b6d8355e9

View File

@ -144,7 +144,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-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',