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