From 2c39e38b3f3e6aca5d8f6e4f1a8105397ce3e4f4 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Tue, 25 Jun 2024 22:04:07 +0100 Subject: [PATCH] Fail the build if lint warnings appear --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 619a4c482..57ecf5201 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "npm-watch": "^0.11.0" }, "scripts": { - "lint-apps": "node bin/sync-lint-exemptions.mjs && eslint ./apps", - "lint-modules": "eslint ./modules", + "lint-apps": "node bin/sync-lint-exemptions.mjs && eslint --max-warnings 0 ./apps", + "lint-modules": "eslint --max-warnings 0 ./modules", "test": "node bin/sanitycheck.js && npm run lint-apps && npm run lint-modules", "fix": "eslint --fix ./apps ./modules", "update-local-apps": "./bin/create_apps_json.sh apps.local.json",