@rushstack/eslint-bulk
This is a companion package for @rushstack/eslint-patch that should be installed globally as follows:
npm i -g @rushstack/eslint-bulk
The eslint-bulk package is a set of command line tools to use with the ESLint bulk suppressions patch.
eslint-bulk commands must be run in the same current working directory containing your package's pertaining
.eslintrc.js or .eslintrc.cjs file.
eslint-bulk suppress
Use this command to automatically generate bulk suppressions for the given files and given rules.
Supply the paths as the main argument. The paths argument is a glob pattern that follows the same
rules as the "files" argument in the "eslint" command.
eslint-bulk suppress --rule NAME1 [--rule NAME2...] PATH1 [PATH2...]
eslint-bulk suppress --all PATH1 [PATH2...]
eslint-bulk prune
Use this command to automatically delete all unused suppression entries in all .eslint-bulk-suppressions.json
files under the current working directory.
eslint-bulk prune
Links
@rushstack/eslint-bulk
is part of the Rush Stack family of projects.