.env.something files not correctly formatted
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?
I'm not quite sure whether it is a logical OR or a logical AND.
cc @fisker
I don't think prettier supports glob pattern at all.
It's a OR https://github.com/prettier/prettier/blob/8eb0630b12f3733bf4d0627f3dd500df895942af/src/utils/infer-parser.js#L17
I don't think prettier supports glob pattern at all.
Ah, that's a pity. Maybe either glob or regexp should be supported.
Function maybe a better idea.