function extendsRulesRecord(node) {
	const { heritageClauses } = node;

	if (!heritageClauses) {
		return false;
	}
	for (const heritageClause of heritageClauses) {
		for (const { expression } of heritageClause.types) {
			if (expression.kind === ts.SyntaxKind.PropertyAccessExpression) {
				if (
					expression.expression.kind === ts.SyntaxKind.Identifier &&
					expression.expression.text === "Linter" &&
					expression.name.kind === ts.SyntaxKind.Identifier &&
					expression.name.text === "RulesRecord"
				) {
					return true;
				}
			}
		}
	}
	return false;
}
Checks if a declared interface extends `Linter.RulesRecord`.
@param {ts.InterfaceDeclaration} node An `InterfaceDeclaration` node.
@returns {boolean} A boolean value indicating whether the specified interface extends `Linter.RulesRecord`.