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:
@@ -42,7 +42,7 @@ export default tseslint.config(
|
|||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
argsIgnorePattern: '^_',
|
argsIgnorePattern: '^_',
|
||||||
varsIgnorePattern: '^_',
|
varsIgnorePattern: '^_.+',
|
||||||
caughtErrors: 'none',
|
caughtErrors: 'none',
|
||||||
ignoreRestSiblings: true,
|
ignoreRestSiblings: true,
|
||||||
},
|
},
|
||||||
|
|||||||
+1
-1
@@ -170,7 +170,7 @@ export default tseslint.config(
|
|||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
argsIgnorePattern: '^_',
|
argsIgnorePattern: '^_',
|
||||||
varsIgnorePattern: '^_',
|
varsIgnorePattern: '^_.+',
|
||||||
caughtErrors: 'none',
|
caughtErrors: 'none',
|
||||||
ignoreRestSiblings: true,
|
ignoreRestSiblings: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user