1
0
Fork 0

Fail the build if lint warnings appear

master
Rob Pilling 2024-06-25 22:04:07 +01:00
parent b6c013a9ae
commit 2c39e38b3f
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@
"npm-watch": "^0.11.0" "npm-watch": "^0.11.0"
}, },
"scripts": { "scripts": {
"lint-apps": "node bin/sync-lint-exemptions.mjs && eslint ./apps", "lint-apps": "node bin/sync-lint-exemptions.mjs && eslint --max-warnings 0 ./apps",
"lint-modules": "eslint ./modules", "lint-modules": "eslint --max-warnings 0 ./modules",
"test": "node bin/sanitycheck.js && npm run lint-apps && npm run lint-modules", "test": "node bin/sanitycheck.js && npm run lint-apps && npm run lint-modules",
"fix": "eslint --fix ./apps ./modules", "fix": "eslint --fix ./apps ./modules",
"update-local-apps": "./bin/create_apps_json.sh apps.local.json", "update-local-apps": "./bin/create_apps_json.sh apps.local.json",