src/formatters/stylish.js
Function buildFormat
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
const buildFormat = (children, depth) => {
const result = children.map((node) => {
const { type, value, name } = node;
switch (type) {
case 'unchanged': {
Avoid too many return
statements within this function. Open
Open
return `${space}${name}: {\n${buildFormat(nodeChildren, depth + 1)}\n${space}}`;