Skip to content

Drop direct Prettier usage #777

Open
@fregante

Description

Using prettier kinda makes sense here but most repos I've worked on use prettier everywhere, not just on JS files. See the latest issue:

I think that XO can be compatible with prettier without using it directly:

xo --prettier

Would become

xo --prettier && prettier

The flag would enable compatibility with prettier rather than run prettier.

In reality repos already have to run two commands since they have to run prettier on the remaining files anyway, but they risk running different prettier versions.

@spence-s also mentioned difficulty migrating the current config to flat due to prettier, if I understood that correctly

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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