Commit d1a1f16
authored
chore(deps-dev): bump lint-staged from 15.5.1 to 16.1.0 (#100)
Bumps [lint-staged](https://github.com/lint-staged/lint-staged) from
15.5.1 to 16.1.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>v16.1.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1536">#1536</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/e729daa3b3ae28e613f63e730652dbfad5d1c594"><code>e729daa</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! - A
new flag <code>--no-revert</code> has been introduced for when task
modifications should be applied to the index before aborting the commit
in case of errors. By default, <em>lint-staged</em> will clear all task
modifications and revert to the original state.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1550">#1550</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/b27fa3fecb75bcdcaa4bcd483c9d5c0755a22607"><code>b27fa3f</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
<em>Lint-staged</em> now ignores symlinks and leaves them out from the
list of staged files.</p>
</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1558">#1558</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/c37dc38dddbdebc41df4dbd909d79c98c3f69eb3"><code>c37dc38</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
The minimum required Node.js version is lowered to <code>20.17</code>
following <a
href="https://github.com/sindresorhus/nano-spawn/releases/tag/v1.0.2">nano-spawn@1.0.2</a>.</li>
</ul>
<h2>v16.0.0</h2>
<h3>Major Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
Processes are spawned using <a
href="https://github.com/sindresorhus/nano-spawn">nano-spawn</a> instead
of <a href="https://github.com/sindresorhus/execa">execa</a>. If you are
using Node.js scripts as tasks, you might need to explicitly run them
with <code>node</code>, especially when using Windows:</p>
<pre lang="json"><code>{
"*.js": "node my-js-linter.js"
}
</code></pre>
</li>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
The <code>--shell</code> flag has been removed and <em>lint-staged</em>
no longer supports evaluating commands directly via a shell. To migrate
existing commands, you can create a shell script and invoke it instead.
Lint-staged will pass matched staged files as a list of arguments,
accessible via <code>"$@"</code>:</p>
<pre lang="shell"><code># my-script.sh
#!/bin/bash
<p>echo "Staged files: $@"<br />
</code></pre></p>
<p>and</p>
<pre lang="json"><code>{ "*.js": "my-script.sh" }
</code></pre>
<p>If you were using the shell option to avoid passing filenames to
tasks, for example <code>bash -c 'tsc --noEmit'</code>, use the function
syntax instead:</p>
<pre lang="js"><code>export default { '*.ts': () => 'tsc --noEmit' }
</code></pre>
</li>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
Validation for deprecated advanced configuration has been removed. The
advanced configuration was removed in <em>lint-staged</em> version 9 and
until now validation has failed if advanced configuration options were
detected. Going forward the entire configuration will be treated with
the same logic and if these advanced options are still present, they
might be treated as valid globs for staged files instead.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
The lowest supported Node.js version is <code>20.18</code>. Please
upgrade your Node.js version.</p>
</li>
</ul>
<h3>Minor Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1401">#1401</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/27110ef8ee92c5d104235b4094abb3197b5bf074"><code>27110ef</code></a>
Thanks <a
href="https://github.com/RohitLuthra19"><code>@RohitLuthra19</code></a>!
- Added support for directly running functions on staged files. To
configure a function task, use an object with a title and the task
itself:</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</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>16.1.0</h2>
<h3>Minor Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1536">#1536</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/e729daa3b3ae28e613f63e730652dbfad5d1c594"><code>e729daa</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! - A
new flag <code>--no-revert</code> has been introduced for when task
modifications should be applied to the index before aborting the commit
in case of errors. By default, <em>lint-staged</em> will clear all task
modifications and revert to the original state.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1550">#1550</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/b27fa3fecb75bcdcaa4bcd483c9d5c0755a22607"><code>b27fa3f</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
<em>Lint-staged</em> now ignores symlinks and leaves them out from the
list of staged files.</p>
</li>
</ul>
<h3>Patch Changes</h3>
<ul>
<li><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1558">#1558</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/c37dc38dddbdebc41df4dbd909d79c98c3f69eb3"><code>c37dc38</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
The minimum required Node.js version is lowered to <code>20.17</code>
following <a
href="https://github.com/sindresorhus/nano-spawn/releases/tag/v1.0.2">nano-spawn@1.0.2</a>.</li>
</ul>
<h2>16.0.0</h2>
<h3>Major Changes</h3>
<ul>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
Processes are spawned using <a
href="https://github.com/sindresorhus/nano-spawn">nano-spawn</a> instead
of <a href="https://github.com/sindresorhus/execa">execa</a>. If you are
using Node.js scripts as tasks, you might need to explicitly run them
with <code>node</code>, especially when using Windows:</p>
<pre lang="json"><code>{
"*.js": "node my-js-linter.js"
}
</code></pre>
</li>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
The <code>--shell</code> flag has been removed and <em>lint-staged</em>
no longer supports evaluating commands directly via a shell. To migrate
existing commands, you can create a shell script and invoke it instead.
Lint-staged will pass matched staged files as a list of arguments,
accessible via <code>"$@"</code>:</p>
<pre lang="shell"><code># my-script.sh
#!/bin/bash
<p>echo "Staged files: $@"<br />
</code></pre></p>
<p>and</p>
<pre lang="json"><code>{ "*.js": "my-script.sh" }
</code></pre>
<p>If you were using the shell option to avoid passing filenames to
tasks, for example <code>bash -c 'tsc --noEmit'</code>, use the function
syntax instead:</p>
<pre lang="js"><code>export default { '*.ts': () => 'tsc --noEmit' }
</code></pre>
</li>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
Validation for deprecated advanced configuration has been removed. The
advanced configuration was removed in <em>lint-staged</em> version 9 and
until now validation has failed if advanced configuration options were
detected. Going forward the entire configuration will be treated with
the same logic and if these advanced options are still present, they
might be treated as valid globs for staged files instead.</p>
</li>
<li>
<p><a
href="https://redirect.github.com/lint-staged/lint-staged/pull/1546">#1546</a>
<a
href="https://github.com/lint-staged/lint-staged/commit/158d15c9aea0a3a87790ec3766442763cf387dba"><code>158d15c</code></a>
Thanks <a href="https://github.com/iiroj"><code>@iiroj</code></a>! -
The lowest supported Node.js version is <code>20.18</code>. Please
upgrade your Node.js version.</p>
</li>
</ul>
<h3>Minor Changes</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/f92caaad52cf7f87d8368bdb08abbc64b378b7c9"><code>f92caaa</code></a>
chore(changeset): release</li>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/e729daa3b3ae28e613f63e730652dbfad5d1c594"><code>e729daa</code></a>
feat: add "--no-revert" flag to disable reverting to original
state in case o...</li>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/c37dc38dddbdebc41df4dbd909d79c98c3f69eb3"><code>c37dc38</code></a>
fix: lower minimum required Node.js version to 20.17</li>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/48f778f777e6ab28ad47b78e09ef04b54ff6e0ae"><code>48f778f</code></a>
build(deps): update dependencies</li>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/b27fa3fecb75bcdcaa4bcd483c9d5c0755a22607"><code>b27fa3f</code></a>
feat: leave out symlinks from list of staged files</li>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/a941f2caee9895436b8e4ed3852c771ffbde21a8"><code>a941f2c</code></a>
docs: add table of contents section to README.md (<a
href="https://redirect.github.com/lint-staged/lint-staged/issues/1555">#1555</a>)</li>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/dad5490949f31442e7580246a9fad5565257d6cb"><code>dad5490</code></a>
chore(changeset): release</li>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/1c19e82da16db76dbc0b1f5db1dca516753c7c1a"><code>1c19e82</code></a>
build(deps): update dependencies and require Node.js 20.18</li>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/08cf8f54e4c5520790d8f02ca5315d7d1285e414"><code>08cf8f5</code></a>
docs: update README.md and bump nano-spawn as major change</li>
<li><a
href="https://github.com/lint-staged/lint-staged/commit/276dcc8a05dafc1b33041865cc9bb912fbd10e7c"><code>276dcc8</code></a>
refactor: simplify config validation</li>
<li>Additional commits viewable in <a
href="https://github.com/lint-staged/lint-staged/compare/v15.5.1...v16.1.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 e7678cb commit d1a1f16
2 files changed
Lines changed: 32 additions & 27 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 | |
|---|---|---|---|
| |||
1528 | 1528 | | |
1529 | 1529 | | |
1530 | 1530 | | |
1531 | | - | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
1535 | 1535 | | |
1536 | 1536 | | |
1537 | 1537 | | |
| |||
1742 | 1742 | | |
1743 | 1743 | | |
1744 | 1744 | | |
1745 | | - | |
1746 | | - | |
1747 | | - | |
1748 | | - | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
| |||
1929 | 1929 | | |
1930 | 1930 | | |
1931 | 1931 | | |
1932 | | - | |
| 1932 | + | |
1933 | 1933 | | |
1934 | 1934 | | |
1935 | 1935 | | |
| |||
2964 | 2964 | | |
2965 | 2965 | | |
2966 | 2966 | | |
2967 | | - | |
2968 | | - | |
2969 | | - | |
2970 | | - | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
2971 | 2971 | | |
2972 | 2972 | | |
2973 | | - | |
2974 | | - | |
2975 | | - | |
| 2973 | + | |
| 2974 | + | |
2976 | 2975 | | |
2977 | | - | |
| 2976 | + | |
2978 | 2977 | | |
| 2978 | + | |
2979 | 2979 | | |
2980 | 2980 | | |
2981 | | - | |
| 2981 | + | |
2982 | 2982 | | |
2983 | | - | |
2984 | | - | |
2985 | | - | |
2986 | | - | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
2987 | 2987 | | |
2988 | 2988 | | |
2989 | 2989 | | |
| |||
3429 | 3429 | | |
3430 | 3430 | | |
3431 | 3431 | | |
| 3432 | + | |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
| 3436 | + | |
3432 | 3437 | | |
3433 | 3438 | | |
3434 | 3439 | | |
| |||
5200 | 5205 | | |
5201 | 5206 | | |
5202 | 5207 | | |
5203 | | - | |
5204 | | - | |
5205 | | - | |
5206 | | - | |
| 5208 | + | |
| 5209 | + | |
| 5210 | + | |
| 5211 | + | |
5207 | 5212 | | |
5208 | 5213 | | |
5209 | 5214 | | |
| |||
0 commit comments