function isLastInOneLinerClassBody(node) {
			const parent = node.parent;
			const nextToken = sourceCode.getTokenAfter(node);

			if (!nextToken || nextToken.value !== "}") {
				return false;
			}

			if (parent.type === "ClassBody") {
				return parent.loc.start.line === parent.loc.end.line;
			}

			return false;
		}
Checks a node to see if it's the last item in a one-liner `ClassBody` node.
ClassBody is a one-liner if its braces (and consequently everything between them) are on the same line.
@param {ASTNode} node The node to check.
@returns {boolean} whether the node is the last item in a one-liner ClassBody.