This commit is contained in:
huzhushan 2021-04-19 19:02:57 +08:00
parent 08238c4a7d
commit bdc2e5cae5
2 changed files with 3 additions and 8 deletions

View File

@ -14,13 +14,8 @@ module.exports = {
rules: { rules: {
"no-console": 0, "no-console": 0,
'no-use-before-define': 'off', 'no-use-before-define': 'off',
'no-unused-vars': [ 'no-unused-vars': 'warn',
'warn', 'vue/no-unused-vars': 'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'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

@ -46,7 +46,7 @@
}, },
"husky": { "husky": {
"hooks": { "hooks": {
"pre-commit": "lint-staged" "pre-commit": "npm run lint-staged"
} }
}, },
"lint-staged": { "lint-staged": {