aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2021-12-21 15:52:02 +0000
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2021-12-21 15:52:02 +0000
commit9250be8a1b0b5a6478130a0fd6a832754ac863b0 (patch)
treec86ac0e550d6ba6e1ab06f7a460455efb3e7df6b
parent5bcc7fbcd13c69fb6d9dd9bbecd959fad3d8ca8c (diff)
Configure no-unused-vars plugin
-rw-r--r--.eslintrc.json6
-rw-r--r--package.json4
-rw-r--r--tsconfig.json2
3 files changed, 8 insertions, 4 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index eba937e..04e16af 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -11,5 +11,9 @@
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
- ]
+ ],
+ "rules": {
+ "no-unused-vars": "off",
+ "@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }]
+ }
}
diff --git a/package.json b/package.json
index eabc30e..34e1035 100644
--- a/package.json
+++ b/package.json
@@ -4,8 +4,8 @@
"description": "",
"main": "app/index.mjs",
"scripts": {
- "test": "echo \"Error: no test specified\" && exit 1",
- "start": "node -r dotenv/config app/index.mjs"
+ "start": "tsc && node build/index.js",
+ "lint": "eslint app --ext .ts"
},
"author": "Leonardo Bishop",
"license": "ISC",
diff --git a/tsconfig.json b/tsconfig.json
index 04d1033..4477ab2 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -6,7 +6,7 @@
"module": "es2020",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
- "strict": true
+ "strict": false
},
"include": ["./app/**/*.ts"],
}