Skip to content

Add support for "lwc" parser #20

@geoffswift

Description

@geoffswift

In addition to "vue", "angular" and "html" there is also "lwc" parser, refer to https://prettier.io/docs/en/options.html

I got it working by adding one line of code. Without this change the plugin makes no changes to my LWCs

export const parsers = {
  html: wrapParser(prettierParsers.html),
  lwc: wrapParser(prettierParsers.lwc), // Add this to make it work
  vue: wrapParser(prettierParsers.vue),
  angular: wrapParser(prettierParsers.angular),
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions