Commit f7d7474
authored
chore(deps-dev): bump lint-staged from 15.4.3 to 15.5.0 (#92)
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>"</code> changed to <code>'</code></li>
<li>Run <code>git commit -am "I don't like double
quotes"</code></li>
<li><em>Lint-staged</em> runs <code>prettier --write file.js</code>,
converting all the <code>'</code> back to <code>"</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>"</code> changed to <code>'</code></li>
<li>Run <code>git commit -am "I don't like double
quotes"</code></li>
<li><em>Lint-staged</em> runs <code>prettier --write file.js</code>,
converting all the <code>'</code> back to <code>"</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>"</code> changed to <code>'</code></li>
<li>Run <code>git commit -am "I don't like double
quotes"</code></li>
<li><em>Lint-staged</em> runs <code>prettier --write file.js</code>,
converting all the <code>'</code> back to <code>"</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>"</code> changed to <code>'</code></li>
<li>Run <code>git commit -am "I don't like double
quotes"</code></li>
<li><em>Lint-staged</em> runs <code>prettier --write file.js</code>,
converting all the <code>'</code> back to <code>"</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 "master" to
"main"</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: "node_modules" 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 "index.d.ts" 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 />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually 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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent d152e06 commit f7d7474
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2936 | 2936 | | |
2937 | 2937 | | |
2938 | 2938 | | |
2939 | | - | |
2940 | | - | |
2941 | | - | |
2942 | | - | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
2943 | 2943 | | |
2944 | 2944 | | |
2945 | 2945 | | |
| |||
0 commit comments