Disable nesting-selector-no-missing-scoping-root for CSS-in-JS files#657
Merged
jonrohan merged 3 commits intodependabot/npm_and_yarn/production-dependencies-e0059f00e3from Jan 29, 2026
Conversation
|
The new stylelint version (16.26.1) via stylelint-config-recommended introduces the nesting-selector-no-missing-scoping-root rule. This rule doesn't understand CSS-in-JS patterns used by styled-components where & is valid and refers to the component itself. Disabling this rule for .tsx files fixes the CI test failures. Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com>
Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Bump production-dependencies group with 5 updates
Disable nesting-selector-no-missing-scoping-root for CSS-in-JS files
Jan 29, 2026
a5cfa9b
into
dependabot/npm_and_yarn/production-dependencies-e0059f00e3
6 checks passed
jonrohan
added a commit
that referenced
this pull request
Jan 29, 2026
…tes (#654) * Bump the production-dependencies group across 1 directory with 5 updates Bumps the production-dependencies group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [stylelint](https://github.com/stylelint/stylelint) | `16.21.0` | `16.26.1` | | [stylelint-browser-compat](https://github.com/3846masa/stylelint-browser-compat) | `1.0.0-beta.169` | `1.0.0-beta.180` | | [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard) | `38.0.0` | `39.0.1` | | [stylelint-scss](https://github.com/stylelint-scss/stylelint-scss) | `6.12.1` | `6.13.0` | | [stylelint-value-no-unknown-custom-properties](https://github.com/csstools/stylelint-value-no-unknown-custom-properties) | `6.0.1` | `6.1.0` | Updates `stylelint` from 16.21.0 to 16.26.1 - [Release notes](https://github.com/stylelint/stylelint/releases) - [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md) - [Commits](stylelint/stylelint@16.21.0...16.26.1) Updates `stylelint-browser-compat` from 1.0.0-beta.169 to 1.0.0-beta.180 - [Release notes](https://github.com/3846masa/stylelint-browser-compat/releases) - [Changelog](https://github.com/3846masa/stylelint-browser-compat/blob/develop/CHANGELOG.md) - [Commits](3846masa/stylelint-browser-compat@v1.0.0-beta.169...v1.0.0-beta.180) Updates `stylelint-config-standard` from 38.0.0 to 39.0.1 - [Release notes](https://github.com/stylelint/stylelint-config-standard/releases) - [Changelog](https://github.com/stylelint/stylelint-config-standard/blob/main/CHANGELOG.md) - [Commits](stylelint/stylelint-config-standard@38.0.0...39.0.1) Updates `stylelint-scss` from 6.12.1 to 6.13.0 - [Release notes](https://github.com/stylelint-scss/stylelint-scss/releases) - [Changelog](https://github.com/stylelint-scss/stylelint-scss/blob/master/CHANGELOG.md) - [Commits](stylelint-scss/stylelint-scss@v6.12.1...v6.13.0) Updates `stylelint-value-no-unknown-custom-properties` from 6.0.1 to 6.1.0 - [Release notes](https://github.com/csstools/stylelint-value-no-unknown-custom-properties/releases) - [Changelog](https://github.com/csstools/stylelint-value-no-unknown-custom-properties/blob/main/CHANGELOG.md) - [Commits](csstools/stylelint-value-no-unknown-custom-properties@v6.0.1...v6.1.0) --- updated-dependencies: - dependency-name: stylelint dependency-version: 16.26.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: stylelint-browser-compat dependency-version: 1.0.0-beta.180 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: production-dependencies - dependency-name: stylelint-config-standard dependency-version: 39.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: production-dependencies - dependency-name: stylelint-scss dependency-version: 6.13.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies - dependency-name: stylelint-value-no-unknown-custom-properties dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: production-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * Disable nesting-selector-no-missing-scoping-root for CSS-in-JS files (#657) * Initial plan * Disable nesting-selector-no-missing-scoping-root for .tsx files The new stylelint version (16.26.1) via stylelint-config-recommended introduces the nesting-selector-no-missing-scoping-root rule. This rule doesn't understand CSS-in-JS patterns used by styled-components where & is valid and refers to the component itself. Disabling this rule for .tsx files fixes the CI test failures. Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com> * Add comment explaining nesting-selector-no-missing-scoping-root disable Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The dependency update to stylelint v16.26.1 introduced
nesting-selector-no-missing-scoping-rootvia stylelint-config-recommended, which rejects the&selector in styled-components as missing a scoping root.Changes
nesting-selector-no-missing-scoping-rootfor.tsxfiles in the overrides configuration&refers to the component itself💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.