From a3580a564756f414c9df996c5ec20aaad348f146 Mon Sep 17 00:00:00 2001 From: Sacha Al Himdani Date: Wed, 25 Mar 2026 17:00:32 +0100 Subject: [PATCH] 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 --- apps/console/package.json | 2 +- apps/trust/package.json | 2 +- packages/eslint-config/package.json | 2 +- packages/ui/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/console/package.json b/apps/console/package.json index 9089ac9a4..68100eb93 100644 --- a/apps/console/package.json +++ b/apps/console/package.json @@ -9,7 +9,7 @@ "relay-compile": "npx relay-compiler", "relay": "npm run relay-clean && npm run relay-compile", "build": "tsc -b && vite build", - "lint": "eslint . --concurrency 4", + "lint": "eslint . --concurrency 4 --max-warnings 0", "check": "tsc --noEmit -p tsconfig.app.json", "preview": "vite preview" }, diff --git a/apps/trust/package.json b/apps/trust/package.json index d453eb99d..d3a714680 100644 --- a/apps/trust/package.json +++ b/apps/trust/package.json @@ -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" }, diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 1f7f70a4d..9718cbbef 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -20,7 +20,7 @@ "#stylisticConfigs": "./src/stylisticConfigs.ts" }, "scripts": { - "lint": "eslint src" + "lint": "eslint src --max-warnings 0" }, "keywords": [], "author": "", diff --git a/packages/ui/package.json b/packages/ui/package.json index fc1cbbe37..ae4063aea 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -6,7 +6,7 @@ "sideEffects": false, "main": "src/index.ts", "scripts": { - "lint": "eslint . --concurrency 2", + "lint": "eslint . --concurrency 2 --max-warnings 0", "dev": "storybook dev -p 6006 --no-open", "check": "tsc --noEmit -p tsconfig.app.json", "icons": "bun run src/Atoms/Icons/generator.ts"