From b1b917c9a3fab392f8105c10b2ca722eec498c8d Mon Sep 17 00:00:00 2001
From: TheMas3212 <mas3212@gmail.com>
Date: Tue, 12 Apr 2022 04:50:30 +1000
Subject: [PATCH] fix lint ci task and allow unused parameters with _ prefix

---
 .eslintrc.js | 1 +
 package.json | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index f76817b2a..ba69b8ac6 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -353,6 +353,7 @@ module.exports = {
         "no-useless-constructor": [
           "off", // Valid for typescript due to property ctor shorthand
         ],
+        "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
         "@typescript-eslint/ban-ts-comment": "off",
         "@typescript-eslint/ban-ts-ignore": "off",
         "@typescript-eslint/camelcase": "off",
diff --git a/package.json b/package.json
index f078e7233..db8685195 100644
--- a/package.json
+++ b/package.json
@@ -115,8 +115,8 @@
     "start:container": "webpack-dev-server --progress --env.devServer --mode development --env.runInContainer",
     "build": "webpack --mode production",
     "build:dev": "webpack --mode development",
-    "lint": "eslint --fix . --ext js,jsx,ts,tsx",
-    "lint:report": "eslint --ext js,jsx,ts,tsx .",
+    "lint": "eslint --fix --ext js,jsx,ts,tsx --max-warnings 0 .",
+    "lint:report": "eslint --ext js,jsx,ts,tsx --max-warnings 0 .",
     "preinstall": "node ./tools/engines-check/engines-check.js",
     "postinstall": "cd electron && npm install",
     "test": "jest",
@@ -131,4 +131,4 @@
     "electron:packager-linux": "electron-packager .package bitburner --platform linux --arch x64 --out .build --overwrite --icon .package/icon.png",
     "allbuild": "npm run build && npm run electron && git add --all && git commit -m \"allbuild commit $(git rev-parse --short HEAD)\" && git push -f -u origin dev"
   }
-}
+}
\ No newline at end of file