style: eslint规则修改

This commit is contained in:
pipipi-pikachu 2021-02-03 15:04:31 +08:00
parent ea3dfef74f
commit 6ce23b0e01
92 changed files with 724 additions and 730 deletions

View File

@ -49,13 +49,7 @@ module.exports = {
'named': 'never',
'asyncArrow': 'always',
}],
'keyword-spacing': ['error', { 'overrides': {
'if': { 'after': false },
'for': { 'after': false },
'while': { 'after': false },
'function': { 'after': false },
'switch': { 'after': false },
}}],
'keyword-spacing': ['error'],
'prefer-const': 'error',
'no-useless-return': 'error',
'array-bracket-spacing': 'error',