-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite sorting rule and utilities (#18)
Copied a bunch of the sorting utilities from [eslint-plugin-perfectionist](https://perfectionist.dev) (thanks for the great plugin, @azat-io!) which should make things easier to follow, and possibly sort out a few hard-to-nail-down issues. Fixes #16, #17
- Loading branch information
1 parent
10af33a
commit f3e79a7
Showing
25 changed files
with
1,011 additions
and
974 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"eslint-plugin-import-sorting": minor | ||
--- | ||
|
||
Group unassigned imports at the top | ||
Unassigned imports are grouped together, but not sorted in case of potential side-effects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'eslint-plugin-import-sorting': major | ||
--- | ||
|
||
Remove deprecated settings | ||
|
||
- `import-sorting/known-framework` should be changed to `import-sorting/framework-patterns` | ||
- `import-sorting/known-first-party` should be changed to `import-sorting/internal-patterns` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'eslint-plugin-import-sorting': minor | ||
--- | ||
|
||
Include Bun runtime modules in `builtin` group | ||
Since some builtin modules require a `bun:` or `node:` protocol prefix while others do not, sorting ignores the protocol prefix. (Including it consistently is recommended) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'eslint-plugin-import-sorting': minor | ||
--- | ||
|
||
Include additional extensions in `style` group | ||
The `style` group now matches imports of Less, Sass, Stylus, and more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.