initial commit. phase 1 complete

This commit is contained in:
2026-05-05 20:45:19 +02:00
parent d9c68313a0
commit 89e058ffac
20631 changed files with 3224610 additions and 43 deletions
@@ -0,0 +1,42 @@
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
import { pruneAsync } from './prune';
import { suppressAsync } from './suppress';
import { isCorrectCwd } from './utils/is-correct-cwd';
import { printHelp } from './utils/print-help';
if (process.argv.includes('-h') || process.argv.includes('-H') || process.argv.includes('--help')) {
printHelp();
process.exit(0);
}
if (process.argv.length < 3) {
printHelp();
process.exit(1);
}
if (!isCorrectCwd(process.cwd())) {
console.error('@rushstack/eslint-bulk: Please call this command from the directory that contains .eslintrc.js or .eslintrc.cjs');
process.exit(1);
}
const subcommand = process.argv[2];
let processPromise;
switch (subcommand) {
case 'suppress': {
processPromise = suppressAsync();
break;
}
case 'prune': {
processPromise = pruneAsync();
break;
}
default: {
console.error('@rushstack/eslint-bulk: Unknown subcommand: ' + subcommand);
process.exit(1);
}
}
processPromise.catch((e) => {
if (e instanceof Error) {
console.error(e.message);
process.exit(1);
}
throw e;
});
//# sourceMappingURL=start.js.map