lint-staged
17.6.0 · 26 Sep 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed
268 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 15.x
15.2.8
3 Aug 2024In the previous version the native
git rev-parse --show-toplevelcommand was taken into use for resolving the current git repo root. This version switched the--show-toplevelflag with--show-cdup, because on Git installed via MSYS2 the former was returning absolute paths that do not work with Node.jschild_process. The new flag returns a path relative to the working directory, avoiding the issue.The GitHub Actions workflow has been updated to install Git via MSYS2, to ensure better future compatibility; using the default Git binary in the GitHub Actions runner was working correctly even with MSYS2.
15.2.7
12 Jun 2024In the previous version the native
git rev-parse --show-toplevelcommand was taken into use for resolving the current git repo root. This version drops the--path-format=absoluteoption to support earlier git versions since it's also the default behavior. If you are still having trouble, please try upgradinggitto the latest version.
15.2.6
11 Jun 2024Use native "git rev-parse" commands to determine git repo root directory and the .git config directory, instead of using custom logic. This hopefully makes path resolution more robust on non-POSIX systems.
15.2.5
25 May 2024Allow approximately equivalent versions of direct dependencies by using the "~" character in the version ranges. This means a more recent patch version of a dependency is allowed if available.
Improve error logging when failing to read or parse a configuration file
Upgrade micromatch@4.0.7
15.2.4
21 May 2024Fix release issue with previous version; update dependencies
15.2.2
5 Feb 2024Lint-staged no longer tries to load configuration from files that are not checked out. This might happen when using sparse-checkout.
15.2.1
31 Jan 2024Ignore stdin of spawned commands so that they don't get stuck waiting. Until now, lint-staged has used the default settings to spawn linter commands. This means the
stdinof the spawned commands has accepted input, and essentially gotten stuck waiting. Now thestdinis ignored and commands will no longer get stuck. If you relied on this behavior, please open a new issue and describe how; the behavior has not been intended.
15.2.0
3 Dec 2023Using the
--no-stashflag no longer discards all unstaged changes to partially staged files, which resulted in inadvertent data loss. This fix is available with a new flag--no-hide-partially-stagedthat is automatically enabled when--no-stashis used.Update lilconfig@3.0.0
Update most dependencies
Minor Changes
Using the
--no-stashflag no longer discards all unstaged changes to partially staged files, which resulted in inadvertent data loss. This fix is available with a new flag--no-hide-partially-stagedthat is automatically enabled when--no-stashis used.
Patch Changes
Update lilconfig@3.0.0
Update most dependencies
To improve performance, only use
lilconfigwhen searching for config files outside the git repo. In the regular case, lint-staged finds the config files from the Git index and loads them directly.When determining git directory, use
fs.realpath()only for symlinks. It looks likefs.realpath()changes some Windows mapped network filepaths unexpectedly, causing issues.
15.1.0
11 Nov 2023Add support for loading configuration from
package.yamlandpackage.ymlfiles, supported bypnpm.Suppress some warnings when using the "--quiet" flag
15.0.2
19 Oct 2023Only updates a dependency:listr2 7.0.2
15.0.1
15 Oct 2023Previously it was possible for a function task to mutate the list of staged files passed to the function, and accidentally affect the generation of other tasks. This is now fixed by passing a copy of the original file list instead.
15.0.0
14 Oct 2023- breaking
Require at least Node.js 18.12.0
This release drops support for Node.js 16, which is EOL after 2023-09-11. Please upgrade your Node.js to the latest version.
Additionally, all dependencies have been updated to their latest versions.
- 14.x
14.0.1
21 Aug 2023Reading the note…
14.0.0
13 Aug 2023- removed
Drop support for Node.js 14
- breaking
Please upgrade your Node.js version to at least
16.14.0.
- 13.x
13.3.0
13 Aug 2023dependencies: update most dependencies
Detect duplicate redundant braces in pattern
dependencies: update
listr2@6.6.0
13.2.3
28 Jun 2023Reading the note…
13.2.2
26 Apr 2023Reading the note…
13.2.1
7 Apr 2023Reading the note…
13.2.0
10 Mar 2023dependencies: replace
colorettewithchalkfor better color support detectionUse index-based stash references for improved MSYS2 compatibility
Version bump only
13.1.4
6 Mar 2023Reading the note…
13.1.3
5 Mar 2023Reading the note…
13.1.2
13 Feb 2023Reading the note…
13.1.1
7 Feb 2023Reading the note…
13.1.0
4 Dec 2022Expose cli entrance from "lint-staged/bin"
13.0.4
25 Nov 2022Reading the note…
13.0.3
24 Jun 2022Reading the note…
13.0.2
16 Jun 2022Reading the note…
13.0.1
8 Jun 2022Reading the note…
13.0.0
1 Jun 2022- removed
Remove support for Node.js 12
- breaking
lint-stagedwill no longer support Node.js 12, which is EOL since 30 April 2022 deps: update
execa@^6.1.0
Bug Fixes
deps: update
execa@^6.1.0deps: update
yaml@^2.1.1
Features
- removed
Remove support for Node.js 12
Breaking changes
- breaking
lint-stagedwill no longer support Node.js 12, which is EOL since 30 April 2022
- 12.x
12.5.0
31 May 2022Reading the note…
12.4.3
30 May 2022Reading the note…
12.4.2
24 May 2022Reading the note…
12.4.1
26 Apr 2022Reading the note…
12.4.0
20 Apr 2022Reading the note…
12.3.8
15 Apr 2022Reading the note…
12.3.7
17 Mar 2022Reading the note…
12.3.6
16 Mar 2022Reading the note…
12.3.5
5 Mar 2022Reading the note…
12.3.4
13 Feb 2022Reading the note…
12.3.3
1 Feb 2022Reading the note…
12.3.2
26 Jan 2022Reading the note…
12.3.1
23 Jan 2022Reading the note…
12.3.0
23 Jan 2022Reading the note…
12.2.2
20 Jan 2022Reading the note…
12.2.1
19 Jan 2022Reading the note…
12.2.0
18 Jan 2022Reading the note…
12.1.7
7 Jan 2022Reading the note…
12.1.6
7 Jan 2022Reading the note…
12.1.5
2 Jan 2022Reading the note…
12.1.4
24 Dec 2021Reading the note…