Skip to content

Commit

Permalink
style: update linter to forbid any unused vars except prefixed ones
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Nov 26, 2023
1 parent f43b532 commit 71a27bd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,11 @@

"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": [
"warn",
"error",
{
"args": "all",
// Although this repo uses React 18 the library supports React 16+ so we still need to import React.
"argsIgnorePattern": "^(_|React)",
"varsIgnorePattern": "^(_|React)"
"argsIgnorePattern": "^__",
"varsIgnorePattern": "^__"
}
],
"@typescript-eslint/no-use-before-define": "warn"
Expand Down

0 comments on commit 71a27bd

Please sign in to comment.