Skip to content

Commit

Permalink
eslint-plugin-simple-import-sort v9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Jan 16, 2023
1 parent f57b913 commit a58f3ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### Version 9.0.0 (2023-01-16)

This version adds support for [eslint-plugin-svelte], and for `declare module` in TypeScript.

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.

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.

### Version 8.0.0 (2022-09-03)

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.)
Expand Down Expand Up @@ -105,6 +113,7 @@ This is only a breaking change if you use the `groups` option and your regexes c
[@typescript-eslint/parser]: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser
[#7]: https://github.com/lydell/eslint-plugin-simple-import-sort/issues/7
[custom sorting]: https://github.com/lydell/eslint-plugin-simple-import-sort/tree/06c4db7d92a82ec2e265ad1bbb0c0a3d76566222#custom-grouping
[eslint-plugin-svelte]: https://github.com/ota-meshi/eslint-plugin-svelte
[flow type imports]: https://flow.org/en/docs/types/modules/
[prettier]: https://prettier.io/
[sort-from]: README.md#why-sort-on-from
Expand Down
2 changes: 1 addition & 1 deletion package-real.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-simple-import-sort",
"version": "8.0.0",
"version": "9.0.0",
"license": "MIT",
"author": "Simon Lydell",
"repository": "lydell/eslint-plugin-simple-import-sort",
Expand Down

0 comments on commit a58f3ed

Please sign in to comment.