lint-blame
v0.0.11
Published
Blames your lint complaints to enable incremental adoption of new lint rules
Downloads
12
Readme
lint-blame
Filters the output of your linter by blaming the lines it complains about. Allows you to gradually add stricter lint rules to new code only without updating your whole codebase at once.
Usage
Usage: <linter> | blame-lint [options]
Options:
--help Show help [boolean]
--members A list of { email, name } members that rules should apply for
[array]
--format, -f The complaint format to parse
[required] [choices: "tslint4", "tslint5", "tsconfig"]
--since A point in time before which rules do not apply [string]
-c, --config Path to JSON config file [default: "./lint-blame.json"]
-v, --version Show version number [boolean]
Examples
Will only output complaints about lines written after October 3rd 2017.
tslint -c tslint.strict.json -p . | lint-blame --format tslint5 --since 2017-10-03
lint-blame.json
Will only output complaints about lines written by Jack Bauer and John Doe.
{
"members": [
{
"name": "Jack Bauer",
"email": "[email protected]"
},
{
"name": "John Doe",
"email": "[email protected]"
}
]
}