Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 13, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
lint-staged ^15.5.2 -> ^16.1.1 age adoption passing confidence

Release Notes

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

v16.1.1

Compare Source

Patch Changes
  • #​1565 3686977 Thanks @​iiroj! - Lint-staged now explicitly warns about potential data loss when using --no-stash.

  • #​1571 02299a9 Thanks @​iiroj! - Function tasks (introduced in v16.0.0) only received the staged files matching the conpmnfigured glob, instead of all staged files.

  • #​1563 bc61c74 Thanks @​iiroj! - This version fixes incorrect behavior where unstaged changes were committed when using the --no-stash option. This happened because --no-stash implied --no-hide-partially-staged, meaning unstaged changes to files which also had other staged changes were added to the commit by lint-staged; this is no longer the case.

    The previous (incorrect) behavior can still be achieved by using both options --no-stash --no-hide-partially-staged at the same time.

v16.1.0

Compare Source

Minor Changes
  • #​1536 e729daa Thanks @​iiroj! - A new flag --no-revert has been introduced for when task modifications should be applied to the index before aborting the commit in case of errors. By default, lint-staged will clear all task modifications and revert to the original state.

  • #​1550 b27fa3f Thanks @​iiroj! - Lint-staged now ignores symlinks and leaves them out from the list of staged files.

Patch Changes

v16.0.0

Compare Source

Major Changes
  • #​1546 158d15c Thanks @​iiroj! - Processes are spawned using nano-spawn instead of execa. If you are using Node.js scripts as tasks, you might need to explicitly run them with node, especially when using Windows:

    {
      "*.js": "node my-js-linter.js"
    }
  • #​1546 158d15c Thanks @​iiroj! - The --shell flag has been removed and lint-staged no longer supports evaluating commands directly via a shell. To migrate existing commands, you can create a shell script and invoke it instead. Lint-staged will pass matched staged files as a list of arguments, accessible via "$@​":


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, 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.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label May 13, 2025
@renovate renovate bot force-pushed the renovate/lint-staged-16.x branch from afd427e to 20e6e33 Compare May 13, 2025 13:34
@renovate renovate bot force-pushed the renovate/lint-staged-16.x branch 16 times, most recently from 672ad5c to 4a765d1 Compare May 27, 2025 20:07
@renovate renovate bot force-pushed the renovate/lint-staged-16.x branch 12 times, most recently from 9e07ebd to 83f2796 Compare June 1, 2025 03:06
@renovate renovate bot force-pushed the renovate/lint-staged-16.x branch 22 times, most recently from f39d99f to 592f3f3 Compare June 13, 2025 13:19
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot force-pushed the renovate/lint-staged-16.x branch from 592f3f3 to 0802a75 Compare June 14, 2025 09:09
@dhmlau dhmlau marked this pull request as ready for review June 15, 2025 02:20
@dhmlau dhmlau requested a review from raymondfeng as a code owner June 15, 2025 02:20
@dhmlau dhmlau merged commit c38e9eb into master Jun 15, 2025
13 checks passed
@dhmlau dhmlau deleted the renovate/lint-staged-16.x branch June 15, 2025 02:20
@renovate renovate bot changed the title chore: update dependency lint-staged to v16 chore: update dependency lint-staged to v16 - autoclosed Jun 15, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants