Skip to content

Help with prettier-plugin-sort-imports #240

Closed

Description

@jonlabelle

@jonlabelle hello, same question from me. Can't use prettier with https://github.com/trivago/prettier-plugin-sort-imports. Could you please help?

Getting this:

[warn] Ignored unknown option { importOrderSeparation: false }.
[warn] Ignored unknown option { experimentalBabelParserPluginsList: ["jsx"] }.

Originally posted by @isnifer in #239 (comment)

Activity

  1. jonlabelle commented on May 22, 2021

    @jonlabelle
    OwnerAuthor

    @isnifer, can you package up minimal working project of your configuration, and attach it to this post?

    Here's an example of what I'm looking for.

  2. isnifer commented on May 22, 2021

    @isnifer

    @jonlabelle thanks for the response, it's just enough to add these two lines to any of your project. I think plugin can just ignore unknown config lines and not exit with 0 code

  3. jonlabelle commented on May 22, 2021

    @jonlabelle
    OwnerAuthor

    Worked fine for me. Please reference this example project which uses @trivago/prettier-plugin-sort-imports to sort imports.

  4. isnifer commented on May 23, 2021

    @isnifer

    @jonlabelle actually, confirm. Your example is working. And my project started working when I added prettier as devDependency lmaaao. (I really don't know why I didn't have it)
    Thanks

  5. github-actions commented on Oct 13, 2021

    @github-actions

    This issue has been automatically locked due to inactivity. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions