From 3d7f96290c4f523a14af649f7874d0dbe89180cc Mon Sep 17 00:00:00 2001 From: huzhushan Date: Tue, 20 Apr 2021 11:38:44 +0800 Subject: [PATCH] update --- .eslintrc.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 88770a3..f2524ce 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -15,7 +15,7 @@ module.exports = { 'no-console': 0, 'no-use-before-define': 'off', 'no-unused-vars': [ - 'error', + 'warn', { // 允许声明未使用变量 vars: 'local', @@ -23,7 +23,7 @@ module.exports = { args: 'none', }, ], - 'vue/no-unused-vars': 'error', + 'vue/no-unused-vars': 'warn', 'no-prototype-builtins': 'off', 'space-before-function-paren': 'off', 'vue/custom-event-name-casing': 'off', diff --git a/package.json b/package.json index 280b230..aeb1e2e 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "build": "vite build", "build:mock": "vite build --mode mock", "serve": "vite preview", - "lint": "eslint --fix --ext .js,.vue src" + "lint": "eslint --ext .js,.vue src" }, "browserslist": [ "> 1%",