Skip to content

Bump lint-staged from 15.4.3 to 17.6.3 - #43

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/lint-staged-17.6.3
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/lint-staged-17.6.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026

Copy link
Copy Markdown

Bumps lint-staged from 15.4.3 to 17.6.3.

Release notes

Sourced from lint-staged's releases.

v17.6.3

Patch Changes

  • #1873 9791e53 - Clean up the SIGINT event listener after running. This is used to handle manually stopping lint-staged while running, e.g. by pressing CTRL+C.

  • #1873 de5f54a - Unstaged changes to files with additional staged changes ("partially staged") are no longer hidden when the first preparation step of lint-staged fails.

v17.6.2

Patch Changes

  • #1871 9663745 - Version v17.6.0 introduced automatic staging of all tracked files edited by tasks, even if the files were not originally staged. This version adjusts the behavior so that when using a pathspec like git commit file.js (implying --only), the staging is limited to those files. The default behavior when running git commit is unchanged.

  • #1871 7a96baf - Similar to the above, when using --fail-on-changes and a pathspec like git commit file.js (implying --only), the commit will fail only if those files were changed. The default behavior when running git commit is unchanged, and the commit will fail on any changes to tracked files.

v17.6.1

Patch Changes

  • #1869 18bc32f - The warning about the temporary patch file containing hidden partially-staged changes is only displayed when restoring the changes failed.

v17.6.0

Minor Changes

  • #1850 938d3f4 - Task functions like { title, task } can now use a logger function log() to emit output while the task runs. By default, the output will only be visible if the task fails, unless the --verbose option was used. Additionally, when the task rejects, the error will be shown in the output.

    import { defineConfig } from 'lint-staged/config'
    export default defineConfig({
    '*': {
    title: 'Fail if PDF files are committed',
    task: async (filepaths, { log }) => {
    const pdfFiles = filepaths.filter((f) => f.toLowerCase().endsWith('.pdf'))
    if (pdfFiles.length > 0) {
    log('PDF files should not be committed: %s', pdfFiles)
    throw new Error('Failed')
    }
    },
    },
    })

  • #1854 30562bc - lint-staged now stages changes to all tracked files modified by tasks, including files that weren’t originally staged or didn’t match the configured globs. This can happen when your task has side-effects, or it's a function that ignores the staged files like () => "prettier --write .".

    If you have unstaged changes in a file and the task also edits that file, your unstaged changes will be staged too. Use --hide-unstaged to hide your changes while tasks run.

Patch Changes

  • #1860 4296532 - The assignment of staged files to lint-staged configuration files (when using multiple, for example in a monorepo) has been rewritten to be more efficient. As a reminder, each staged file is assigned to exactly one configuration (the closest one), even if that config doesn't match the file in its globs.

  • #1861 c45f28a - Fix running parallel tasks for a single glob, when tasks are created by a function. Nesting one level of arrays inside an array of tasks will result in the inner tasks running in parallel. This behavior should now be consistent when creating tasks using functions. In the following example eslint and prettier will run in parallel (for all files, when any JS files are staged):

... (truncated)

Changelog

Sourced from lint-staged's changelog.

17.6.3

Patch Changes

  • #1873 9791e53 - Clean up the SIGINT event listener after running. This is used to handle manually stopping lint-staged while running, e.g. by pressing CTRL+C.

  • #1873 de5f54a - Unstaged changes to files with additional staged changes ("partially staged") are no longer hidden when the first preparation step of lint-staged fails.

17.6.2

Patch Changes

  • #1871 9663745 - Version v17.6.0 introduced automatic staging of all tracked files edited by tasks, even if the files were not originally staged. This version adjusts the behavior so that when using a pathspec like git commit file.js (implying --only), the staging is limited to those files. The default behavior when running git commit is unchanged.

  • #1871 7a96baf - Similar to the above, when using --fail-on-changes and a pathspec like git commit file.js (implying --only), the commit will fail only if those files were changed. The default behavior when running git commit is unchanged, and the commit will fail on any changes to tracked files.

17.6.1

Patch Changes

  • #1869 18bc32f - The warning about the temporary patch file containing hidden partially-staged changes is only displayed when restoring the changes failed.

17.6.0

Minor Changes

  • #1850 938d3f4 - Task functions like { title, task } can now use a logger function log() to emit output while the task runs. By default, the output will only be visible if the task fails, unless the --verbose option was used. Additionally, when the task rejects, the error will be shown in the output.

    import { defineConfig } from 'lint-staged/config'
    export default defineConfig({
    '*': {
    title: 'Fail if PDF files are committed',
    task: async (filepaths, { log }) => {
    const pdfFiles = filepaths.filter((f) => f.toLowerCase().endsWith('.pdf'))
    if (pdfFiles.length > 0) {
    log('PDF files should not be committed: %s', pdfFiles)
    throw new Error('Failed')
    }
    },
    },
    })

  • #1854 30562bc - lint-staged now stages changes to all tracked files modified by tasks, including files that weren’t originally staged or didn’t match the configured globs. This can happen when your task has side-effects, or it's a function that ignores the staged files like () => "prettier --write .".

    If you have unstaged changes in a file and the task also edits that file, your unstaged changes will be staged too. Use --hide-unstaged to hide your changes while tasks run.

Patch Changes

... (truncated)

Commits
  • b7be8f9 Merge pull request #1874 from lint-staged/changeset-release/main
  • 957836f chore(changeset): release
  • 57aee17 Merge pull request #1873 from lint-staged/fix-prepare-errors
  • 3207d62 build: update dependencies
  • 9791e53 fix: clean up SIGINT event listener after running
  • 369403c test: use plain AbortController in tests
  • de5f54a fix: do not hide partially-staged changes when prepare step fails
  • 78d743d chore: ignore .DS_Store files from version control
  • 993b499 Merge pull request #1872 from lint-staged/changeset-release/main
  • dfa749b chore(changeset): release
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for lint-staged since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.4.3 to 17.6.3.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md)
- [Commits](lint-staged/lint-staged@v15.4.3...v17.6.3)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-version: 17.6.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants