Skip to content

Commit 7ec0a46

Browse files
committed
Make unused variables an ESLint error, not just a warning (#568)
We don't have any unused variables, nor do we want to have them, but keeping this as a warning means we'll occasionally commit code with unused variables. This is quite annoying in GitHub UI that shows warnings in the list of changed files in every PR even for files that weren't changed as a part of the PR.
1 parent c7b6d3f commit 7ec0a46

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@typescript-eslint/no-explicit-any": 0,
4242
"@typescript-eslint/no-empty-interface": 0,
4343
"@typescript-eslint/no-empty-function": 0,
44+
"@typescript-eslint/no-unused-vars": "error",
4445
"no-constant-condition": 0
4546
}
4647
},

0 commit comments

Comments
 (0)