packages/build/src/build/buildPages/buildBlock/buildEvents.js
Function buildEvents
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
function buildEvents(block, pageContext) {
if (block.events) {
Object.keys(block.events).map((key) => {
if (
(!type.isArray(block.events[key]) && !type.isObject(block.events[key])) ||