Skip to content

hyphens and slashes ordered differently than with dprint #127

@mtqperson

Description

@mtqperson

If we have one import foo/bar and another foo-bar, this (excellent) plugin and dprint seem to have different opinions about the correct order of those.
(In my case it was { App } from 'app/app' and { appInit } from 'app-init').

I'm not saying that either is right, but the fix was a bit hard to find because the option isn't documented in dprint's TypeScript plugin.
My solution was set "module.sortImportDeclarations": "maintain" in dprint.json.

Maybe a note in the README could be helpful, otherwise please feel free to close this as it can still be found by searching. And thank you for the nice plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions