Skip to content

Reformat imports to be one identifier per line - #51565

Merged
Jake Bailey (jakebailey) merged 6 commits into
microsoft:mainfrom
jakebailey:reformat-imports
Nov 17, 2022
Merged

Jake Bailey (jakebailey) merged 6 commits into
microsoft:mainfrom
jakebailey:reformat-imports

Conversation

@jakebailey

Copy link
Copy Markdown
Member

In a design meeting before modules, we decided that we would start by "doing nothing" to solve our import sorting problem, leaving them as roughly 120-wide blocks and just let auto-import do whatever.

That unfortunately has caused merge conflicts to happen, and while we knew that would happen, it seems to be worse than expected.

So, let's try doing one import per line.

Unfortunately, there is no eslint rule that would allow us to do this; the best we can do is to sort the imports once they are there, but that won't reformat them to match this format. All of the lint rules defer to prettier/dprint/etc, and we still haven't come to a conclusion on that front, as much as I would like that to be done and done.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants