Packages

lint-staged

17.6.0 · 26 Sep 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed

Upgrading lint-staged from 15.4.3 to 15.5.2

3 releases in betweenevery note read

Other targets from 15.4.3Latest17.6.0
0
changes to make
0
advisories fixed
1
new
2
fixes

Release by release

  1. 15.5.2

    6 May 20251 fix
    • fixed

      Correctly handle colon (:) characters in staged filenames.

  2. 15.5.1

    11 Apr 20251 fix
    • 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:

  3. 15.5.0

    12 Mar 20251 new
    • 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.

8 other lines we could not sort, mostly version bumps
  • Stage file.js with 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.js with 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

    15.5.0