Skip to content

Commit 5563bcd

Browse files
Bump lint-staged from 15.4.3 to 15.5.0 (#747)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from 15.4.3 to 15.5.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/lint-staged/lint-staged/releases">lint-staged's releases</a>.</em></p> <blockquote> <h2>v15.5.0</h2> <h3>Minor Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1526">#1526</a> <a href="https://github.com/lint-staged/lint-staged/commit/630af5fb48ed43eb6ccaefa7a9d9612309023b6f"><code>630af5f</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - 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.</p> <h3>Example with Prettier</h3> <p>By default Prettier <a href="https://prettier.io/docs/rationale#strings">prefers double quotes</a>.</p> <h4>Previously</h4> <ol> <li>Stage <code>file.js</code> with only double quotes <code>&quot;</code> changed to <code>'</code></li> <li>Run <code>git commit -am &quot;I don't like double quotes&quot;</code></li> <li><em>Lint-staged</em> runs <code>prettier --write file.js</code>, converting all the <code>'</code> back to <code>&quot;</code></li> <li>Because there are now no changes, <em>lint-staged</em> fails, cancels the commit, and resets back to the original state</li> <li>Commit was not done, original state is restored and single quotes <code>'</code> are staged</li> </ol> <h4>Now</h4> <ol> <li>Stage <code>file.js</code> with only double-quotes <code>&quot;</code> changed to <code>'</code></li> <li>Run <code>git commit -am &quot;I don't like double quotes&quot;</code></li> <li><em>Lint-staged</em> runs <code>prettier --write file.js</code>, converting all the <code>'</code> back to <code>&quot;</code></li> <li>Because there are now no changes, <em>lint-staged</em> fails and cancels the commit</li> <li>Commit was not done, and there are no staged changes</li> </ol> </li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md">lint-staged's changelog</a>.</em></p> <blockquote> <h2>15.5.0</h2> <h3>Minor Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/lint-staged/lint-staged/pull/1526">#1526</a> <a href="https://github.com/lint-staged/lint-staged/commit/630af5fb48ed43eb6ccaefa7a9d9612309023b6f"><code>630af5f</code></a> Thanks <a href="https://github.com/iiroj"><code>@​iiroj</code></a>! - 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.</p> <h3>Example with Prettier</h3> <p>By default Prettier <a href="https://prettier.io/docs/rationale#strings">prefers double quotes</a>.</p> <h4>Previously</h4> <ol> <li>Stage <code>file.js</code> with only double quotes <code>&quot;</code> changed to <code>'</code></li> <li>Run <code>git commit -am &quot;I don't like double quotes&quot;</code></li> <li><em>Lint-staged</em> runs <code>prettier --write file.js</code>, converting all the <code>'</code> back to <code>&quot;</code></li> <li>Because there are now no changes, <em>lint-staged</em> fails, cancels the commit, and resets back to the original state</li> <li>Commit was not done, original state is restored and single quotes <code>'</code> are staged</li> </ol> <h4>Now</h4> <ol> <li>Stage <code>file.js</code> with only double-quotes <code>&quot;</code> changed to <code>'</code></li> <li>Run <code>git commit -am &quot;I don't like double quotes&quot;</code></li> <li><em>Lint-staged</em> runs <code>prettier --write file.js</code>, converting all the <code>'</code> back to <code>&quot;</code></li> <li>Because there are now no changes, <em>lint-staged</em> fails and cancels the commit</li> <li>Commit was not done, and there are no staged changes</li> </ol> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lint-staged/lint-staged/commit/7e6abe47c2c7584e72ded13a16d2e93d0a98f57b"><code>7e6abe4</code></a> chore(changeset): release</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/0ebfa69f49a8c3335a07bb6a170b5700776ef52d"><code>0ebfa69</code></a> build(deps): update dependencies</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/630af5fb48ed43eb6ccaefa7a9d9612309023b6f"><code>630af5f</code></a> feat: do not reset to original state when preventing empty commit</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/7b8be705e29c9ec91964d0b12e6c732789a00476"><code>7b8be70</code></a> chore: update default branch references from &quot;master&quot; to &quot;main&quot;</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/362a78df9ccb0fe8515c42164f93adaa87469954"><code>362a78d</code></a> docs: add workaround for tsc ignoring tsconfig.json issue to README FAQ (<a href="https://redirect.github.com/lint-staged/lint-staged/issues/1523">#1523</a>)</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/e013823e1867f076eb35e886c0422060dccb23b9"><code>e013823</code></a> fix: &quot;node_modules&quot; typo in eslint.config.js</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/67019ee77fac5e116ce86816663d8d1ee7e5a37a"><code>67019ee</code></a> test: add integration test to ensure unmodified merged files are not linted (...</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/366f8bdf90dbd18e9547b69d6b7d16f82bf4e8c2"><code>366f8bd</code></a> refactor: move TypeScript types to &quot;index.d.ts&quot; file</li> <li><a href="https://github.com/lint-staged/lint-staged/commit/85ea6a40a7902f1c4b16e43e07b3adca196bbe9f"><code>85ea6a4</code></a> docs: adjust readme regarding monorepo setup</li> <li>See full diff in <a href="https://github.com/lint-staged/lint-staged/compare/v15.4.3...v15.5.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lint-staged&package-manager=npm_and_yarn&previous-version=15.4.3&new-version=15.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
1 parent 34af280 commit 5563bcd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"jest": "^29.7.0",
5454
"jest-junit": "^16.0.0",
5555
"license-checker-rseidelsohn": "^4.4.2",
56-
"lint-staged": "^15.4.3",
56+
"lint-staged": "^15.5.0",
5757
"lodash": "^4.17.21",
5858
"nodemon": "^3.1.9",
5959
"prettier": "^3.5.3",

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ __metadata:
824824
jest: "npm:^29.7.0"
825825
jest-junit: "npm:^16.0.0"
826826
license-checker-rseidelsohn: "npm:^4.4.2"
827-
lint-staged: "npm:^15.4.3"
827+
lint-staged: "npm:^15.5.0"
828828
lodash: "npm:^4.17.21"
829829
nodemon: "npm:^3.1.9"
830830
prettier: "npm:^3.5.3"
@@ -4331,9 +4331,9 @@ __metadata:
43314331
languageName: node
43324332
linkType: hard
43334333

4334-
"lint-staged@npm:^15.4.3":
4335-
version: 15.4.3
4336-
resolution: "lint-staged@npm:15.4.3"
4334+
"lint-staged@npm:^15.5.0":
4335+
version: 15.5.0
4336+
resolution: "lint-staged@npm:15.5.0"
43374337
dependencies:
43384338
chalk: "npm:^5.4.1"
43394339
commander: "npm:^13.1.0"
@@ -4347,7 +4347,7 @@ __metadata:
43474347
yaml: "npm:^2.7.0"
43484348
bin:
43494349
lint-staged: bin/lint-staged.js
4350-
checksum: c1f71f2273bcbd992af929620f5acc6b9f6899da4b395e780e0b3ab33a0d725c239eb961873067c8c842e057c585c71dd4d44c0dc8b25539d3c2e97a3bdd6f30
4350+
checksum: 393b24d85d705a36e6556dc9d9b710594163be60f7789a2ca71bbf8f31debc10f7fde9cd0e868466ac2b7c154661983602decd7abbb6c685b21007bc70dbbdd6
43514351
languageName: node
43524352
linkType: hard
43534353

0 commit comments

Comments
 (0)