fix: no-console

This commit is contained in:
Anthony Fu 2021-05-09 15:45:25 +08:00
parent c968eccbcd
commit ab21039962

View File

@ -93,8 +93,8 @@ module.exports = {
'comma-style': ['error', 'last'], 'comma-style': ['error', 'last'],
'comma-dangle': ['error', 'always-multiline'], 'comma-dangle': ['error', 'always-multiline'],
'no-constant-condition': 'warn', 'no-constant-condition': 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': 'error',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-console': '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 }],