Skip to content

Commit

Permalink
Enabled no-unused-vars eslint rule (#79-3)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Aug 8, 2024
1 parent 8f15b73 commit 2cc4a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"eqeqeq": ["warn", "always", { "null": "ignore" }],
"no-console": "warn",
"no-throw-literal": "warn",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"semi": "off"
},
"overrides": [
Expand Down
2 changes: 1 addition & 1 deletion src/services/DhService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export abstract class DhService<TDH = unknown, TClient = unknown>
// 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}`);

Expand Down

0 comments on commit 2cc4a8b

Please sign in to comment.