ggascoigne / prettier-plugin-import-sort

Prettier plugin to pass javascript and typescript through import-sort
MIT License
110 stars 11 forks source link

Support prettier 2.0 #7

Closed thebuilder closed 4 years ago

thebuilder commented 4 years ago

Support for parser/babylon was removed in Prettier 2.0, replaced by parser/babel. This change will still support Prettier from v1.16.0.

https://prettier.io/blog/2020/03/21/2.0.0.html#remove-deprecated-options-and-option-values-6993httpsgithubcomprettierprettierpull6993-7511httpsgithubcomprettierprettierpull7511-7533httpsgithubcomprettierprettierpull7533-7535httpsgithubcomprettierprettierpull7535-7536httpsgithubcomprettierprettierpull7536-by-fiskerhttpsgithubcomfisker

ggascoigne commented 4 years ago

Thank you.

ggascoigne commented 4 years ago

available in v0.0.4, and again, thank you for the quick fix.

ignatiusreza commented 4 years ago

This change will still support Prettier from v1.16.0.

This change actually breaks compatibility with Prettier < v2.0, as the actual file are still named prettier/parser-babylon in pre v2.0 (see PR), even though the parser config support both babel and babylon..