Fix varsIgnorePattern to require character after underscore

Restore the original pattern `^_.+` instead of `^_` so that lingui's
`const { _ } = useLingui()` will still be flagged when unused.
This commit is contained in:
Claude
2026-01-10 22:33:54 +00:00
committed by Samuel Newman
parent 0cd99c841e
commit b88a3a5579
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export default tseslint.config(
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
varsIgnorePattern: '^_.+',
caughtErrors: 'none',
ignoreRestSiblings: true,
},
+1 -1
View File
@@ -170,7 +170,7 @@ export default tseslint.config(
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
varsIgnorePattern: '^_.+',
caughtErrors: 'none',
ignoreRestSiblings: true,
},