diff --git a/packages/osd-stylelint-plugin-stylelint/src/utils/compliance_engine.ts b/packages/osd-stylelint-plugin-stylelint/src/utils/compliance_engine.ts index 5daa7360c37..dcdbcf0cc16 100644 --- a/packages/osd-stylelint-plugin-stylelint/src/utils/compliance_engine.ts +++ b/packages/osd-stylelint-plugin-stylelint/src/utils/compliance_engine.ts @@ -52,7 +52,7 @@ const getComplianceRule = ( return undefined; } - const ruleObject = rule.some((object) => { + const ruleObject = rule.find((object) => { if (object.approved.includes(nodeInfo.value) || object.rejected.includes(nodeInfo.value)) { return object; }