A small utility (v0.1.0) that runs linting (e.g., ESLint) only on lines changed since a git baseline, saving time on large codebases. Released as an early alpha with occasional updates. Differentiates from other lint-staged tools by focusing only on changed lines rather than changed files, reducing noise and false positives. Currently limited to ESLint and git-based projects.
npm install lint-onlyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs ESLint only on lines changed since HEAD~1, returning matched errors.
Run from repo root or set cwd option correctly.
Use ES modules (type: 'module' in package.json or .mjs extension).
Rename 'eslintRc' to 'eslintConfig'.
Install ESLint as a project dependency.
npm install eslint --save-dev
Use import lintOnly from 'lint-only'; or convert to ES module.
Ensure the current working directory is inside a git repository.