Skip to content

Commit

Permalink
Bump eslint-plugin-simple-import-sort from 8.0.0 to 10.0.0 (#232)
Browse files Browse the repository at this point in the history
Bumps
[eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort)
from 8.0.0 to 10.0.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/lydell/eslint-plugin-simple-import-sort/blob/main/CHANGELOG.md">eslint-plugin-simple-import-sort's
changelog</a>.</em></p>
<blockquote>
<h3>Version 10.0.0 (2023-01-27)</h3>
<p>This release might move some imported items with <code>type</code>
around. This is a breaking formatting change (that only affects
TypeScript and Flow), but only in the form of that you need to autofix
your files.</p>
<p>In previous versions, <code>type</code> specifiers came first:</p>
<pre lang="ts"><code>import { type B, a } from &quot;a&quot;;
export { type B, a } from &quot;a&quot;;
</code></pre>
<p>Now, all specifiers are sorted alphabetically, regardless of
<code>type</code>:</p>
<pre lang="ts"><code>import { a, type B } from &quot;a&quot;;
export { a, type B } from &quot;a&quot;;
</code></pre>
<p>Motivation:</p>
<p>You might import a class for a type annotation using:</p>
<!-- raw HTML omitted -->
<pre lang="ts"><code>import {
  type MyClass,
  coolFunction,
} from &quot;example&quot;;
</code></pre>
<p>Later, you also start instantiating that class in the same file
(<code>new MyClass()</code>), so you remove <code>type</code>.</p>
<p>Previously, this resulted in a messy diff due to the class
moving:</p>
<pre lang="diff"><code> import {
-  type MyClass,
   coolFunction,
+  MyClass,
 } from &quot;example&quot;;
</code></pre>
<p>Now, the sorting with the <code>type</code> keyword would be:</p>
<!-- raw HTML omitted -->
<pre lang="ts"><code>import {
  coolFunction,
  type MyClass,
} from &quot;example&quot;;
&lt;/tr&gt;&lt;/table&gt; 
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/7d4947ad55a446e0a26ac6db8be19ce6fddd4d19"><code>7d4947a</code></a>
eslint-plugin-simple-import-sort v10.0.0</li>
<li><a
href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/3ef8f5af0d1a0abd202f456123dd032a6fe6e9fb"><code>3ef8f5a</code></a>
Change how type import/export specifiers are sorted (<a
href="https://github-redirect.dependabot.com/lydell/eslint-plugin-simple-import-sort/issues/125">#125</a>)</li>
<li><a
href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/a58f3ed84f106dbabeb73715a20d70689ac4eb1c"><code>a58f3ed</code></a>
eslint-plugin-simple-import-sort v9.0.0</li>
<li><a
href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/f57b9130bdcac0d964315514666cd7667befd90e"><code>f57b913</code></a>
Support imports and exports anywhere (<a
href="https://github-redirect.dependabot.com/lydell/eslint-plugin-simple-import-sort/issues/123">#123</a>)</li>
<li><a
href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/3968369436c51a0255048fa71cb4e3ea914362c3"><code>3968369</code></a>
Update npm packages (<a
href="https://github-redirect.dependabot.com/lydell/eslint-plugin-simple-import-sort/issues/122">#122</a>)</li>
<li><a
href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/12a82275be858b9fac631ea7152a4391ad248492"><code>12a8227</code></a>
Bump json5 from 1.0.1 to 1.0.2 (<a
href="https://github-redirect.dependabot.com/lydell/eslint-plugin-simple-import-sort/issues/120">#120</a>)</li>
<li>See full diff in <a
href="https://github.com/lydell/eslint-plugin-simple-import-sort/compare/v8.0.0...v10.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=eslint-plugin-simple-import-sort&package-manager=npm_and_yarn&previous-version=8.0.0&new-version=10.0.0)](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 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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Jan 29, 2023
1 parent 553cb43 commit 5cf8b51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-no-autofix": "^1.2.3",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^8.0.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^2.7.1",
"ttypescript": "^1.5.13",
"typescript-transform-paths": "^3.3.1"
Expand Down

0 comments on commit 5cf8b51

Please sign in to comment.