Skip to content

Transition plan for new requirePragma in prettier core #54

@wbinnssmith

Description

@wbinnssmith

I just got the pragma functionality merged into prettier itself at prettier/prettier#2772. It is very similar to the functionality implemented here, only:

  • Now editors can use their autoformat functionality and follow the same rules for applying based on the pragma as other tools
  • The name of the pragma is fixed to either @prettier or @format. There's a bit of discussion in that PR behind this reasoning.

How should we manage the transition from eslint-plugin-prettier's implementation of pragmas to the new one in core? Off the top of my head it makes sense to no longer use the third option for this plugin, and instead either rely on a .prettierrc or instruct users to pass along requirePragma in the second options argument of this plugin.

Thanks! cc @asuarez

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