diff --git a/komga-webui/package.json b/komga-webui/package.json index 7f05ba9f6..457429d6b 100644 --- a/komga-webui/package.json +++ b/komga-webui/package.json @@ -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", diff --git a/package.json b/package.json index 47b9866ae..4e0a45b02 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ }, "husky": { "hooks": { + "pre-commit": "npm run --prefix komga-webui lint", "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } },