瀏覽代碼

chore: 修改ESLint配置

pipipi-pikachu 5 年之前
父節點
當前提交
fa77755c8c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      .eslintrc.js

+ 3 - 3
.eslintrc.js

@@ -63,9 +63,9 @@ module.exports = {
     'no-eval': 'error',
     'no-var': 'error',
     'no-with': 'error',
-    'no-alert': isProduction ? 'warn' : 'off',
-    'no-console': isProduction ? 'warn' : 'off',
-    'no-debugger': isProduction ? 'warn' : 'off',
+    'no-alert': isProduction ? 'error' : 'warn',
+    'no-console': isProduction ? 'error' : 'warn',
+    'no-debugger': isProduction ? 'error' : 'warn',
   },
   overrides: [
     {