Skip to content

Prettier's parser why not just "css" #2

@yangmingshan

Description

@yangmingshan

Question

This plugin use prettier.getFileInfo to decide which parser to use. But this plugin is work with stylelint, so the parser maybe only need be css?

Problem

In China there is someting called miniProgram. It's style file use css syntax but use wxss as the extension. I want use this plugin in miniProgram, but Prettier don't know *.wxss file. If I told Prettier use css parser, it will work fine.

Or

If the parser can not just be css, maybe use css as default parser when inferredParser is null is a idea.


I'm happy to send a PR :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions