lint-filter
Version:
Lint touched code stricter
63 lines (42 loc) • 2.44 kB
Markdown
Only show style errors of things that have changed since master. This support tools that support exporting output in checkstyle format. This can be useful if you want to convert a project gradually towards a new config, (e.g. adding a new rule from the latest release of your linter). Another case were this is beneficial is were you do not want to break a build when updating the linter.
[![Build status][build-badge]][build-link] [![Join the conversation at gitter][gitter-badge]][gitter-link]
```
npm install --save-dev lint-filter
```
You can use this in two different ways, either by reading files or reading from stdin.
```
lint-filter checkstyle-report.xml
```
```
cat checkstyle-report.xml | lint-filter
eslint . -f checkstyle | lint-filter
```
```
$ lint-filter -h
Usage: lint-filter [options] <subcommand|file ...>
Options:
-h, --help output usage information
-V, --version output the version number
-f, --format [format] The output format
-b, --branch [branch] The branch to diff against
```
The first argument can either be a file or a sub command. The available sub commands are listed
below.
* `list-files` - list the files in the current diff that lint-filter will use. Nice for faster linting.
Firstly, all contributions is super appreciated :sparkles:
If you have questions, bug report or feature requests you are encouraged to drop by our [gitter channel][gitter-link] and say hi. If you are comfortable with it bug reports in form of a pull-request with a broken test would be awesome. *Unsure about where the test belong?* Then create a new file in the test folder with your test. *Unsure about how to do create a pr?* You can check out [How to create a Pull Request on GitHub][pr-tutorial-link], a video tutorial by @kentcdodds or drop by the [gitter channel][gitter-link] and ask for help.
[]: https://ci.frigg.io/relekang/lint-filter
[]: https://ci.frigg.io/relekang/lint-filter.svg
[]: https://ci.frigg.io/relekang/lint-filter/coverage.svg
[]: https://gitter.im/relekang/lint-filter
[]: https://badges.gitter.im/relekang/lint-filter.svg
[]: https://egghead.io/lessons/javascript-how-to-create-a-pull-request-on-github