set id match to enforce snake_case
This commit is contained in:
parent
e0c22546b9
commit
0e552a5b37
3
index.js
3
index.js
@ -132,7 +132,8 @@ module.exports = {
|
|||||||
'array-element-newline': ['error', { multiline: true, minItems: 2 }],
|
'array-element-newline': ['error', { multiline: true, minItems: 2 }],
|
||||||
'block-spacing': ['error', 'always'],
|
'block-spacing': ['error', 'always'],
|
||||||
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
|
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
|
||||||
camelcase: 'error',
|
camelcase: 'off',
|
||||||
|
'id-match': ['error', '^[a-z][a-z-]*$', { onlyDeclarations: true }],
|
||||||
'comma-dangle': ['error', 'never'],
|
'comma-dangle': ['error', 'never'],
|
||||||
'comma-spacing': 'error',
|
'comma-spacing': 'error',
|
||||||
'comma-style': 'error',
|
'comma-style': 'error',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user