Skip to content

Commit 4386501

Browse files
authored
Make unused variable rule a warning, error on warnings for CI (#58059)
1 parent 5fe2ff2 commit 4386501

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
}
111111
],
112112
"@typescript-eslint/no-unused-vars": [
113-
"error",
113+
"warn",
114114
{
115115
// Ignore: (solely underscores | starting with exactly one underscore)
116116
"argsIgnorePattern": "^(_+$|_[^_])",

Herebyfile.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,8 @@ export const lint = task({
538538
"--format",
539539
formatter,
540540
"--report-unused-disable-directives",
541+
"--max-warnings",
542+
"0",
541543
];
542544

543545
if (cmdLineOptions.fix) {

0 commit comments

Comments
 (0)