Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
feat: ajoute pattern d'ignore pour les variables dans la règle `@type…
Browse files Browse the repository at this point in the history
…script-eslint/no-unused-vars`
  • Loading branch information
nicolassutter committed Jul 19, 2023
1 parent e5cffc8 commit 4714d6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function getConfig() {
rules: {
'@typescript-eslint/no-unused-vars': [
'error',
{ args: 'all', argsIgnorePattern: '^_' },
{ args: 'all', argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],

/**
Expand Down Expand Up @@ -73,6 +73,7 @@ function getConfig() {
},
},
],
'no-unused-vars': 'off',
},
},
],
Expand Down
5 changes: 2 additions & 3 deletions src/vue-typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@ function getConfig() {
rules: typescriptConfig.rules,

overrides: [
...(typescriptConfig.overrides ?? []),
{
files: ['*.{vue,ts,tsx}'],
files: ['*.vue'],
rules: {
// On utilise la règle de TS qui fait déjà le boulot
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
],
Expand Down

0 comments on commit 4714d6b

Please sign in to comment.