chore: cleanup unusued variables + enable linting (#38898)

This commit is contained in:
Milan Burda 2023-06-26 11:51:54 +02:00 committed by GitHub
parent e900f6ecc3
commit ef6569b7d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 31 additions and 89 deletions

View file

@ -272,7 +272,7 @@ function parseCommandLine () {
const opts = minimist(process.argv.slice(2), {
boolean: ['c++', 'objc', 'javascript', 'python', 'gn', 'patches', 'help', 'changed', 'fix', 'verbose', 'only'],
alias: { 'c++': ['cc', 'cpp', 'cxx'], javascript: ['js', 'es'], python: 'py', changed: 'c', help: 'h', verbose: 'v' },
unknown: arg => { help = true; }
unknown: () => { help = true; }
});
if (help || opts.help) {
console.log('Usage: script/lint.js [--cc] [--js] [--py] [-c|--changed] [-h|--help] [-v|--verbose] [--fix] [--only -- file1 file2]');