eslint --init
Showing
.husky/pre-commit
0 → 100755
... | ... | @@ -10,18 +10,8 @@ |
"build:prod": "vue-cli-service build", | ||
"build:stage": "vue-cli-service build --mode staging", | ||
"preview": "node build/index.js --preview", | ||
"lint": "eslint --ext .js,.vue src" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"src/**/*.{js,vue}": [ | ||
"eslint --fix", | ||
"git add" | ||
] | ||
"lint": "eslint --ext .js,.vue src", | ||
"prepare": "husky install" | ||
}, | ||
"keywords": [ | ||
"vue", | ||
... | ... | @@ -79,7 +69,8 @@ |
"sass-loader": "10.1.1", | ||
"script-ext-html-webpack-plugin": "2.1.5", | ||
"svg-sprite-loader": "5.1.1", | ||
"vue-template-compiler": "2.6.12" | ||
"vue-template-compiler": "2.6.12", | ||
"husky": "^8.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=8.9", | ||
... | ... |
Please register or sign in to comment