Add npm run lint-no-fix option (#93)

This commit is contained in:
TrueDoctor 2021-05-02 21:27:44 +02:00 committed by Keavon Chambers
parent cb9d34c84d
commit 9ad5f4ce78
2 changed files with 5 additions and 3 deletions

View file

@ -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",

View file

@ -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"
}
}
}