NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1744 most downloaded on npm
Lint files staged by git
Last release 11 days ago
10 Sep 2026
Release timing varies
gaps range from 8 days to 3 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
297 releases · first in 2016
gitDir option deprecated and will be ignored. Additionally, glob patterns for linters should not be relative to the git root directory.
<a name="5.0.0"></a>
gitDir option deprecated and will be ignored. Additionally, glob patterns for linters should not be relative to the git root directory.Consider a project with the following file structure:
`-- packages
|-- prj
| |-- package.json
| |-- src
| | `-- index.js
| `-- yarn.lock
`-- prj-2
`-- file
With lint-staged@4.3.0, the config would need to be something like this:
gitDir: ../..
linters:
packages/prj/src/*.js:
- eslint --fix
- git add
With lint-staged@5, this simplifies to:
linters:
src/*.js:
- eslint --fix
- git add
<details>
<summary><code>diff</code> view</summary>
@@ -1,5 +1,4 @@
-gitDir: ../..
linters:
- packages/prj/src/*.js:
+ src/*.js:
- eslint --fix
- git add
</details>
One column per quarter.
Allow config to be provided via command-line
findBin: Add separator before npm args
findBin: Resolve package script with args
Missing entry file (#283) (e17ba5f), closes #284
Print friendlier error if config is missing
Unicode symbols compatibility on Windows
Handle the case when staged-git-files errors properly (#267) (a8a585a), closes #264
Use lodash has to check config keys presence (#265) (c0287e6), closes #263
# 4.1.0 (2017-09-04) ### Features * config: Config validation
Disable concurrent sub task execution by default (#229) (48c8c6ff, closes #225)
package: update execa to version 0.8.0
<a name"4.0.3"></a>
Remove unportable postinstall step (#213) (a2dcd047, closes #212, #192)
### 4.0.1 (2017-07-06) #### Bug Fixes * Bail on fatal errors
Skip '--' argument for non-npm commands (#196) (ad265664, closes #195)
Nothing published for this version
Nothing published for this version
package: update execa to version 0.7.0
<a name"3.6.1"></a>
Add advanced option globOptions to customise minimatch (#179) (c5b9804b, closes #173)
gitDir: Fix for checking if task contains git.exe on Windows
<a name"3.5.1"></a>
git.exe on Windows (#178) (4c600178)Run linters with configurable concurrency (#149) (79ad8b3f, closes #147)
Only pass gitDir for git specific executables (#162) (c7283b77, closes #158)
package: update listr to version 0.12.0 (#155) (21df53ec, closes #142)
Display a message if there are no files that match a pattern. (#139) (b0204ee4, closes #135)
Remove unnecessary which dependency and code block in findBin.js
<a name"3.3.2"></a>
which dependency and code block in findBin.js (3acd6c7b)concurrent: Wait for all tasks to finish before showing errors (5a44bea4, closes #86)
gitDir: Run npm run scripts in the current working directory instead of git directory. (9c45d8ee, closes #122)
concurrent: Fix concurrent: false could not be set using config
<a name"3.2.9"></a>
concurrent: false could not be set using config (22a1d774)windows: Do not reuse execa options object for runners since it breaks on Windows (#124) (be8aa3f0, closes #114)
Generate absolute paths for all paths relative to git root (#121) (41ae0cb3, closes #118, #120)
package: update execa to version 0.6.0
<a name"3.2.6"></a>
resolvePaths: Use cwd-relative paths instead of absolute paths (#116) (968e0d8f, closes #115, #115)
When rejecting, use new Error and error.message respectively. (#113) (97ad4b46, closes #112)
Run commands in the context of gitDir if it is set (#110) (a74135d6, closes #109)
[fix]: Force colors only when running in TTY
[fix]: Added { dot: true } to allow more complex globs with dots in path
{ dot: true } to allow more complex globs with dots in path (#93)pre-commit in the installation instructions. (#87) <Artem Sapegin>[feature] Support rc files extensions (.json, .yml etc) as they aren't supported by default
.json, .yml etc) as they aren't supported by default[fix] Properly resolve paths when the git directory differs from the current working directory. #78
TypeError: Path must be a string. Received undefined when gitDir isn't defined in the config.Split code into smaller modules + added tests for them. Closes #68
stdout and stderr in case of error. Closes #66Added FORCE_COLOR env variable to force colors for packages that depend on https://www.npmjs.com/package/supports-color. Closes #50
FORCE_COLOR env variable to force colors for packages that depend on https://www.npmjs.com/package/supports-color. Closes #50- Removed unused dependecies
Switched to listr. Simplified code and more beautiful output.
--color option from runner. You should pass arguments yourself.Nothing published for this version
Nothing published for this version
Use cross-spawn to fix issues with Windows. Closes #30.
cross-spawn to fix issues with Windows. Closes #30. (#34)Fixes an error when running a config with just one task (#28). #27 @Anber.
When on of the sequential tasks fails, exit the process. Closes #26
Support for sequences of commands. Needs config update! #25 @okonet
Nothing published for this version
Fixed path resolution to the app root on Windows. #19 by
Fixed support of local npm scripts from package.json
Complete re-write using Node.js API to fix #5, #6, #7, #8
Switch to bin/bash and fix file existncy check #9 @fubhy
$(npm bin) instead of hardcoding path #9 @fubhyFixed path for flow binary #4 @nikgraf
Added more linters: flow, JSCS @okonet
- Initial release
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →