Skip to content

Commit 1cf8148

Browse files
Update dependency lint-staged to v15.5.0 (#1213)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [lint-staged](https://redirect.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://redirect.github.com/lint-staged/lint-staged/blob/HEAD/CHANGELOG.md#1550) [Compare Source](https://redirect.github.com/lint-staged/lint-staged/compare/v15.4.3...v15.5.0) ##### Minor Changes - [#&#8203;1526](https://redirect.github.com/lint-staged/lint-staged/pull/1526) [`630af5f`](https://redirect.github.com/lint-staged/lint-staged/commit/630af5fb48ed43eb6ccaefa7a9d9612309023b6f) Thanks [@&#8203;iiroj](https://redirect.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> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/snowcoders/renovate-config). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xOTQuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE5NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 40c14fc commit 1cf8148

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

package-lock.json

Lines changed: 16 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"eslint-plugin-prettier": "5.2.3",
1919
"husky": "9.1.7",
2020
"jest": "29.7.0",
21-
"lint-staged": "15.4.3",
21+
"lint-staged": "15.5.0",
2222
"prettier": "3.5.3",
2323
"release-it": "18.1.2",
2424
"rimraf": "6.0.1",

0 commit comments

Comments
 (0)