Skip to content

chore(deps): update dependency lint-staged to v15.5.2 - autoclosed#23

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/lint-staged-15.x
Closed

chore(deps): update dependency lint-staged to v15.5.2 - autoclosed#23
renovate[bot] wants to merge 1 commit intomainfrom
renovate/lint-staged-15.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 11, 2025

This PR contains the following updates:

Package Change Age Confidence
lint-staged 15.4.3 -> 15.5.2 age confidence

Release Notes

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

v15.5.2

Compare Source

Patch Changes

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 - 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 force-pushed the renovate/lint-staged-15.x branch 2 times, most recently from b1385d0 to efd80da Compare April 16, 2025 21:25
@renovate renovate Bot force-pushed the renovate/lint-staged-15.x branch from efd80da to e95f988 Compare May 11, 2025 18:42
@renovate renovate Bot changed the title chore(deps): update dependency lint-staged to v15.5.0 chore(deps): update dependency lint-staged to v15.5.1 May 11, 2025
@renovate renovate Bot force-pushed the renovate/lint-staged-15.x branch 4 times, most recently from ce40282 to 9657827 Compare May 16, 2025 20:26
@renovate renovate Bot force-pushed the renovate/lint-staged-15.x branch from 9657827 to 6e8c7bc Compare June 6, 2025 04:02
@renovate renovate Bot changed the title chore(deps): update dependency lint-staged to v15.5.1 chore(deps): update dependency lint-staged to v15.5.2 Jun 6, 2025
@renovate renovate Bot force-pushed the renovate/lint-staged-15.x branch from 6e8c7bc to d916ebb Compare August 10, 2025 12:45
@renovate renovate Bot changed the title chore(deps): update dependency lint-staged to v15.5.2 chore(deps): update dependency lint-staged to v15.5.2 - autoclosed Aug 11, 2025
@renovate renovate Bot closed this Aug 11, 2025
@renovate renovate Bot deleted the renovate/lint-staged-15.x branch August 11, 2025 14:16
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