Skip to content

Commit

Permalink
Revert global scope plugin (#455)
Browse files Browse the repository at this point in the history
* Revert the no-global-scoped-selector plugin

* remove disable
  • Loading branch information
jonrohan committed Aug 23, 2024
1 parent 22b6c42 commit 57b5862
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 674 deletions.
5 changes: 0 additions & 5 deletions .changeset/clean-ads-work.md

This file was deleted.

1 change: 0 additions & 1 deletion __tests__/__fixtures__/good/example.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
overflow: hidden;
}

/* stylelint-disable-next-line css-modules/no-global-scoped-selector */
:root {
--offset: -500px;
}
Expand Down
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ export default {
},
{
files: ['**/*.module.css'],
plugins: ['stylelint-css-modules-no-global-scoped-selector'],
rules: {
'property-no-unknown': [
true,
Expand All @@ -197,7 +196,6 @@ export default {
ignoreFunctions: ['global'],
},
],
'css-modules/no-global-scoped-selector': true,
// temporarily disabiling Primer plugins while we work on upgrades https://github.com/github/primer/issues/3165
'primer/typography': null,
'primer/box-shadow': null,
Expand Down
Loading

0 comments on commit 57b5862

Please sign in to comment.