-
-
Notifications
You must be signed in to change notification settings - Fork 986
Add rule-nesting-at-rule-required-list
#8680
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
Add rule-nesting-at-rule-required-list
#8680
Conversation
🦋 Changeset detectedLatest commit: 6260d46 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
lib/rules/declaration-block-nesting-at-rule-required-list/README.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution.
I just read the README and found one typo, could you fix it?
lib/rules/declaration-block-nesting-at-rule-required-list/README.md
Outdated
Show resolved
Hide resolved
lib/rules/declaration-block-nesting-at-rule-required-list/README.md
Outdated
Show resolved
Hide resolved
lib/rules/declaration-block-nesting-at-rule-required-list/index.mjs
Outdated
Show resolved
Hide resolved
declaration-block-nesting-at-rule-required-listdeclaration-block-nesting-at-rule-required-list
jeddy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sw1tch3roo Thank you for the PR. You're on fire with all these contributions!
I've proposed a slight shift in the scope and behaviour of the rule. These things often only become apparent once we start the implementation.
lib/rules/declaration-block-nesting-at-rule-required-list/__tests__/index.mjs
Outdated
Show resolved
Hide resolved
|
I've made all the changes you described, and in theory all the test cases are covered. I'll be waiting for the review =) |
declaration-block-nesting-at-rule-required-listrule-nesting-at-rule-required-list
jeddy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes. I think it's shaping up nicely.
I've requested some minor changes to the docs, tests and code style. Otherwise, I think it looks good.
lib/rules/rule-nesting-at-rule-required-list/__tests__/index.mjs
Outdated
Show resolved
Hide resolved
lib/rules/rule-nesting-at-rule-required-list/__tests__/index.mjs
Outdated
Show resolved
Hide resolved
|
@jeddy3 ty for your thorough review 💌 |
jeddy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes.
Just two more minor tweaks from me, then LGTM.
Co-authored-by: Richard Hallows <jeddy3@users.noreply.github.com>
|
This PR is packaged and the instant preview is available (6260d46). View the demo website. Install it locally: npm i -D https://pkg.pr.new/stylelint@6260d46 |
|
Thanks for making the changes. Let's build the CJS files and push to fix the failing test. |
|
I completely forgot about it, wait a second =) |
jeddy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot about the type guard and standard syntax utils 😅
Let's use them.
jeddy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making the changes.
One change got overlooked, which I've highlighted.
58864ff to
e79ff39
Compare
jeddy3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
5538e06 to
058ccfa
Compare
058ccfa to
dd2a7ff
Compare
0832171 to
554ecd6
Compare
|
@ybiquitous Hi! Could you check the changes when you have some free time? |
ybiquitous
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sw1tch3roo Sorry for my late response! Looks great, thank you 👍🏼
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 16.23.1 | 16.24.0 | ## [v16.24.0](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#16240---2025-09-07) It adds 1 new rule, adds 1 option to a rule and fixes 2 bugs. - Added: `rule-nesting-at-rule-required-list` rule ([#8680](stylelint/stylelint#8680)) ([@sw1tch3roo](https://github.com/sw1tch3roo)). - Added: `ignoreAtRules: []` to `nesting-selector-no-missing-scoping-root` ([#8743](stylelint/stylelint#8743)) ([@karlhorky](https://github.com/karlhorky)). - Fixed: `function-no-unknown` false positives for `contrast-color()` and `sibling-*()` ([#8729](stylelint/stylelint#8729)) ([@Mouvedia](https://github.com/Mouvedia)). - Fixed: `selector-pseudo-class-no-unknown` false positives for `:heading` ([#8749](stylelint/stylelint#8749)) ([@Mouvedia](https://github.com/Mouvedia)).
| datasource | package | from | to | | ---------- | --------- | ------- | ------- | | npm | stylelint | 16.23.1 | 16.24.0 | ## [v16.24.0](https://github.com/stylelint/stylelint/blob/HEAD/CHANGELOG.md#16240---2025-09-07) It adds 1 new rule, adds 1 option to a rule and fixes 2 bugs. - Added: `rule-nesting-at-rule-required-list` rule ([#8680](stylelint/stylelint#8680)) ([@sw1tch3roo](https://github.com/sw1tch3roo)). - Added: `ignoreAtRules: []` to `nesting-selector-no-missing-scoping-root` ([#8743](stylelint/stylelint#8743)) ([@karlhorky](https://github.com/karlhorky)). - Fixed: `function-no-unknown` false positives for `contrast-color()` and `sibling-*()` ([#8729](stylelint/stylelint#8729)) ([@Mouvedia](https://github.com/Mouvedia)). - Fixed: `selector-pseudo-class-no-unknown` false positives for `:heading` ([#8749](stylelint/stylelint#8749)) ([@Mouvedia](https://github.com/Mouvedia)).
Closes #8481.
No, it's self-explanatory.