lib/rules/array-element-newline.js
function reportRequiredLineBreak(token) {
            const tokenBefore = sourceCode.getTokenBefore(token, { includeComments: true });

            context.report({
                loc: {
                    start: tokenBefore.loc.end,
                    end: token.loc.start
                },
                messageId: "missingLineBreak",
                fix(fixer) {
                    return fixer.replaceTextRange([tokenBefore.range[1], token.range[0]], "\n");
                }
            });
        }
function reportRequiredLineBreak(token) {
            const tokenBefore = sourceCode.getTokenBefore(token, { includeComments: true });

            context.report({
                loc: {
                    start: tokenBefore.loc.end,
                    end: token.loc.start
                },
                messageId: "missingLineBreak",
                fix(fixer) {
                    return fixer.replaceTextRange([tokenBefore.range[1], token.range[0]], "\n");
                }
            });
        }
function reportRequiredLineBreak ( token ) { const tokenBefore = sourceCode . getTokenBefore ( token , { includeComments : true } ) ; context . report ( { loc : { start : tokenBefore . loc . end , end : token . loc . start } , messageId : "missingLineBreak" , fix ( fixer ) { return fixer . replaceTextRange ( [ tokenBefore . range [ 1 ] , token . range [ 0 ] ] , "\n" ) ; } } ) ; }
Reports that there should be a line break after the first token
@param {Token} token - The token to use for the report.
@returns {void}
Reports that there should be a line break after the first token