Skip to content

Vue SFC style not formatted with lang attribute set to "css" #6871

@nimadera

Description

@nimadera

Prettier 1.18.2
Playground link

--parser vue

Input:

<style lang="css" scoped>
p { color: #2a2A2F }
</style>

Output:

<style lang="css" scoped>
p { color: #2a2A2F }
</style>

Expected behavior:

<style lang="css" scoped>
p { color: #2a2a2f }
</style>

The output is as expected if the lang attribute is set to "scss" or is removed altogether.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:vueIssues affecting Vuelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions