Skip to content

Commit dba4720

Browse files
committed
feat: add varsIgnorePattern to @typescript-eslint/no-unused-vars
1 parent 5df1bbd commit dba4720

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/eslint-config/src/__snapshots__/next.rules.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"@typescript-eslint/no-unused-vars": [
88
"error",
99
{
10-
"argsIgnorePattern": "^_"
10+
"argsIgnorePattern": "^_",
11+
"varsIgnorePattern": "^_"
1112
}
1213
],
1314
"@typescript-eslint/consistent-type-imports": [

packages/eslint-config/src/__snapshots__/recommended.rules.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"@typescript-eslint/no-unused-vars": [
88
"error",
99
{
10-
"argsIgnorePattern": "^_"
10+
"argsIgnorePattern": "^_",
11+
"varsIgnorePattern": "^_"
1112
}
1213
],
1314
"@typescript-eslint/consistent-type-imports": [

packages/eslint-config/src/config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export const typescript = () => [
9696
'error',
9797
{
9898
argsIgnorePattern: '^_',
99+
varsIgnorePattern: '^_',
99100
},
100101
],
101102
"@typescript-eslint/consistent-type-imports": [
@@ -147,7 +148,7 @@ export const react = () => [
147148
"react-hooks/exhaustive-deps": "error",
148149
"react-compiler/react-compiler": "warn",
149150

150-
// from next config
151+
// from next config, comment below is used to track diff
151152

152153
// 'jsx-a11y/alt-text': [
153154
// 'warn',

0 commit comments

Comments
 (0)