New option for order rule to allow spaces inside import groups. #627
Description
I currently use the order
rule with the newlines-between
option set to always
, 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)
If set to always, at least one new line between each group will be enforced, and new lines inside a group will be forbidden. To prevent multiple lines between imports, core no-multiple-empty-lines rule can be used.
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.