From ab21039962d1e24f026714abd394dbea19199eb2 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 9 May 2021 15:45:25 +0800 Subject: [PATCH] fix: no-console --- packages/basic/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/basic/index.js b/packages/basic/index.js index 7e91c0c..1d00dc4 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -93,8 +93,8 @@ module.exports = { 'comma-style': ['error', 'last'], 'comma-dangle': ['error', 'always-multiline'], 'no-constant-condition': 'warn', - 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', - 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', + 'no-debugger': 'error', + 'no-console': 'error', 'no-cond-assign': ['error', 'always'], 'func-call-spacing': ['off', 'never'], 'key-spacing': ['error', { beforeColon: false, afterColon: true }],