Skip to content

Commit a58f3ed

Browse files
committed
eslint-plugin-simple-import-sort v9.0.0
1 parent f57b913 commit a58f3ed

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### Version 9.0.0 (2023-01-16)
2+
3+
This version adds support for [eslint-plugin-svelte], and for `declare module` in TypeScript.
4+
5+
More generally, imports and exports are now supported _anywhere,_ by finding the set of parents of all imports and exports and working with those. Previously, the plugin only sorted imports and exports directly inside a `Program` node. For eslint-plugin-svelte and `declare module` that didn’t cut it.
6+
7+
This is only a breaking change if you imports or exports in `declare module` in TypeScript, and only in the form of that you need to autofix your files.
8+
19
### Version 8.0.0 (2022-09-03)
210

311
Node.js builtin modules prefixed with `node:` are now in a separate group by default (regex: `^node:`), above the packages group. (Node.js builtins _without_ `node:` are still sorted together with npm packages like before.)
@@ -105,6 +113,7 @@ This is only a breaking change if you use the `groups` option and your regexes c
105113
[@typescript-eslint/parser]: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser
106114
[#7]: https://github.com/lydell/eslint-plugin-simple-import-sort/issues/7
107115
[custom sorting]: https://github.com/lydell/eslint-plugin-simple-import-sort/tree/06c4db7d92a82ec2e265ad1bbb0c0a3d76566222#custom-grouping
116+
[eslint-plugin-svelte]: https://github.com/ota-meshi/eslint-plugin-svelte
108117
[flow type imports]: https://flow.org/en/docs/types/modules/
109118
[prettier]: https://prettier.io/
110119
[sort-from]: README.md#why-sort-on-from

package-real.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-simple-import-sort",
3-
"version": "8.0.0",
3+
"version": "9.0.0",
44
"license": "MIT",
55
"author": "Simon Lydell",
66
"repository": "lydell/eslint-plugin-simple-import-sort",

0 commit comments

Comments
 (0)