Skip to content

Commit 63eca3f

Browse files
committed
Update ESLint config and cspell dictionary
Added 'tsparser' to the cspell dictionary. Modified ESLint config to disable the base 'no-unused-vars' rule for TypeScript files and removed its custom configuration to prevent rule conflicts.
1 parent 48ec2ee commit 63eca3f

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"ruleset",
1616
"sarif",
1717
"tagname",
18+
"tsparser",
1819
"vite",
1920
"VSIX",
2021
"ZIZMOR"

eslint.config.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ module.exports = [
5454
"@typescript-eslint/no-empty-interface": "off",
5555
"@typescript-eslint/no-explicit-any": "off",
5656
"@typescript-eslint/no-non-null-assertion": "off",
57+
// Disable base no-unused-vars rule for TypeScript files to prevent conflicts
58+
"no-unused-vars": "off",
5759
"@typescript-eslint/no-unused-vars": [
5860
"error",
5961
{
@@ -62,14 +64,6 @@ module.exports = [
6264
args: "after-used",
6365
},
6466
],
65-
"no-unused-vars": [
66-
"error",
67-
{
68-
argsIgnorePattern: "^_",
69-
varsIgnorePattern: "^_",
70-
args: "after-used",
71-
},
72-
],
7367
"@typescript-eslint/no-var-requires": "off",
7468
},
7569
},

0 commit comments

Comments
 (0)