Commit bb1eca949c930e4df446067be87cab537a6b26ba

Michael Schmidt 2021-04-17T22:21:15

ESLint: Fail CI if there are warnings (#2847)

diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 21fdfe0..d6794f9 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -56,4 +56,4 @@ jobs:
         with:
           node-version: 14.x
       - run: npm ci
-      - run: npm run lint
+      - run: npm run lint:ci
diff --git a/package.json b/package.json
index c8a9e94..a6b14e0 100755
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
     "start": "http-server -c-1",
     "lint": "eslint .",
     "lint:fix": "eslint . --fix",
+    "lint:ci": "eslint . --max-warnings 0",
     "test:aliases": "mocha tests/aliases-test.js",
     "test:core": "mocha tests/core/**/*.js",
     "test:dependencies": "mocha tests/dependencies-test.js",