un-ts / prettier

:package: Opinionated but Incredible Prettier plugins.
https://prettier.vercel.app
MIT License
277 stars 26 forks source link

.env.something files not correctly formatted #388

Open astorije opened 1 month ago

astorije commented 1 month ago

Using version 0.14.0:

"prettier-plugin-sh": "0.14.0",

And a dotenv file containing:

VITE_API_BASE_URL=      /api

The plugin will correctly format it if named .env but not .env.development.

I wonder if https://github.com/un-ts/prettier/blob/master/scripts/languages.ts#L23-L28 must be split into 2 objects, one for filenames and one for extensions, i.e. is it a logical OR or a logical AND?