lint-staged
17.6.0 · 26 Sep 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed
Upgrading lint-staged from 15.4.3 to 15.5.0
1 release in betweenevery note read
- 0
- changes to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Release by release
- 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
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