Skip to content

Commit

Permalink
Update config to alloy nesting in css modules (#403)
Browse files Browse the repository at this point in the history
* Update index.js

* fix test

* Create giant-kangaroos-provide.md

---------

Co-authored-by: Jon Rohan <yes@jonrohan.codes>
  • Loading branch information
mattcosta7 and jonrohan committed Apr 23, 2024
1 parent abd153f commit 2c9e2de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-kangaroos-provide.md
@@ -0,0 +1,5 @@
---
"@primer/stylelint-config": minor
---

Update config to alloy nesting in css modules
2 changes: 0 additions & 2 deletions __tests__/__fixtures__/good/example.module.css
Expand Up @@ -133,12 +133,10 @@
}

.details {
/* stylelint-disable-next-line max-nesting-depth */
&[open] .down-icon {
display: none !important;
}

/* stylelint-disable-next-line max-nesting-depth */
&:not([open]) .up-icon {
display: none !important;
}
Expand Down
2 changes: 0 additions & 2 deletions index.js
Expand Up @@ -179,8 +179,6 @@ export default {
{
files: ['**/*.module.css'],
rules: {
// Don't support nesting until it's more broadly shipped
'max-nesting-depth': [0],
'property-no-unknown': [
true,
{
Expand Down

0 comments on commit 2c9e2de

Please sign in to comment.