fix: no-console allow warn and error

This commit is contained in:
Anthony Fu 2021-06-11 16:10:51 +08:00
parent 8952ede579
commit 8dce7d171d

View File

@ -93,7 +93,7 @@ module.exports = {
'comma-dangle': ['error', 'always-multiline'], 'comma-dangle': ['error', 'always-multiline'],
'no-constant-condition': 'warn', 'no-constant-condition': 'warn',
'no-debugger': 'error', 'no-debugger': 'error',
'no-console': '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', 'never'],
'key-spacing': ['error', { beforeColon: false, afterColon: true }], 'key-spacing': ['error', { beforeColon: false, afterColon: true }],