build(deps): update dependency lint-staged to v15.5.0#11764
Merged
Conversation
jcfranco
approved these changes
Mar 19, 2025
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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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 - [#​1526](https://github.com/lint-staged/lint-staged/pull/1526) [`630af5f`](https://github.com/lint-staged/lint-staged/commit/630af5fb48ed43eb6ccaefa7a9d9612309023b6f) Thanks [@​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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
15.4.3->15.5.0Release Notes
lint-staged/lint-staged (lint-staged)
v15.5.0Compare Source
Minor Changes
630af5fThanks @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
file.jswith only double quotes"changed to'git commit -am "I don't like double quotes"prettier --write file.js, converting all the'back to"'are stagedNow
file.jswith only double-quotes"changed to'git commit -am "I don't like double quotes"prettier --write file.js, converting all the'back to"