Skip to content

Expand forceMultiLineSpecifiers to format imports of a single named import as a single line #596

@jakebailey

Description

@jakebailey

This is a continuation of #473 (comment).

forceMultiLineSpecifiers forces imports to be vertical lists of single items, which is great for preventing merge conflicts. But, when importing one thing (which is surprisingly often), it looks like:

import {
    someFunction,
} from "some-library";

Which is maybe a little silly, especially when you may also be writing:

import someFunction from "some-library";

For libraries that have a default export instead.

It'd be nice if there were some way to say "a single import is okay", or similar. (per #473 (review))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions