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{typeB,a}from"a";export{typeB,a}from"a";
Now, all specifiers are sorted alphabetically, regardless of type:
import{a,typeB}from"a";export{a,typeB}from"a";
Motivation:
You might import a class for a type annotation using:
import{typeMyClass,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,typeMyClass,}from"example";
Now there’s no reordering diff, just the type keyword being removed:
import {
coolFunction,
- type MyClass,+ MyClass,
} from "example";
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@depfu rebase
Rebases against your default branch and redoes this update
@depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@depfu close
Closes this PR and deletes the branch
@depfu reopen
Restores the branch and reopens this PR (if it's closed)
@depfu pause
Ignores all future updates for this dependency and closes this PR
@depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ eslint-plugin-simple-import-sort (^9.0.0 → ^10.0.0) · Repo · Changelog
Release Notes
10.0.0 (from changelog)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 2 commits:
eslint-plugin-simple-import-sort v10.0.0
Change how type import/export specifiers are sorted (#125)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands