Skip to content

chore(deps): update dependency lint-staged to v17.6.3 - #1389

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/lint-staged-17.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/lint-staged-17.x

Conversation

@renovate

@renovate renovate Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
lint-staged 17.5.0 → 17.6.3 age confidence

Release Notes

lint-staged/lint-staged (lint-staged)

v17.6.3

Compare Source

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

Compare Source

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

Compare Source

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

Compare Source

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.

v17.5.1

Compare Source

Patch Changes
  • #​1852 bfcca94 - Fix TypeScript issue TS1254 from defineConfig() by changing the signature from const to a function:

    A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codecov

codecov Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.35%. Comparing base (a88b976) to head (08c30d8).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1389   +/-   ##
=======================================
  Coverage   97.35%   97.35%           
=======================================
  Files          49       49           
  Lines        6021     6021           
  Branches     1544     1544           
=======================================
  Hits         5862     5862           
  Misses        157      157           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate
renovate Bot force-pushed the renovate/lint-staged-17.x branch from 0f5f707 to 33163d2 Compare September 15, 2026 17:34
@renovate
renovate Bot force-pushed the renovate/lint-staged-17.x branch 3 times, most recently from 4332796 to 9790350 Compare September 29, 2026 10:36
@renovate renovate Bot changed the title chore(deps): update dependency lint-staged to v17.5.1 chore(deps): update dependency lint-staged to v17.6.0 Sep 29, 2026
@renovate
renovate Bot force-pushed the renovate/lint-staged-17.x branch from 9790350 to 2c88415 Compare October 1, 2026 13:43
@renovate
renovate Bot force-pushed the renovate/lint-staged-17.x branch from 2c88415 to 6a7545a Compare October 13, 2026 18:10
@renovate
renovate Bot force-pushed the renovate/lint-staged-17.x branch 3 times, most recently from 8e02e32 to c0f2db7 Compare November 18, 2026 21:10
@renovate renovate Bot changed the title chore(deps): update dependency lint-staged to v17.6.0 chore(deps): update dependency lint-staged to v17.6.1 Nov 18, 2026
@renovate
renovate Bot force-pushed the renovate/lint-staged-17.x branch 5 times, most recently from 90f5cad to 463bc4b Compare November 25, 2026 07:31
@renovate renovate Bot changed the title chore(deps): update dependency lint-staged to v17.6.1 chore(deps): update dependency lint-staged to v17.6.2 Nov 25, 2026
@renovate
renovate Bot force-pushed the renovate/lint-staged-17.x branch 3 times, most recently from 06632db to 6ad6c29 Compare December 1, 2026 11:31
@renovate renovate Bot changed the title chore(deps): update dependency lint-staged to v17.6.2 chore(deps): update dependency lint-staged to v17.6.3 Dec 1, 2026
@renovate
renovate Bot force-pushed the renovate/lint-staged-17.x branch from 6ad6c29 to 08c30d8 Compare December 2, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants