Skip to content

Commit 6076e5a

Browse files
committed
Allow some variables to be unused with explicit _ prefix
1 parent fd6b9b3 commit 6076e5a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

eslint.config.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ export default defineConfig(
3131
"@typescript-eslint/no-empty-function": 0,
3232
"prefer-template": 2,
3333
"@typescript-eslint/consistent-type-imports": 2,
34+
// Disabled to allow some variables to be explicitly ignored
35+
"@typescript-eslint/no-unused-vars": [
36+
"error",
37+
{
38+
vars: "all",
39+
args: "after-used",
40+
argsIgnorePattern: "^_",
41+
varsIgnorePattern: "^_",
42+
caughtErrorsIgnorePattern: "^_",
43+
destructuredArrayIgnorePattern: "^_",
44+
ignoreRestSiblings: true,
45+
},
46+
],
3447
},
3548
},
3649
{

0 commit comments

Comments
 (0)