Prettier with mjs file

Hello,

I use .mjs extension for my project and I didn’t find a way to make prettier work on those files. The little button on top top didn’t appear.

It would be awesome if you add the possibility to make .mjs file prettier :slight_smile:

Hi! It’s because the mjs is not a popular extension (or because prettier doesn’t support it), but I’m sure that will be implemented soon!
Thanks!

1 Like

TypeScript has recently added “.mts” which outputs as “.mjs”.

I would love this, and Prettier support should be extended.

edit: I bumped a 24 day-old topic :sweat_smile:

1 Like

Hi folks - we just deployed an update that adds Prettier button support to .mjs and .cjs files. Appreciate the idea, votes and the topic bump!

5 Likes