Skip to content

Commit 83c2aef

Browse files
committed
Add MarkdownEditor to direct-slot-children rule
1 parent e6ce287 commit 83c2aef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/rules/direct-slot-children.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ const slotParentToChildMap = {
1111
'NavList.Item': ['NavList.LeadingVisual', 'NavList.TrailingVisual'],
1212
'TreeView.Item': ['TreeView.LeadingVisual', 'TreeView.TrailingVisual'],
1313
RadioGroup: ['RadioGroup.Label', 'RadioGroup.Caption', 'RadioGroup.Validation'],
14-
CheckboxGroup: ['CheckboxGroup.Label', 'CheckboxGroup.Caption', 'CheckboxGroup.Validation']
15-
// Ignore `MarkdownEditor` for now because it's still in drafts
16-
// MarkdownEditor: ['MarkdownEditor.Toolbar', 'MarkdownEditor.Actions', 'MarkdownEditor.Label'],
14+
CheckboxGroup: ['CheckboxGroup.Label', 'CheckboxGroup.Caption', 'CheckboxGroup.Validation'],
15+
MarkdownEditor: ['MarkdownEditor.Toolbar', 'MarkdownEditor.Actions', 'MarkdownEditor.Label']
1716
}
1817

1918
const slotChildToParentMap = Object.entries(slotParentToChildMap).reduce((acc, [parent, children]) => {

0 commit comments

Comments
 (0)