src/components/Widgets/Markdown/serializers/slateRemark.js
Function convertNode
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function convertNode(node, children, shortcodePlugins) {
switch (node.type) {
/**
* General
Avoid too many return
statements within this function. Open
Open
return u(typeMap[node.type]);
Avoid too many return
statements within this function. Open
Open
return u(typeMap[node.type], props, children);
Avoid too many return
statements within this function. Open
Open
return u(typeMap[node.type], { url, title }, children);