-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
New option for order rule to allow spaces inside import groups. #627
Comments
I'm fine with having this kind of option. I'm thinking this should instead be a new possible value for |
Right, that wouldn't make much sense. So a new value it is. Not quite sure what to call it without being super verbose. |
|
I was talking about still forcing newlines between groups, but also allowing them within them. |
Ah. That means that there are a few different new values to add...
So you'd probably need two new options... What do you think? |
Sounds good, #628 covers option 1, option 2 is ignored. If I understand you correctly option 3 is already covered by |
…o allow newlines inside import groups Closes import-js#627
…o allow newlines inside import groups Closes import-js#627
…on to allow newlines inside import groups Closes import-js#627
tag and pub? :) |
I currently use the
order
rule with thenewlines-between
option set toalways
, the problem is, I would like to be able to have newlines inside my import groups(to allow sorting by related categories).The always rule states(emphasis mine)
It would be nice to be able to control whether newlines are allowed within import groups. I was thinking maybe adding a boolean option
newlines-inside
that would allow you to make the choice. If the default is false, it should be backwards compatible.I want to make a pull, but I was wondering what you think of this @benmosher, before I get started.
The text was updated successfully, but these errors were encountered: