Skip to content

chore: bump lint-staged from 17.5.1 to 17.6.0 - #2187

Merged
sanjay-kv merged 1 commit into
mainfrom
dependabot/npm_and_yarn/lint-staged-17.6.0
Sep 30, 2026
Merged

sanjay-kv merged 1 commit into
mainfrom
dependabot/npm_and_yarn/lint-staged-17.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 29, 2026

Copy link
Copy Markdown
Contributor

Bumps lint-staged from 17.5.1 to 17.6.0.

Release notes

Sourced from lint-staged's releases.

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):

    import { defineConfig } from 'lint-staged/config'
    export default defineConfig({
    '*.js': () => [['eslint --max-warnings=0 .', 'prettier --list-different .']],
    })

  • #1859 f0ea69d - Various performance improvements from skipping redundant internal Git calls.

  • #1856 69d7d17 - Partially staged changes are hidden in a uniquely-named patch file to avoid multiple invocations of lint-staged overwriting it. This makes it safer to run lint-staged in multiple worktrees at the same time.

Changelog

Sourced from lint-staged's changelog.

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

  • #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):

    import { defineConfig } from 'lint-staged/config'
    export default defineConfig({
    '*.js': () => [['eslint --max-warnings=0 .', 'prettier --list-different .']],
    })

  • #1859 f0ea69d - Various performance improvements from skipping redundant internal Git calls.

  • #1856 69d7d17 - Partially staged changes are hidden in a uniquely-named patch file to avoid multiple invocations of lint-staged overwriting it. This makes it safer to run lint-staged in multiple worktrees at the same time.

Commits
  • 48f9f4e Merge pull request #1857 from lint-staged/changeset-release/main
  • 16b2e21 chore(changeset): release
  • 195f156 docs: improve changeset
  • 0ba6261 fix: create hidden directory only when required
  • 66ac2de docs: fixes to changesets
  • 80af8d7 Merge pull request #1863 from lint-staged/fix-issues
  • e433488 fix: handle task editing a symlinked file to a regular file, and --fail-on-ch...
  • e5019b3 fix: handle trailing newlines when detecting changed files
  • 74efec8 ci: run Cygwin and MSYS2 tests on Node.js 26
  • 655b7dc fix: use TypeScript types instead of JSDoc
  • Additional commits viewable in compare view

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 17.5.1 to 17.6.0.
- [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@v17.5.1...v17.6.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-version: 17.6.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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 Sep 29, 2026
@dependabot
dependabot Bot requested a review from sanjay-kv as a code owner September 29, 2026 22:34
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Sep 29, 2026
@dependabot dependabot Bot added the javascript Pull requests that update javascript code label Sep 29, 2026
@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
recode-website Ready Ready Preview Sep 29, 2026 10:35pm UTC

@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request! 🙌 We'll review it asap. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, if it's a Video -LEGEND, which helps speed up the review. If you have questions, reach out to LinkedIn. You can see in our Leaderboard in 20 min from now!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation after 5 PR: Mentorship for free.

  2. Get the Ebook for free after 10 PR: You can tag me in Discussion to get the same. Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

Thanks again for your contribution! 😊

@github-actions github-actions Bot added in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard labels Sep 29, 2026
@github-actions github-actions Bot added this to the recode:launch 3.0 milestone Sep 29, 2026
@github-actions github-actions Bot added Enhacement gssoc26 label gssoc:approved gssoc label medium gssoc26 label type:docs gssoc label 5pts labels Sep 29, 2026
@github-actions

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1850:

  • Labels: level 1, recode, Enhacement, medium, gssoc:approved, type:docs
  • Milestone: recode:launch 3.0

@github-actions

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1854:

  • Labels: level 1, recode, in-review, gssoc:approved
  • Milestone: recode:launch 3.0

@github-actions

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1860:

  • Labels: None
  • Milestone: None

@github-actions github-actions Bot added the high priority gssoc26 label label Sep 29, 2026
@github-actions

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1861:

  • Labels: level 1, recode, in-review, high priority, medium, gssoc:approved, type:docs
  • Milestone: recode:launch 3.0

@github-actions

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1859:

  • Labels: level 1, recode
  • Milestone: None

@github-actions github-actions Bot added contributor-workshop Issues that are good for first-time contributor's workshop enhancement New feature or request good first issue kind:bug This is a clearly a bug level2 gssoc26 label priority:high High priority bug that should be patched quickly but does not require immediate new release labels Sep 29, 2026
@github-actions

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1856:

  • Labels: kind:bug, enhancement, contributor-workshop, priority:high, good first issue, level 1, recode, dependencies, javascript, in-review, Enhacement, high priority, level2, medium, gssoc:approved, type:docs
  • Milestone: recode:launch 3.0

@github-actions

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1857:

  • Labels: level 1, recode, dependencies, javascript, in-review
  • Milestone: recode:launch 3.0

@github-actions

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1863:

  • Labels: level 1, recode, Enhacement, medium, gssoc:approved
  • Milestone: recode:launch 3.0

@sanjay-kv
sanjay-kv merged commit e83bb0b into main Sep 30, 2026
8 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/lint-staged-17.6.0 branch September 30, 2026 01:22
@github-actions

Copy link
Copy Markdown

🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project.

I would be grateful if you can nominate for keeping this opensource project live and running Link to Nominate. Please do star the repo and Keep up the fantastic work! 🚀

This branch was successfully deployed

1 active deployment
Preview — 377859e5 Deployed Sep 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor-workshop Issues that are good for first-time contributor's workshop dependencies Pull requests that update a dependency file Enhacement gssoc26 label enhancement New feature or request good first issue gssoc:approved gssoc label high priority gssoc26 label in-review The current changes are in review and would need approval and testing before merging javascript Pull requests that update javascript code kind:bug This is a clearly a bug level 1 10 points level2 gssoc26 label medium gssoc26 label priority:high High priority bug that should be patched quickly but does not require immediate new release recode this is label for leaderboard type:docs gssoc label 5pts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant