Skip to content

.env.something files not correctly formatted #388

@astorije

Description

@astorije

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions