lib/rules/max-attributes-per-line.js
function report(attributes) {
            attributes.forEach((prop, i) => {
                context.report({
                    node: prop,
                    loc: prop.loc,
                    messageId: "missingNewLine",
                    data: {
                        name: prop.key,
                    },
                    fix:
                        i === 0
                            ? fixer => fixer.insertTextBefore(prop, "\n")
                            : undefined,
                })
            })
        }
function report(attributes) {
            attributes.forEach((prop, i) => {
                context.report({
                    node: prop,
                    loc: prop.loc,
                    messageId: "missingNewLine",
                    data: {
                        name: prop.key,
                    },
                    fix:
                        i === 0
                            ? fixer => fixer.insertTextBefore(prop, "\n")
                            : undefined,
                })
            })
        }
function report ( attributes ) { attributes . forEach ( ( prop , i ) => { context . report ( { node : prop , loc : prop . loc , messageId : "missingNewLine" , data : { name : prop . key , } , fix : i === 0 ? fixer => fixer . insertTextBefore ( prop , "\n" ) : undefined , } ) } ) }
Report warning the given attribute nodes.
@param  {Array} attributes The attribute nodes
@returns {void}
Report warning the given attribute nodes .