Skip to content

prettier.getFileInfo() doesn't load plugin #17488

@fisker

Description

@fisker

Environments:

  • Prettier Version: 3.5.3
  • Running Prettier via:
  • Runtime:
  • Operating System:
  • Prettier plugins (if any):

Steps to reproduce:

{
  "plugins": {"prettier-plugin-x"}
}

When prettier-plugin-x defines languages,

prettier --file-info foo.xxx

Expected behavior:

should load the plugin first, and return parser defined by that plugin.

Actual behavior:

It's not works as expected.

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.

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions