Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 16, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
eslint (source) 9.21.0 -> 9.22.0 age adoption passing confidence
lint-staged 15.4.3 -> 15.5.0 age adoption passing confidence
prettier (source) 3.5.2 -> 3.5.3 age adoption passing confidence

Release Notes

eslint/eslint (eslint)

v9.22.0

Compare Source

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
prettier/prettier (prettier)

v3.5.3

Compare Source


Configuration

📅 Schedule: Branch creation - "* 0-5 * * 4,* 0-10 * * 7" in timezone Europe/Kiev, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • 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 backend label Mar 16, 2025
@renovate renovate bot merged commit 16cf80a into master Mar 16, 2025
2 checks passed
@renovate renovate bot deleted the renovate/code-style-deps branch March 16, 2025 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

0 participants