Registry / testing / lint-blame

lint-blame

JSON →
library0.0.11jsnpmunverified

A CLI tool (v0.0.11, low-activity) that filters linter output by blaming lines to specific authors or dates, enabling incremental adoption of new lint rules without rewriting the entire codebase. It pipes linter output (e.g., TSLint) and parses complaint formats (tslint4, tslint5, tsconfig), then uses git blame to retain only those lines matching a set of members or a since date. Unmaintained since 2020, no updates for Node >=10+ compatibility issues.

npm install lint-blame
INSTALL
IMPORT
SIG · LINT-BLAME
L
lint-blame
testingjavascriptv0.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import blameLint from 'lint-blame'
const blameLint = require('lint-blame')
ESM-only since Node 12+; package ships CommonJS, so require works, but TypeScript types are bundled.
LintBlameOptions
import { LintBlameOptions } from 'lint-blame'
Type-only export for TypeScript users.

Demonstrates filtering TSLint output by date and author using lint-blame programmatically.

import blameLint from 'lint-blame'; import { readFileSync } from 'fs'; const tslintOutput = readFileSync('/dev/stdin', 'utf8'); const options = { format: 'tslint5', since: '2023-01-01', members: [{ name: 'Developer', email: 'dev@example.com' }] }; const filtered = blameLint(tslintOutput, options); console.log(filtered);
lint-blame --version
Debug
Known issues
gotchaRequires git repository with .git directory; fails silently if not in a git repo.
fix
Run the tool from within a git repository.
affects: >=0.0.0
deprecatedOnly supports TSLint formats (tslint4, tslint5, tsconfig); no ESLint or other linter support.
fix
Use lint-staged or eslint-filtered-files instead for modern linting.
affects: >=0.0.0
breakingOption '--members' requires both name and email; missing fields cause crash.
fix
Ensure each member object includes both 'name' and 'email'.
affects: >=0.0.0
gotchaPipe input must be the linter's stdout; reading from file not directly supported.
fix
Use shell redirection: cat lint-output.txt | lint-blame ...
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'lint-blame'
Package not installed or not in node_modules.
fix
npm install lint-blame
TypeError: Cannot read property 'match' of undefined
The linter output format does not match expected pattern.
fix
Verify the --format flag matches your linter output (tslint4/tslint5/tsconfig).
Fatal error: Not a git repository (or any of the parent directories): .git
The command must be run from within a git repository.
fix
Change to a git repository directory or initialize one with 'git init'.
Upgrade
Version history
0.0.11latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
lint-blame — npm install lint-blame · libregistry