Showing 4 of 4 total issues
Function stylish
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const stylish = (tree) => {
const iter = (node, depth) => {
const lines = node.map((data) => {
const {
type, key, value, value1, value2, children,
Function iter
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const iter = (node, depth) => {
const lines = node.map((data) => {
const {
type, key, value, value1, value2, children,
} = data;
Avoid too many return
statements within this function. Open
Open
return `${getIndent(depth)} ${key}: ${stringify(value, depth + 1)}`;
Avoid too many return
statements within this function. Open
Open
return { type: 'unchanged', key, value: data1[key] };