From 9ad5f4ce781a7a7cecb5de36c6918f9dfd6b7532 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Sun, 2 May 2021 21:27:44 +0200 Subject: [PATCH] Add npm run lint-no-fix option (#93) --- client/web/package.json | 3 ++- package.json | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/client/web/package.json b/client/web/package.json index 68516aef3..13e86ac4f 100644 --- a/client/web/package.json +++ b/client/web/package.json @@ -6,7 +6,8 @@ "scripts": { "serve": "vue-cli-service serve || npm install && vue-cli-service serve", "build": "vue-cli-service build || npm install && vue-cli-service build", - "lint": "vue-cli-service lint || npm install && vue-cli-service lint" + "lint": "vue-cli-service lint || (npm install && vue-cli-service lint)", + "lint-no-fix": "vue-cli-service lint --no-fix || (echo 'Please run `npm run lint`. If the linter execution fails, try running `npm install` first.' && false)" }, "repository": { "type": "git", diff --git a/package.json b/package.json index 5213ca74b..a140b1a74 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "serve": "cd client && cd web && npm run serve", "build": "cd client && cd web && npm run build", - "lint": "cd client && cd web && npm run lint" + "lint": "cd client && cd web && npm run lint", + "lint-no-fix": "cd client && cd web && npm run lint-no-fix" } -} \ No newline at end of file +}