Skip to content

Conversation

@sw1tch3roo
Copy link
Contributor

Which issue, if any, is this issue related to?

Closes #8481.

Is there anything in the PR that needs further explanation?

No, it's self-explanatory.

@changeset-bot
Copy link

changeset-bot bot commented Jul 22, 2025

🦋 Changeset detected

Latest commit: 6260d46

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Minor

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

Copy link
Member

@Mouvedia Mouvedia left a 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?

@Mouvedia Mouvedia changed the title add declaration-block-nesting-at-rule-required-list Add declaration-block-nesting-at-rule-required-list Jul 22, 2025
Copy link
Member

@jeddy3 jeddy3 left a 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.

@sw1tch3roo
Copy link
Contributor Author

I've made all the changes you described, and in theory all the test cases are covered. I'll be waiting for the review =)

@sw1tch3roo sw1tch3roo changed the title Add declaration-block-nesting-at-rule-required-list Add rule-nesting-at-rule-required-list Jul 23, 2025
@Mouvedia Mouvedia dismissed their stale review July 23, 2025 19:14

resolved

@sw1tch3roo sw1tch3roo requested a review from jeddy3 July 24, 2025 08:14
Copy link
Member

@jeddy3 jeddy3 left a 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.

@sw1tch3roo
Copy link
Contributor Author

@jeddy3 ty for your thorough review 💌

@sw1tch3roo sw1tch3roo requested a review from jeddy3 July 24, 2025 18:36
Copy link
Member

@jeddy3 jeddy3 left a 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>
@github-actions
Copy link
Contributor

github-actions bot commented Jul 25, 2025

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

@jeddy3
Copy link
Member

jeddy3 commented Jul 25, 2025

Thanks for making the changes. Let's build the CJS files and push to fix the failing test.

@sw1tch3roo
Copy link
Contributor Author

I completely forgot about it, wait a second =)

Copy link
Member

@jeddy3 jeddy3 left a 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.

@sw1tch3roo sw1tch3roo requested a review from ybiquitous July 28, 2025 16:35
Copy link
Member

@jeddy3 jeddy3 left a 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.

@sw1tch3roo sw1tch3roo requested a review from jeddy3 July 28, 2025 17:30
Mouvedia

This comment was marked as resolved.

@sw1tch3roo sw1tch3roo force-pushed the feature/declaration-block-nesting-at-rule-required-list branch from 58864ff to e79ff39 Compare July 28, 2025 20:08
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@Mouvedia Mouvedia dismissed their stale review August 2, 2025 11:20

resolved

@sw1tch3roo sw1tch3roo force-pushed the feature/declaration-block-nesting-at-rule-required-list branch from 5538e06 to 058ccfa Compare August 2, 2025 14:24
@sw1tch3roo sw1tch3roo force-pushed the feature/declaration-block-nesting-at-rule-required-list branch from 058ccfa to dd2a7ff Compare August 2, 2025 14:31
@sw1tch3roo sw1tch3roo force-pushed the feature/declaration-block-nesting-at-rule-required-list branch from 0832171 to 554ecd6 Compare August 2, 2025 17:37
@sw1tch3roo
Copy link
Contributor Author

@ybiquitous Hi! Could you check the changes when you have some free time?

Copy link
Member

@ybiquitous ybiquitous left a 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 👍🏼

@ybiquitous ybiquitous merged commit 75dc62c into stylelint:main Aug 12, 2025
17 checks passed
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 8, 2025
| 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)).
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Sep 8, 2025
| 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)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add declaration-block-nesting-at-rule-required-list

4 participants