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",