src/formatters/simple.js
Function getRendering
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getRendering = (data, lvl = 0) => data.map((item) => {
const currentLvl = lvl + 2;
const {
type, key, newValue, oldValue, children,
} = item;
Avoid too many return
statements within this function. Open
Open
return `${oldItem}\n${newItem}`;