From 2cc4a8bf3d5b9196afc4cb2a0b093bee74d05311 Mon Sep 17 00:00:00 2001 From: Brian Ingles Date: Thu, 8 Aug 2024 10:45:45 -0500 Subject: [PATCH] Enabled no-unused-vars eslint rule (#79-3) --- .eslintrc.json | 1 + src/services/DhService.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 008a0948..d3c9ddca 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -13,6 +13,7 @@ "eqeqeq": ["warn", "always", { "null": "ignore" }], "no-console": "warn", "no-throw-literal": "warn", + "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], "semi": "off" }, "overrides": [ diff --git a/src/services/DhService.ts b/src/services/DhService.ts index e9d345ca..3fe568a9 100644 --- a/src/services/DhService.ts +++ b/src/services/DhService.ts @@ -335,7 +335,7 @@ export abstract class DhService // assignments inside of the `forEach` and will treat `lastPanel` as `null`. let lastPanel = null as vscode.WebviewPanel | null; - changed.forEach(({ title = 'Unknown', type }, i) => { + changed.forEach(({ title = 'Unknown', type }) => { const icon = icons[type as IconType] ?? type; this.outputChannel.appendLine(`${icon} ${title}`);