Skip to content

Commit 13e6984

Browse files
Copilotjonrohan
andcommitted
Add comment explaining nesting-selector-no-missing-scoping-root disable
Co-authored-by: jonrohan <54012+jonrohan@users.noreply.github.com>
1 parent 51f7083 commit 13e6984

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ export default {
149149
'length-zero-no-unit': null,
150150
'selector-max-type': null,
151151
'primer/colors': null,
152+
// Disable nesting-selector-no-missing-scoping-root for CSS-in-JS
153+
// In styled-components, the & selector is valid and refers to the component itself
152154
'nesting-selector-no-missing-scoping-root': null,
153155
},
154156
},

0 commit comments

Comments
 (0)