function isInlineComment(comment) {
			const previousToken = sourceCode.getTokenBefore(comment, {
					includeComments: true,
				}),
				nextToken = sourceCode.getTokenAfter(comment, {
					includeComments: true,
				});

			return Boolean(
				previousToken &&
					nextToken &&
					comment.loc.start.line === previousToken.loc.end.line &&
					comment.loc.end.line === nextToken.loc.start.line,
			);
		}
Checks whether a comment is an inline comment.

For the purpose of this rule, a comment is inline if:
1. The comment is preceded by a token on the same line; and
2. The command is followed by a token on the same line.

Note that the comment itself need not be single-line!

Also, it follows from this definition that only block comments can
be considered as possibly inline. This is because line comments
would consume any following tokens on the same line as the comment.
@param {ASTNode} comment The comment node to check.
@returns {boolean} True if the comment is an inline comment, false
otherwise.