-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(eslint-bulk): add eslint-bulk README
- Loading branch information
1 parent
20b7275
commit 8aa2e0f
Showing
4 changed files
with
96 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# THIS IS A STANDARD TEMPLATE FOR .npmignore FILES IN THIS REPO. | ||
|
||
# Ignore all files by default, to avoid accidentally publishing unintended files. | ||
* | ||
|
||
# Use negative patterns to bring back the specific things we want to publish. | ||
!/bin/** | ||
!/lib/** | ||
!/lib-*/** | ||
!/dist/** | ||
!ThirdPartyNotice.txt | ||
|
||
# Ignore certain patterns that should not get published. | ||
/dist/*.stats.* | ||
/lib/**/test/ | ||
/lib-*/**/test/ | ||
*.test.js | ||
|
||
# NOTE: These don't need to be specified, because NPM includes them automatically. | ||
# | ||
# package.json | ||
# README (and its variants) | ||
# CHANGELOG (and its variants) | ||
# LICENSE / LICENCE | ||
|
||
#-------------------------------------------- | ||
# DO NOT MODIFY THE TEMPLATE ABOVE THIS LINE | ||
#-------------------------------------------- | ||
|
||
# (Add your project-specific overrides here) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# @rushstack/eslint-bulk | ||
|
||
This is a companion package for @rushstack/eslint-patch. | ||
|
||
The **eslint-bulk** package is a set of command line tools to use with the ESLint bulk suppressions | ||
patch. The commands are optional as they are just a thin wrapper over eslint shipped with the correct | ||
environment variables to interface with the patch. | ||
|
||
## eslint-bulk suppress | ||
|
||
Use this command to automatically generate bulk suppressions for the given files and given rules. | ||
Supply the files as the main argument. The "files" argument is a glob pattern thatfollows the same | ||
rules as the "eslint" command. | ||
|
||
```bash | ||
eslint-bulk suppress path/to/file1 path/to/file2 path/to/directory --rule rule1 --rule rule2 | ||
``` | ||
|
||
## eslint-bulk cleanup | ||
|
||
Use this command to automatically delete unused suppression entries for the given files in the | ||
corresponding .eslint-bulk-suppressions.json file(s). Supply the files as the main argument. The | ||
"files" argument is a glob pattern thatfollows the same rules as the "eslint" command. | ||
|
||
```bash | ||
eslint-bulk cleanup path/to/file1 path/to/file2 path/to/directory | ||
``` | ||
|
||
# Links | ||
|
||
- [CHANGELOG.md](https://github.com/microsoft/rushstack/blob/main/eslint/eslint-bulk/CHANGELOG.md) - Find | ||
out what's new in the latest version | ||
|
||
`@rushstack/eslint-bulk` is part of the [Rush Stack](https://rushstack.io/) family of projects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters