Skip to content

Commit 2733785

Browse files
committed
🚨(linter) add ignore pattern on no-unused-vars rule
The rule @typescript-eslint/no-unused-vars didn't have a ignore pattern. A ignore pattern can be usefull in some cases.
1 parent 99ba414 commit 2733785

File tree

1 file changed

+4
-0
lines changed
  • src/frontend/packages/eslint-config-impress

1 file changed

+4
-0
lines changed

src/frontend/packages/eslint-config-impress/common.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ const eslintTS = [
1313
rules: {
1414
'@typescript-eslint/no-explicit-any': 'error',
1515
'@typescript-eslint/no-non-null-assertion': 'error',
16+
'@typescript-eslint/no-unused-vars': [
17+
'error',
18+
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
19+
],
1620
'sort-imports': [
1721
'error',
1822
{

0 commit comments

Comments
 (0)