Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Apr 1, 2025

This PR contains the following updates:

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

Release Notes

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

v15.5.1

Compare Source

Patch Changes
  • #​1533 5d53534 Thanks @​iiroj! - Improve listing of staged files so that lint-staged doesn't crash when encountering an uninitialized submodule. This should result in less errors like:

    ✖ Failed to get staged files!
    

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 - Only on Wednesday ( * * * * 3 ) in timezone Asia/Tokyo, 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 review from AlexV525, lcdsmao and wasabeef as code owners April 1, 2025 16:52
@codecov
Copy link

codecov bot commented Apr 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.78%. Comparing base (5b7b60e) to head (a49155b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #678   +/-   ##
=======================================
  Coverage   96.78%   96.78%           
=======================================
  Files          22       22           
  Lines         840      840           
=======================================
  Hits          813      813           
  Misses         27       27           

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

🚀 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 upgrade-renovate-lint-staged-15.x-lockfile branch 2 times, most recently from 500b9d7 to f0b0b88 Compare April 7, 2025 02:46
@renovate renovate bot force-pushed the upgrade-renovate-lint-staged-15.x-lockfile branch 2 times, most recently from 1a3b766 to 9c33e03 Compare April 25, 2025 20:33
@renovate renovate bot changed the title upgrade: update dependency lint-staged to v15.5.0 upgrade: update dependency lint-staged to v15.5.1 Apr 25, 2025
@renovate renovate bot force-pushed the upgrade-renovate-lint-staged-15.x-lockfile branch from 9c33e03 to a49155b Compare May 9, 2025 04:35
@AlexV525 AlexV525 merged commit 6deb31e into main May 9, 2025
6 checks passed
@AlexV525 AlexV525 deleted the upgrade-renovate-lint-staged-15.x-lockfile branch May 9, 2025 05:28
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.

2 participants