Skip to content

Documentation update for prettier v3? #714

@kyle-blair

Description

@kyle-blair

Before I open a pull request, I wanted to confirm that functionality is now slightly different from the current README.

I upgraded prettier to v3 and was getting the error:
[error] No parser could be inferred for file "/path/to/xml/file.xml".

I was able to fix this by adding the following plugin section to my .prettierrc file:

    "plugins": ["@prettier/plugin-xml"]

This wasn't entirely obvious anywhere in the documentation either here or in the main prettier repo. I think it would be useful to mention here now that plugin search has been disabled in prettier v3?

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