This commit is contained in:
huzhushan 2021-04-20 11:38:44 +08:00
parent b71570c759
commit 3d7f96290c
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ module.exports = {
'no-console': 0, 'no-console': 0,
'no-use-before-define': 'off', 'no-use-before-define': 'off',
'no-unused-vars': [ 'no-unused-vars': [
'error', 'warn',
{ {
// 允许声明未使用变量 // 允许声明未使用变量
vars: 'local', vars: 'local',
@ -23,7 +23,7 @@ module.exports = {
args: 'none', args: 'none',
}, },
], ],
'vue/no-unused-vars': 'error', 'vue/no-unused-vars': 'warn',
'no-prototype-builtins': 'off', 'no-prototype-builtins': 'off',
'space-before-function-paren': 'off', 'space-before-function-paren': 'off',
'vue/custom-event-name-casing': 'off', 'vue/custom-event-name-casing': 'off',

View File

@ -13,7 +13,7 @@
"build": "vite build", "build": "vite build",
"build:mock": "vite build --mode mock", "build:mock": "vite build --mode mock",
"serve": "vite preview", "serve": "vite preview",
"lint": "eslint --fix --ext .js,.vue src" "lint": "eslint --ext .js,.vue src"
}, },
"browserslist": [ "browserslist": [
"> 1%", "> 1%",