lint-staged breaking changes
Updated December 4, 2026
On this page
Latest version 17.6.3, released November 28, 2026. Source repository
Its 17.0.0 release requires Node.js 22.22.1 or later. Node.js end of life dates.
- From 16.2.1 to 17.6.2: 40 breaking changes in 10 versions.
- From 13.0.0 to 17.6.2: 67 breaking changes in 17 versions.
lint-staged 17.6.2 breaking changes
- Behavior changed
With --fail-on-changes and a pathspec such as git commit file.js (implying --only), the commit now fails only if those files changed. The default git commit behavior is unchanged. github.com - Behavior changed
With a pathspec such as git commit file.js (implying --only), tasks now stage only those files instead of all tracked files edited by tasks. The default git commit behavior is unchanged. github.com
lint-staged 17.6.0 breaking changes
- Behavior changed
Tracked files changed by tasks are now staged, including unstaged edits to those files and files outside the configured globs. Use --hide-unstaged to hide your unstaged changes while tasks run. github.com - Behavior changed
Inner arrays of tasks returned from a function now run in parallel, matching array-based configs. Configs that relied on sequential execution of those tasks may behave differently. github.com - Signature changed
config:AsyncGenerateTask
Was type AsyncGenerateTask = (files: readonly string[]) => Promise<string | string[]>; now type AsyncGenerateTask<Result> = (files: readonly string[]) => Promise<Result>. npmjs.com - Signature changed
config:GenerateTask
Was type GenerateTask = SyncGenerateTask | AsyncGenerateTask; now type GenerateTask<Result = string | (string | string[])[]> = | SyncGenerateTask<Result> | AsyncGenerateTask<Result>. npmjs.com - Signature changed
config:ParallelTasks
Was type ParallelTasks = (SpawnedTask | GenerateTask)[]; now type ParallelTasks = (SpawnedTask | GenerateTask<string>)[]. npmjs.com - Signature changed
config:SequentialTasks
Was type SequentialTasks = (SpawnedTask | GenerateTask | ParallelTasks)[]; now type SequentialTasks = (SpawnedTask | GenerateTask<string | string[]> | ParallelTasks)[]. npmjs.com - Signature changed
config:SyncGenerateTask
Was type SyncGenerateTask = (files: readonly string[]) => string | string[]; now type SyncGenerateTask<Result> = (files: readonly string[]) => Result. npmjs.com - Signature changed
config:TaskFunction
Was type TaskFunction = {title: string task: (filepaths: readonly string[]) => void | Promise<void>}; now type TaskFunction = {title: string task: (filepaths: readonly string[], context: TaskFunctionContext) => void | Promise<void>}. npmjs.com - Signature changed
config:TaskFunction.task
Was task: (filepaths: readonly string[]) => void | Promise<void>; now task: (filepaths: readonly string[], context: TaskFunctionContext) => void | Promise<void>. npmjs.com
lint-staged 17.5.1 breaking changes
- Signature changed
config:defineConfig
Was const defineConfig; now function defineConfig(config: Configuration): Configuration. npmjs.com
lint-staged 17.5.0 breaking changes
- Behavior changed
lint-staged now exits when files were staged with git add --intent-to-add, since Git stash does not support them. Stage those files normally or remove the intent-to-add entries before running. github.com
lint-staged 17.4.1 breaking changes
- Removed
LogFunction
LogFunction was removed in lint-staged 17.4.1 npmjs.com - Renamed
AsyncGenerateTask
Use AsyncGenerateTask instead. npmjs.com - Renamed
GenerateTask
Use GenerateTask instead. npmjs.com - Renamed
ParallelTasks
Use ParallelTasks instead. npmjs.com - Renamed
SequentialTasks
Use SequentialTasks instead. npmjs.com - Renamed
SpawnedTask
Use SpawnedTask instead. npmjs.com - Renamed
SyncGenerateTask
Use SyncGenerateTask instead. npmjs.com - Renamed
TaskFunction
Use TaskFunction instead. npmjs.com - Behavior changed
Parsing of lint-staged CLI flags and Node.js API options was rewritten so the two behave consistently. Code relying on previous quirks in option parsing may need checking. github.com - Behavior changed
The automatic backup stash now behaves differently when running in multiple worktrees in parallel. Avoid running multiple instances in the same tree. github.com
And 1 more in this version. Sign up to see every change
lint-staged 17.3.0 breaking changes
- Behavior changed
While a merge is in progress, files unchanged from the merged branch are skipped. Only files with staged changes against both HEAD and MERGE_HEAD are included. github.com - Behavior changed
A nested array inside a glob's task array runs its commands in parallel, while the outer array still runs sequentially. Review configs that rely on the old ordering. github.com - Signature changed
AsyncGenerateTask
Was type AsyncGenerateTask = (stagedFileNames: readonly string[]) => Promise<string | string[]>; now type AsyncGenerateTask = (files: readonly string[]) => Promise<string | string[]>. npmjs.com - Signature changed
Configuration
Was type Configuration = | Record<string, string | TaskFunction | GenerateTask | (string | GenerateTask)[]> | GenerateTask; now type Configuration = | Record<string, SpawnedTask | TaskFunction | GenerateTask | SequentialTasks> |... npmjs.com - Signature changed
SyncGenerateTask
Was type SyncGenerateTask = (stagedFileNames: readonly string[]) => string | string[]; now type SyncGenerateTask = (files: readonly string[]) => string | string[]. npmjs.com - Signature changed
TaskFunction
Was type TaskFunction = {title: string task: (stagedFileNames: readonly string[]) => void | Promise<void>}; now type TaskFunction = {title: string task: (filepaths: readonly string[]) => void | Promise<void>}. npmjs.com - Signature changed
TaskFunction.task
Was task: (stagedFileNames: readonly string[]) => void | Promise<void>; now task: (filepaths: readonly string[]) => void | Promise<void>. npmjs.com
Older versions
12 older versions, each with its first changes. Sign up to see every change
Show 12 older versions
lint-staged 17.2.0 breaking changes
- Behavior changed
Native JavaScript/Node.js function tasks now run once with all matched files, instead of several times when the file list was chunked. Check any function task that assumed it runs once per chunk. github.com
lint-staged 17.1.0 breaking changes
- Behavior changed
A failed JavaScript function task now kills the other tasks, unless --continue-on-error is used. Previously its failure did not affect other tasks, so workflows relying on that must add --continue-on-error. github.com - Behavior changed
The console output was simplified to use fewer interactive spinners and more explicit messages. Scripts or tooling that parse the old output format may need updating. github.com
lint-staged 17.0.5 breaking changes
- Default changed
--max-arg-length
The default for --max-arg-length is now computed correctly for the running platform, which changes how staged file lists are split into chunks. github.com
lint-staged 17.0.0 breaking changes
- Removed
Node.js 20 is no longer supported and the minimum is now 22.22.1. Upgrade Node.js before updating lint-staged. github.com - Behavior changed
Scripts with a node shebang, such as Prettier or ESLint, now use the Node.js version that started lint-staged rather than the version manager default. github.com
And 3 more in this version.
lint-staged 16.2.1 breaking changes
- Signature changed
Task functions receive the staged files as readonly string[] and can no longer mutate the list. Code that changes the array in place or expects string[] may fail to type-check. github.com - Signature changed
AsyncGenerateTask
Was type AsyncGenerateTask = (stagedFileNames: string[]) => Promise<string | string[]>; now type AsyncGenerateTask = (stagedFileNames: readonly string[]) => Promise<string | string[]>. npmjs.com
And 7 more in this version.
lint-staged 16.2.0 breaking changes
- Removed
DEBUG
The DEBUG environment variable is no longer supported. Use the --debug flag to enable debugging instead. github.com - Signature changed
Options
Was type Options = {allowEmpty?: boolean concurrent?: boolean | number config?: Configuration configPath?: string cwd?: string debug?: boolean diff?: string diffFilter?: string maxArgLength?: number quiet?: boolean relative?: boolean... npmjs.com
lint-staged 16.1.1 breaking changes
- Behavior changed
Function tasks now get only the staged files that match the configured glob, not all staged files. Check any function task that assumed it received every staged file. github.com - Behavior changed
--no-stash
With --no-stash, unstaged changes to partially staged files are no longer added to the commit. To keep the old behavior, pass both --no-stash and --no-hide-partially-staged. github.com
lint-staged 16.1.0 breaking changes
- Behavior changed
Staged symlinks are no longer passed to tasks. Users who relied on symlinks being processed must handle them separately. github.com - Signature changed
Options
Was type Options = {allowEmpty?: boolean concurrent?: boolean | number config?: Configuration configPath?: string cwd?: string debug?: boolean diff?: string diffFilter?: string maxArgLength?: number quiet?: boolean relative?: boolean... npmjs.com
lint-staged 16.0.0 breaking changes
- Removed
The lowest supported Node.js version is now 20.18. Upgrade Node.js before using this release. github.com - Removed
FunctionTask
FunctionTask was removed in lint-staged 16.0.0 npmjs.com
And 8 more in this version.
lint-staged 15.0.0 breaking changes
- Removed
This release drops support for Node.js 16 and requires at least Node.js 18.12.0. Upgrade Node.js before installing this version. github.com
lint-staged 14.0.0 breaking changes
- Removed
lint-staged 14.0.0 no longer supports Node.js 14. Upgrade Node.js to at least 16.14.0 before updating. github.com
lint-staged 13.0.0 breaking changes
- Removed
lint-staged no longer supports Node.js 12, which reached end of life on 30 April 2022. Upgrade Node.js before using this version. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.