Skip to content

Commit af0ceb8

Browse files
Update stylelint-polaris config to address out of memory issues (#7954)
1 parent fb0ed38 commit af0ceb8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.changeset/nervous-bats-switch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/stylelint-polaris': patch
3+
---
4+
5+
Use RegExp pattern to exclude reporting invalid scope disables and address memory issues

stylelint-polaris/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,7 @@ module.exports = {
477477
// Report invalid scope disables for all rules except coverage rules
478478
// Note: This doesn't affect the default Stylelint behavior/reporting
479479
// and is only need because we dynamically create these rule names
480-
except: Object.entries(stylelintPolarisCoverageOptions).flatMap(
481-
([categoryName, categoryConfigRules]) =>
482-
Object.keys(categoryConfigRules).map(
483-
(categoryRuleName) => `polaris/${categoryName}/${categoryRuleName}`,
484-
),
485-
),
480+
except: /^polaris\/.+?\/.+$/,
486481
},
487482
],
488483
plugins: [

0 commit comments

Comments
 (0)