Skip to content

Commit f1981cd

Browse files
committed
TCS-8 Add Report used ignore pattern
Add the option `reportUsedIgnorePattern` to the ESlint config. This will prevent accidentally prefixing variables with `_` when they shouldn't be.
1 parent 98e6bc2 commit f1981cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ const core = [
3030
'array-callback-return': ['error', { checkForEach: true }],
3131
'@typescript-eslint/no-unused-vars': [
3232
'error',
33-
{ argsIgnorePattern: '^_', ignoreRestSiblings: true },
33+
{
34+
argsIgnorePattern: '^_',
35+
ignoreRestSiblings: true,
36+
reportUsedIgnorePattern: true,
37+
},
3438
],
3539
'@typescript-eslint/array-type': [
3640
'error',

0 commit comments

Comments
 (0)