Skip to content

Commit 1e091eb

Browse files
committedApr 9, 2024·
feat: improve no-unused-vars options
1 parent 7975fd8 commit 1e091eb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

Diff for: ‎src/configs/javascript.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,15 @@ export async function javascript(
201201
'symbol-description': 'error',
202202
'unicode-bom': ['error', 'never'],
203203
'unused-imports/no-unused-imports': isInEditor ? 'off' : 'error',
204-
205204
'unused-imports/no-unused-vars': [
206205
'error',
207-
{ args: 'after-used', argsIgnorePattern: '^_', vars: 'all', varsIgnorePattern: '^_' },
206+
{
207+
args: 'after-used',
208+
argsIgnorePattern: '^_',
209+
ignoreRestSiblings: true,
210+
vars: 'all',
211+
varsIgnorePattern: '^_',
212+
},
208213
],
209214
'use-isnan': ['error', { enforceForIndexOf: true, enforceForSwitchCase: true }],
210215
'valid-typeof': ['error', { requireStringLiterals: true }],

0 commit comments

Comments
 (0)