lib/rules/semi-spacing.js
function isFirstTokenInCurrentLine(token) {
            const tokenBefore = sourceCode.getTokenBefore(token);

            return !(tokenBefore && astUtils.isTokenOnSameLine(token, tokenBefore));
        }
function isFirstTokenInCurrentLine(token) {
            const tokenBefore = sourceCode.getTokenBefore(token);

            return !(tokenBefore && astUtils.isTokenOnSameLine(token, tokenBefore));
        }
function isFirstTokenInCurrentLine ( token ) { const tokenBefore = sourceCode . getTokenBefore ( token ) ; return ! ( tokenBefore && astUtils . isTokenOnSameLine ( token , tokenBefore ) ) ; }
Checks if the given token is the first token in its line
@param {Token} token The token to check.
@returns {boolean} Whether or not the token is the first in its line.
Checks if the given token is the first token in its line