yarn prettier-plugin-organize-imports 3.2.1

latest releases: 3.2.4, 3.2.3, 3.2.2...
17 months ago

This version fixes the implementation of the language service host's getCurrentDirectory method to return the directory containing the tsconfig, rather than using ts.sys.getCurrentDirectory (which returns process.cwd()). This should prevent issues with resolving compiler plugins with Volar (which is used for Vue support).

Hopefully it doesn't break anything else 🤞 I don't think the tsconfig location is always the project root because of nested/extended tsconfigs, but it should be good enough for module resolution. If someone knows a better way of finding a project's root via the TypeScript API please let me know 🙏

Don't miss a new prettier-plugin-organize-imports release

NewReleases is sending notifications on new releases.