Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

lint-blame

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lint-blame

Blames your lint complaints to enable incremental adoption of new lint rules

latest
Source
npmnpm
Version
0.0.11
Version published
Maintainers
1
Created
Source

lint-blame

npm downloads build dependencies node code style: prettier license

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": "jack@bauer.com"
    },
    {
      "name": "John Doe",
      "email": "john@doe.com"
    }
  ]
}

FAQs

Package last updated on 19 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts