ng-lint-staged is a shim that transforms the file list from lint-staged into the appropriate CLI option for Angular's lint builder. Version 12.0.4 supports the @angular-eslint/builder:lint with --lint-file-patterns flag. It handles the argument transformation needed because lint-staged provides a flat list of files while Angular expects a specific format. Regularly updated to support newer Angular versions. Key differentiator: eliminates the need for manual file mapping scripts when using lint-staged with Angular projects.
npm install ng-lint-stagedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure lint-staged to use ng-lint-staged for linting staged .ts files with Angular CLI.
Update your lint-staged command: use 'ng-lint-staged lint --fix --' (no explicit flag needed).
If using tslint, stick with ng-lint-staged <7.0.0.
Always append '--' at the end of the ng-lint-staged command.
Ensure package.json has a 'lint' script that runs 'ng lint <project>'. Or specify a different script name after 'ng-lint-staged'.
Run 'npm outdated ng-lint-staged' to check for newer versions.
Run 'npm install --save-dev ng-lint-staged' in your project.
Upgrade ng-lint-staged to >=12.0.0, or use --lint-file-patterns instead of --files.
Ensure the command ends with '--' like: 'ng-lint-staged lint --fix --'
No dependency data recorded yet.