chore: simplified off rules (#192)

This commit is contained in:
L.Rain 2023-06-01 22:08:06 +08:00 committed by GitHub
parent 84ae087ea0
commit 0a9c9b0384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ module.exports = {
'no-debugger': 'error', 'no-debugger': 'error',
'no-console': ['error', { allow: ['warn', 'error'] }], 'no-console': ['error', { allow: ['warn', 'error'] }],
'no-cond-assign': ['error', 'always'], 'no-cond-assign': ['error', 'always'],
'func-call-spacing': ['off', 'never'], 'func-call-spacing': 'off',
'key-spacing': ['error', { beforeColon: false, afterColon: true }], 'key-spacing': ['error', { beforeColon: false, afterColon: true }],
'indent': ['error', 2, { SwitchCase: 1, VariableDeclarator: 1, outerIIFEBody: 1 }], 'indent': ['error', 2, { SwitchCase: 1, VariableDeclarator: 1, outerIIFEBody: 1 }],
'no-restricted-syntax': [ 'no-restricted-syntax': [
@ -327,7 +327,7 @@ module.exports = {
'array-callback-return': 'error', 'array-callback-return': 'error',
'block-scoped-var': 'error', 'block-scoped-var': 'error',
'consistent-return': 'off', 'consistent-return': 'off',
'complexity': ['off', 11], 'complexity': 'off',
'eqeqeq': ['error', 'smart'], 'eqeqeq': ['error', 'smart'],
'no-alert': 'warn', 'no-alert': 'warn',
'no-case-declarations': 'error', 'no-case-declarations': 'error',