From 7003d8a68782147f4cb285a8355d76b84f2b8a56 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Fri, 3 Jul 2020 15:44:00 +0800 Subject: [PATCH] build(webui): run lint on pre-commit run linter in production mode --- komga-webui/package.json | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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" } },