Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jakebailey opened this issue Jan 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jakebailey
Copy link
Contributor

jakebailey commented Jan 5, 2024

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))

@dsherret dsherret added the enhancement New feature or request label Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants