-
-
Notifications
You must be signed in to change notification settings - Fork 681
vue/padding-line-between-tags
with new 'consistent' option
#1978
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
Comments
CC @dev1437 and @amiranagram, follow-up to #1832 and #1966. |
#1982 @FloEdelmann, but we will definitely need more edge cases defined and tests for them. If @mesqueeb wants to try the current behaviour and see if there are any issues, that would be great. |
@dev1437 sure! And thanks so much for this implementation! I think it's easiest for me to test it if you could release it to npm once. @FloEdelmann are you comfortable releasing it to npm once? I can open new issues for any lint bugs for this rule i come across in the future. |
@FloEdelmann i'd love to run it on my codebase once. From there if I find failures, I'll add those as test cases. I'll try to set up a fork and let you know how it goes. : ) |
I think we need to look more into how the new option work. |
|
I reconsidered that it might be better to check between elements where the matched blankLine returns |
I've updated this, so now it should only consider blocks that have consistent rule and are siblings |
What rule do you want to change?
vue/padding-line-between-tags
https://eslint.vuejs.org/rules/padding-line-between-tags.html#vue-padding-line-between-tags
Does this change cause the rule to produce more or fewer warnings?
depends on the config
How will the change be implemented? (New option, new default behavior, etc.)?
new option
"blankLine": "consistent"
I don't want blank lines in between all siblings or after specific tags.
What I would love:
Inconsistent spacing between same parent siblings is really inconsistent and drives me crazy. However, I do not want to force or disallow blank lines, I feel it's often a case-by-case choice depending how cluttered a parent with siblings looks.
My rule wish is:
Please provide some example code that this change will affect:
GOOD
GOOD
BAD
The text was updated successfully, but these errors were encountered: