eslint: add key-spacing and space-unary-ops rules
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
11
.eslintrc.js
11
.eslintrc.js
@ -69,6 +69,10 @@ module.exports = {
|
||||
eqeqeq: 'error',
|
||||
indent: ['error', 2],
|
||||
'jsx-quotes': ['error', 'prefer-single'],
|
||||
'key-spacing': [
|
||||
'error',
|
||||
{ mode: 'minimum' },
|
||||
],
|
||||
'no-catch-shadow': 'error',
|
||||
'no-cond-assign': 'error',
|
||||
'no-console': [
|
||||
@ -111,6 +115,13 @@ module.exports = {
|
||||
'prefer-const': 'error',
|
||||
quotes: ['error', 'single'],
|
||||
semi: 'error',
|
||||
'space-unary-ops': [
|
||||
'error',
|
||||
{
|
||||
words: true,
|
||||
nonwords: false,
|
||||
},
|
||||
],
|
||||
strict: 'off',
|
||||
'valid-typeof': 'error',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user