src/formatters/recursive.js
Function astToRecursive
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const astToRecursive = (ast) => {
const iter = (tree, depthIndent = 1) => {
const nodes = tree.map(({
name, type, nextValue, prevValue, children,
}) => {
Avoid too many return
statements within this function. Open
Open
return `${indent} ${name}: ${stringify(nextValue, depthIndent + 2)}`;