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>
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)
Bumps eslint-plugin-simple-import-sort from 8.0.0 to 10.0.0.
Changelog
Sourced from eslint-plugin-simple-import-sort's changelog.
... (truncated)
Commits
7d4947a
eslint-plugin-simple-import-sort v10.0.03ef8f5a
Change how type import/export specifiers are sorted (#125)a58f3ed
eslint-plugin-simple-import-sort v9.0.0f57b913
Support imports and exports anywhere (#123)3968369
Update npm packages (#122)12a8227
Bump json5 from 1.0.1 to 1.0.2 (#120)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)