remove validation for StringLiteral in JSXElement children property
This commit is contained in:
parent
aa2cc907ea
commit
2befeb0657
@ -41,7 +41,7 @@ defineType("JSXElement", {
|
||||
children: {
|
||||
validate: chain(
|
||||
assertValueType("array"),
|
||||
assertEach(assertNodeType("StringLiteral", "JSXText", "JSXExpressionContainer", "JSXElement"))
|
||||
assertEach(assertNodeType("JSXText", "JSXExpressionContainer", "JSXElement"))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user