summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-09-02 13:51:06 +0200
committerTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-09-02 14:23:29 +0200
commitd4d84e4e8185ac9e76534d4c03fe41a5e00206a6 (patch)
treeeaf8b07145227924181f07168f4398a949323840
parent1d77f526e1f6a7a19c0cc76d2a6a08137a81f1ee (diff)
downloadmullvadvpn-d4d84e4e8185ac9e76534d4c03fe41a5e00206a6.tar.xz
mullvadvpn-d4d84e4e8185ac9e76534d4c03fe41a5e00206a6.zip
Update npm lint script to set the --max-warnings argument
We want the exit code to be non-zero when there are warnings in the code.
-rw-r--r--desktop/packages/mullvad-vpn/package.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/packages/mullvad-vpn/package.json b/desktop/packages/mullvad-vpn/package.json
index 10d115feda..3392e409c9 100644
--- a/desktop/packages/mullvad-vpn/package.json
+++ b/desktop/packages/mullvad-vpn/package.json
@@ -83,7 +83,7 @@
"build:standalone": "node tasks/build-standalone.js",
"pack-test-executable": "./scripts/build-test-executable.sh",
"build-test-executable": "npm run pack-test-executable",
- "lint": "eslint .",
+ "lint": "eslint . --max-warnings 0",
"lint-fix": "eslint --fix .",
"e2e": "npm run build:test && npm run e2e:no-build",
"e2e:no-build": "xvfb-maybe -- playwright test mocked",