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: {
"no-console": 0,
'no-use-before-define': 'off',
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'no-unused-vars': 'warn',
'vue/no-unused-vars': 'warn',
'no-prototype-builtins': 'off',
'space-before-function-paren': 'off',
'vue/custom-event-name-casing': 'off',

View File

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