@html-eslint/eslint-plugin
Version:
ESLint plugin for HTML
19 lines • 757 B
TypeScript
/**
* Get or create cached parse result for a template literal.
*
* @param {TemplateLiteral} node
* @param {SourceCode} sourceCode
* @param {TemplateHTMLVisitor} [visitor]
* @returns {{ ast: DocumentNode; html: string; tokens: AnyToken[] }}
*/
export function parseTemplateLiteral(node: TemplateLiteral, sourceCode: SourceCode, visitor?: TemplateHTMLVisitor): {
ast: DocumentNode;
html: string;
tokens: AnyToken[];
};
import type { TemplateLiteral } from "@html-eslint/types";
import type { SourceCode } from "eslint";
import type { TemplateHTMLVisitor } from "@html-eslint/template-parser";
import type { DocumentNode } from "es-html-parser";
import type { AnyToken } from "es-html-parser";
//# sourceMappingURL=template-literal.d.ts.map