Treat ESLint warnings as errors in all packages

Add --max-warnings 0 to every eslint lint script so that any warning
causes a non-zero exit code. This makes `make lint` and CI fail on
warnings, not just hard errors.

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-03-25 17:00:32 +01:00
parent 93c3b70ecc
commit a3580a5647
4 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
"dev": "vite --port 5174",
"relay": "find src -type d -name \"__generated__\" -exec rm -rf {} + && npx relay-compiler ./relay.config.json",
"build": "tsc -b && vite build",
"lint": "eslint . --concurrency 2",
"lint": "eslint . --concurrency 2 --max-warnings 0",
"check": "tsc --noEmit -p tsconfig.app.json",
"preview": "vite preview"
},