Skip to content

plugins options support plugin instance too #5760

@Kingwl

Description

@Kingwl

Environments:

  • Prettier Version: 1.15.3
  • Running Prettier via:
  • Runtime:
  • Operating System:

Steps to reproduce:

I wanna to build a app target web(by standalone and external modules) and node,
I tried to donot explicit set plugin by explicit behavior in my code,
but the plugins option of standalone accept plugin instance, the otherwise accept a path,
Could we accept the plugin instacne too in the normal version? that maybe only a typeof pred statement but very helpful to me!

Expected behavior:

Actual behavior:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiIssues with Prettier's Application Programming Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions