Make unused variable rule a warning, error on warnings for CI (#58059)

This commit is contained in:
Jake Bailey 2024-04-03 10:29:27 -07:00 committed by GitHub
parent 5fe2ff2288
commit 4386501285
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,7 @@
}
],
"@typescript-eslint/no-unused-vars": [
"error",
"warn",
{
// Ignore: (solely underscores | starting with exactly one underscore)
"argsIgnorePattern": "^(_+$|_[^_])",

View File

@ -538,6 +538,8 @@ export const lint = task({
"--format",
formatter,
"--report-unused-disable-directives",
"--max-warnings",
"0",
];
if (cmdLineOptions.fix) {