-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Make *-empty-line-before keyword options consistent #1663
Comments
#2188 made we realise that our As an aside, I think our |
SGTM... We could duplicate the option names and save off having to deprecate them immediately, they could live side by side for a while... |
Based on the above discussion here's a list of rule options that will be affected by this issue. If there's no objections I can (probably) start implementing these changes later in the week.
|
I just looked through the |
I've made a start on this, but have skipped adding the options to |
at-rule-nested-empty-line-before "blockless-group" → "blockless-after-blockless" comment-empty-line-before "between-comments" → "after-comment" "stylelint-commands" → "stylelint-command" stylelint/stylelint#1663 (comment) 9
Are you sure about
|
Good point @hudochenkov! |
Nope :) I had the same thoughts as you when I looked through #2262. I've been thinking about it for a couple of days. Every Each of the Where does that leave At first, I was struggling to reconcile this, but now I'm beginning to think that the division is right i.e.
Sound good? I can't think of an alternative, other than introducing a bunch of conflicting P.S. @hudochenkov Thanks for raising your concerns btw :) With your work on postcss-sorting and stylelint-order, you've got a tonne of experience with these rules! |
Separation of concerns! I agree with you, @jeddy3.
Thank you, @stylelint/core! I've learned a lot from you and still learning. I'm happy to make something in return for your knowledge and fantastic tool :) |
@davidtheclark @jeddy3 can be made @hudochenkov as |
@evilebottnawi Sent an invite! |
@stylelint/core thank you for your trust! It means a lot to me! Is there any guide or info I should know in a new position? |
@hudochenkov Not sure much. We've just kind of developed an informal standard way of working. For example:
Thanks for creating this issue but we are closing it as issues need to follow our issue template, so that we can clearly understand your particular circumstances.
Please help us to help you by [recreating the issue](https://github.com/stylelint/stylelint/issues/new) using the template.
I think that's about it. Welcome aboard and enjoy yourself :) |
@jeddy3 thank you! |
Back to the topic: @m-allanson will you revert changes for |
@hudochenkov If you've time, feel free to jump on it. Remembering that four of the changes ( @m-allanson Sorry about the revision and the time you lost making the original changes 😞 |
Yay, welcome aboard @hudochenkov, great to have you part of the team 😄 Aside: Apologies for not being around much this year, I quit my job of ~21 years New Years Eve 🎉 and I've been busy with the associated tasks of winding down ones own business, and updating/creating my resume for the next phase of my career 😃 |
@hudochenkov welcome :) and @ntwb congratulations :)
No problem, it's good to get these right even if the process takes us in a little circle. |
#1653 (comment) - brought some clarity to how the
*-empty-line-before
secondary options should work.A couple of the existing options are inconsistent.
comment-empty-line-before
's"between-comments"
→"after-comment"
at-rule-empty-line-before
's"blockless-group"
→"blockless-after-blockless"
This is consistent with the existing keywords of
"after-comment"
,"after-single-line-comment"
and"first-nested"
. And the new keywords of"after-custom-property"
and"after-declaration"
.We can decide whether to leave them be, or change them in the next major release nearer the time. I wanted to write this issue up to highlight these inconsistencies so that any new options we added going forward are consistent.
We've a proposal for a new option in #1366. Perhaps we should change the proposal to be more consistent with these conventions:
at-rule-empty-line-before
'sexcept: "matching-name-blockless-group"
→except: "blockless-after-same-name-blockless"
. The first"blockless"
describes the thing itself and"after-same-name-blockless"
describes its relationship to its previous sibling.Sound about right?
Edit:
"all-nested"
->"inside-block"
,"stylelint-commands"
->"stylelint-command"
The text was updated successfully, but these errors were encountered: