lint-staged
17.6.0 · 26 Sep 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed
Upgrading lint-staged from 15.4.2 to 15.5.2
4 releases in betweenevery note read
Release by release
- fixed
Correctly handle colon (
:) characters in staged filenames.
- fixed
- fixed
Improve listing of staged files so that lint-staged doesn't crash when encountering an uninitialized submodule. This should result in less errors like:
- fixed
- new
Lint-staged no longer resets to the original state when preventing an empty git commit. This happens when your configured tasks reset all the staged changes, typically when trying to commit formatting changes which conflict with your linter setup like ESLint or Prettier.
- new
- fixed
Adjust TypeScript types for the default export so that it can be used as a value without error TS2693.
- fixed
8 other lines we could not sort, mostly version bumps
- 15.5.0
Stage
file.jswith only double quotes"changed to' - 15.5.0
Run
git commit -am "I don't like double quotes" - 15.5.0
Lint-staged runs
prettier --write file.js, converting all the'back to" - 15.5.0
Because there are now no changes, lint-staged fails, cancels the commit, and resets back to the original state
- 15.5.0
Commit was not done, original state is restored and single quotes
'are staged - 15.5.0
Stage
file.jswith only double-quotes"changed to' - 15.5.0
Because there are now no changes, lint-staged fails and cancels the commit
- 15.5.0
Commit was not done, and there are no staged changes