Bump eslint-plugin-simple-import-sort from 7.0.0 to 10.0.0 #35

Open
opened 2025-08-09 16:55:59 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @dependabot[bot] on 2/23/2023

Bumps eslint-plugin-simple-import-sort from 7.0.0 to 10.0.0.

Changelog

Sourced from eslint-plugin-simple-import-sort's changelog.

Version 10.0.0 (2023-01-27)

This release might move some imported items with type 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.

In previous versions, type specifiers came first:

import { type B, a } from "a";
export { type B, a } from "a";

Now, all specifiers are sorted alphabetically, regardless of type:

import { a, type B } from "a";
export { a, type B } from "a";

Motivation:

You might import a class for a type annotation using:

import {
  type MyClass,
  coolFunction,
} from "example";

Later, you also start instantiating that class in the same file (new MyClass()), so you remove type.

Previously, this resulted in a messy diff due to the class moving:

 import {
-  type MyClass,
   coolFunction,
+  MyClass,
 } from "example";

Now, the sorting with the type keyword would be:

import {
  coolFunction,
  type MyClass,
} from "example";
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

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 commands and options

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)
*Originally created by @dependabot[bot] on 2/23/2023* Bumps [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort) from 7.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><a href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/24befb6cd5d7701a87eb2b655e3f0de8115441b9"><code>24befb6</code></a> eslint-plugin-simple-import-sort v8.0.0</li> <li><a href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/0e3719edbe52f11afe1859bde721e37ffe82dd79"><code>0e3719e</code></a> Put <code>node:*</code> modules in a separate group by default (<a href="https://github-redirect.dependabot.com/lydell/eslint-plugin-simple-import-sort/issues/111">#111</a>)</li> <li><a href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/5c8ef2aa1eb9322054d15fc24121f742e89aa772"><code>5c8ef2a</code></a> Update repo (<a href="https://github-redirect.dependabot.com/lydell/eslint-plugin-simple-import-sort/issues/110">#110</a>)</li> <li><a href="https://github.com/lydell/eslint-plugin-simple-import-sort/commit/31dc8854127a801e1cc6f1516c23854ea11b311f"><code>31dc885</code></a> Update test snapshot</li> <li>Additional commits viewable in <a href="https://github.com/lydell/eslint-plugin-simple-import-sort/compare/v7.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=7.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>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: fergalmoran/dbg-otherway#35
No description provided.