فهرست منبع

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: [
     {