Skip to content

chore(deps): update dependency lint-staged to v15.5.0#1869

Merged
thomasrockhu-codecov merged 1 commit intomainfrom
renovate/lint-staged-15.x
Mar 18, 2025
Merged

chore(deps): update dependency lint-staged to v15.5.0#1869
thomasrockhu-codecov merged 1 commit intomainfrom
renovate/lint-staged-15.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Mar 15, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
lint-staged 15.4.3 -> 15.5.0 age adoption passing confidence

Release Notes

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

v15.5.0

Compare Source

Minor Changes
  • #​1526 630af5f Thanks @​iiroj! - Lint-staged no longer resets to the original state when preventing an empty git commit. This happens when your configured tasks reset all the staged changes, typically when trying to commit formatting changes which conflict with your linter setup like ESLint or Prettier.
Example with Prettier

By default Prettier prefers double quotes.

Previously
  1. Stage file.js with only double quotes " changed to '
  2. Run git commit -am "I don't like double quotes"
  3. Lint-staged runs prettier --write file.js, converting all the ' back to "
  4. Because there are now no changes, lint-staged fails, cancels the commit, and resets back to the original state
  5. Commit was not done, original state is restored and single quotes ' are staged
Now
  1. Stage file.js with only double-quotes " changed to '
  2. Run git commit -am "I don't like double quotes"
  3. Lint-staged runs prettier --write file.js, converting all the ' back to "
  4. Because there are now no changes, lint-staged fails and cancels the commit
  5. Commit was not done, and there are no staged changes

Configuration

📅 Schedule: 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 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 requested a review from a team as a code owner March 15, 2025 17:31
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.78%. Comparing base (0fc52ee) to head (fd8ae31).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1869   +/-   ##
=======================================
  Coverage   92.78%   92.78%           
=======================================
  Files          36       36           
  Lines        1358     1358           
  Branches      273      273           
=======================================
  Hits         1260     1260           
  Misses         68       68           
  Partials       30       30           
Flag Coverage Δ
aarch64 92.56% <ø> (ø)
aarch64-without-git 92.56% <ø> (ø)
alpine 92.78% <ø> (ø)
alpine-proxy 92.56% <ø> (ø)
alpine-without-git 92.78% <ø> (ø)
linux 92.56% <ø> (ø)
linux-without-git 92.56% <ø> (ø)
macos 92.56% <ø> (ø)
macos-arm64 92.56% <ø> (ø)
macos-arm64-without-git 92.56% <ø> (ø)
macos-without-git 92.56% <ø> (ø)
macos-x64 92.56% <ø> (ø)
macos-x64-without-git 92.56% <ø> (ø)
windows 92.56% <ø> (ø)
windows-without-git 92.56% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 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-15.x branch from b05f11c to fd8ae31 Compare March 17, 2025 20:47
@thomasrockhu-codecov thomasrockhu-codecov merged commit 9514fc9 into main Mar 18, 2025
40 checks passed
@thomasrockhu-codecov thomasrockhu-codecov deleted the renovate/lint-staged-15.x branch March 18, 2025 16:23
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.

1 participant