Skip to content

Commit

Permalink
update reportInvalidScopeDisables except callback
Browse files Browse the repository at this point in the history
  • Loading branch information
chloerice committed Dec 9, 2022
1 parent 4cf0114 commit 9dda97c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions stylelint-polaris/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,14 @@ module.exports = {
// Note: This doesn't affect the default Stylelint behavior/reporting
// and is only need because we dynamically create these rule names
except: Object.entries(stylelintPolarisCoverageOptions).flatMap(
([categoryName, categoryConfigRules]) =>
Object.keys(categoryConfigRules).map(
(categoryRuleName) => `polaris/${categoryName}/${categoryRuleName}`,
([categoryName, categoryConfig]) =>
Object.keys(categoryConfig).map(
(stylelintRuleName) =>
`polaris/${categoryName}/${stylelintRuleName.replace(
// Remove duplicate 'polaris/' namespace from custom rule names
'polaris/',
'',
)}`,
),
),
},
Expand Down

0 comments on commit 9dda97c

Please sign in to comment.