Rule Proposal: Sort the standalone impo 8000 rts #2179
Closed
alexandrevryghem
started this conversation in
New Rule Proposals
Replies: 1 comment 1 reply
-
I like the reasoning (avoiding merge conflicts), but there used to be a rule to sort imports in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In order to make it easier to resolve merge conflicts I made a custom linting rule that enforces standalone imports to be sorted and written on a separate line. I was wondering if it was something that was maybe worth contributing here as well
Invalid format:
The imports are written in a compact, inline style, making changes harder to track in diffs:
Valid format:
Each import is placed on its own line for better readability:
Beta Was this translation helpful? Give feedback.
All reactions