Skip to content

Commit

Permalink
chore: allow unused vars with _ prefix (#3420)
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Jan 7, 2025
1 parent 1e09240 commit 6aff69a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,15 @@
},
},
],
// disable the base rule as it can report incorrect errors
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
},
],
},
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ node_modules
package-lock.json
yarn.lock

*.log
# npm pack
*.tgz

*.log
.eslintcache
.parcel-cache
.docs
Expand Down

0 comments on commit 6aff69a

Please sign in to comment.