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:
@@ -9,7 +9,7 @@
|
|||||||
"relay-compile": "npx relay-compiler",
|
"relay-compile": "npx relay-compiler",
|
||||||
"relay": "npm run relay-clean && npm run relay-compile",
|
"relay": "npm run relay-clean && npm run relay-compile",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
"lint": "eslint . --concurrency 4",
|
"lint": "eslint . --concurrency 4 --max-warnings 0",
|
||||||
"check": "tsc --noEmit -p tsconfig.app.json",
|
"check": "tsc --noEmit -p tsconfig.app.json",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"dev": "vite --port 5174",
|
"dev": "vite --port 5174",
|
||||||
"relay": "find src -type d -name \"__generated__\" -exec rm -rf {} + && npx relay-compiler ./relay.config.json",
|
"relay": "find src -type d -name \"__generated__\" -exec rm -rf {} + && npx relay-compiler ./relay.config.json",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
"lint": "eslint . --concurrency 2",
|
"lint": "eslint . --concurrency 2 --max-warnings 0",
|
||||||
"check": "tsc --noEmit -p tsconfig.app.json",
|
"check": "tsc --noEmit -p tsconfig.app.json",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"#stylisticConfigs": "./src/stylisticConfigs.ts"
|
"#stylisticConfigs": "./src/stylisticConfigs.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint src"
|
"lint": "eslint src --max-warnings 0"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint . --concurrency 2",
|
"lint": "eslint . --concurrency 2 --max-warnings 0",
|
||||||
"dev": "storybook dev -p 6006 --no-open",
|
"dev": "storybook dev -p 6006 --no-open",
|
||||||
"check": "tsc --noEmit -p tsconfig.app.json",
|
"check": "tsc --noEmit -p tsconfig.app.json",
|
||||||
"icons": "bun run src/Atoms/Icons/generator.ts"
|
"icons": "bun run src/Atoms/Icons/generator.ts"
|
||||||
|
|||||||
Reference in New Issue
Block a user