Run linters against git-changed files (both staged and unstaged) to enforce code quality before commit. Version 0.0.0-development, based on lint-staged but differs by including modified-but-unstaged files via changed-git-files instead of staged-git-files. Supports ESLint, stylelint, and other linters for JavaScript, CSS, SCSS, and more. No active maintenance or releases beyond the initial development version. Key differentiator: lints all changed files, not just staged ones, useful for pre-commit checks.
npm install lint-changedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Runs ESLint on changed JS files and stylelint on changed CSS files, then logs the result.
Switch to lint-staged for a maintained and stable alternative.
Use import syntax or dynamic import().
Test with your codebase size; consider limiting file patterns.
Change to 'import lintChanged from 'lint-changed'' or use dynamic import.
Install it: npm install changed-git-files --save-dev
Use a bundler or Node with --experimental-modules flag.