From dce745fbc6c67af167b789add055d63c81ca7048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=A3=E9=A1=B6?= Date: Thu, 9 Nov 2023 22:29:56 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=20eslint=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index ebc3a5f..237a81c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -32,7 +32,7 @@ module.exports = { // 添加vue和@typescript-eslint插件,增强eslint的能力 plugins: ['vue', '@typescript-eslint'], rules: { - 'no-console': 2, // + 'no-console': ['error', { allow: ['warn', 'error'] }], // 禁止提交 log 'import/no-extraneous-dependencies': 0, // 禁止使用无关的包 'import/no-unresolved': 0, // 关闭检查未解析的模块 'vue/multi-word-component-names': 0, // 禁止使用多单词组件名