Skip to content

build(deps): update dependency lint-staged to v15.5.0#11764

Merged
benelan merged 1 commit intodevfrom
renovate/lint-staged-15.x
Mar 20, 2025
Merged

build(deps): update dependency lint-staged to v15.5.0#11764
benelan merged 1 commit intodevfrom
renovate/lint-staged-15.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 19, 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

  • If you want to rebase/retry this PR, check this box

@renovate renovate Bot requested a review from benelan as a code owner March 19, 2025 10:00
@renovate renovate Bot added chore Issues with changes that don't modify src or test files. dependencies Pull requests that update a dependency file labels Mar 19, 2025
@renovate renovate Bot requested a review from jcfranco as a code owner March 19, 2025 10:00
@jcfranco jcfranco added the skip visual snapshots Pull requests that do not need visual regression testing. label Mar 19, 2025
@benelan benelan merged commit 273ffb7 into dev Mar 20, 2025
21 checks passed
@benelan benelan deleted the renovate/lint-staged-15.x branch March 20, 2025 01:31
benelan added a commit that referenced this pull request Mar 24, 2025
* origin/dev: (61 commits)
  build(deps): update dependency stylelint to v16.16.0 (#11784)
  build(deps): update dependency type-fest to v4.37.0 (#11785)
  chore: release next
  build(deps): update eslint (#11786)
  docs: update list of contributors (#11780)
  feat(combobox-item): add component tokens (#11645)
  chore: release next
  feat: add browser join and browser plus (#11779)
  build(deps): update storybook monorepo to v8.6.6 (#11763)
  build(deps): update dependency lint-staged to v15.5.0 (#11764)
  docs: update list of contributors (#11769)
  build: update browserslist db (#11773)
  chore: release next
  feat(combobox, combobox-item-group): add component tokens (#11623)
  fix: Update README.md (#11768)
  fix: Update README.md (#11767)
  fix: Update README.md (#11765)
  revert(menu-item): revert hover state interaction changes (#11761)
  refactor(filter): remove unused styles (#11758)
  chore: use Vite for `@esri/eslint-plugin-calcite-components` build (#11752)
  ...
benelan added a commit that referenced this pull request Mar 24, 2025
…igration-ssr

* origin/dev: (278 commits)
  build(deps): update storybook monorepo to v8.6.7 (#11783)
  build: update browserslist db (#11792)
  build(deps): update dependency stylelint to v16.16.0 (#11784)
  build(deps): update dependency type-fest to v4.37.0 (#11785)
  chore: release next
  build(deps): update eslint (#11786)
  docs: update list of contributors (#11780)
  feat(combobox-item): add component tokens (#11645)
  chore: release next
  feat: add browser join and browser plus (#11779)
  build(deps): update storybook monorepo to v8.6.6 (#11763)
  build(deps): update dependency lint-staged to v15.5.0 (#11764)
  docs: update list of contributors (#11769)
  build: update browserslist db (#11773)
  chore: release next
  feat(combobox, combobox-item-group): add component tokens (#11623)
  fix: Update README.md (#11768)
  fix: Update README.md (#11767)
  fix: Update README.md (#11765)
  revert(menu-item): revert hover state interaction changes (#11761)
  ...
benelan pushed a commit that referenced this pull request Mar 26, 2025
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [lint-staged](https://github.com/lint-staged/lint-staged) |
[`15.4.3` ->
`15.5.0`](https://renovatebot.com/diffs/npm/lint-staged/15.4.3/15.5.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/lint-staged/15.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/lint-staged/15.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/lint-staged/15.4.3/15.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/lint-staged/15.4.3/15.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>lint-staged/lint-staged (lint-staged)</summary>

###
[`v15.5.0`](https://github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1550)

[Compare
Source](https://github.com/lint-staged/lint-staged/compare/v15.4.3...v15.5.0)

##### Minor Changes

-
[#&#8203;1526](https://github.com/lint-staged/lint-staged/pull/1526)
[`630af5f`](https://github.com/lint-staged/lint-staged/commit/630af5fb48ed43eb6ccaefa7a9d9612309023b6f)
Thanks [@&#8203;iiroj](https://github.com/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](https://prettier.io/docs/rationale#strings).

##### 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

</details>

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbImNob3JlIiwiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Issues with changes that don't modify src or test files. dependencies Pull requests that update a dependency file skip visual snapshots Pull requests that do not need visual regression testing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants