From e34b70d7519cd9430f7e8186e0411bdce24acee0 Mon Sep 17 00:00:00 2001 From: johnthagen Date: Mon, 8 Feb 2021 08:57:12 -0500 Subject: [PATCH] Cause npm run lint to fail if warnings are detected (#999) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 652a83a633..2834d0739e 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "import-sem-doms": "tsc scripts/importSemanticDomains.ts && node scripts/importSemanticDomains.js", "license-report": "npm install && license-checker --production", "license-summary": "npm install && license-checker --production --summary", - "lint": "eslint --ext js,ts,tsx,jsx src", + "lint": "eslint --max-warnings=0 --ext js,ts,tsx,jsx src", "predatabase": "tsc scripts/setupMongo.ts && node scripts/setupMongo.js", "set-admin-user": "tsc scripts/setAdminUser.ts && node scripts/setAdminUser.js", "start": "npm install && npm-run-all --parallel backend database frontend",