Skip to content

Releases: simonhaenisch/prettier-plugin-organize-imports

2.0.0

06 May 08:20
Compare
Choose a tag to compare

Now supports JavaScript via the babel parser and also supports TypeScript via the babel-ts parser 🎉

Special thanks to @duniul for the contribution (see #18)!

Both parsers are only available since Prettier v2, therefore the peer dependency has had a major version bump, which led me to release this as a major version as well. There are no breaking changes otherwise, so unless you're still on Prettier v1, you can just upgrade.

(The parser was called babylon in Prettier v1 but had a different signature so it would not have been easy to do a backwards-compatible implementation)

1.1.1

06 Jul 12:57
Compare
Choose a tag to compare

Added the files list to package.json to reduce the size on npm.

1.1.0

06 Jul 12:56
Compare
Choose a tag to compare

Added a feature to skip sorting imports for a file when it contains one of the comments
// organize-imports-ignore or // tslint:disable:ordered-imports (see 039c178).

Thanks to @thorn0 for this!

1.0.4

14 May 16:21
Compare
Choose a tag to compare

Fixed an issue where multi-line import statements would break because of Typescript 3.9.
Thanks @mathieumg!

Also added a Github action to run the tests.

1.0.3

14 May 16:20
Compare
Choose a tag to compare

Fixed the minimum required peer dependency versions.

1.0.2

17 Mar 14:00
Compare
Choose a tag to compare

Fix: respect an existing typescript preprocessor

1.0.1

17 Mar 14:01
Compare
Choose a tag to compare

Fix: only apply file changes if there are any

1.0.0

17 Mar 14:01
Compare
Choose a tag to compare

Initial release.