build(webui): run lint on pre-commit

run linter in production mode
This commit is contained in:
Gauthier Roebroeck 2020-07-03 15:44:00 +08:00
parent 521cc42858
commit 7003d8a687
2 changed files with 2 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"serve": "vue-cli-service serve --port 8081",
"build": "vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"lint": "vue-cli-service lint"
"lint": "vue-cli-service lint --mode production"
},
"dependencies": {
"axios": "^0.19.2",

View file

@ -13,6 +13,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run --prefix komga-webui lint",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},