UNPKG

@html-eslint/eslint-plugin

Version:
66 lines 1.99 kB
/** * @implements {Language<{ * LangOptions: ParserOptions; * Code: ReturnType<typeof createHTMLSourceCode>; * RootNode: AST.Program; * Node: {}; * }>} */ export class HTMLLanguage implements Language { /** * @type {"text"} * @property */ fileType: "text"; /** * @type {0 | 1} * @property */ lineStart: 0 | 1; /** * @type {0 | 1} * @property */ columnStart: 0 | 1; /** @type {string} */ nodeTypeKey: string; /** * The visitor keys for the es-html-parser AST. * * @type {Record<string, string[]>} */ visitorKeys: Record<string, string[]>; /** @param {ParserOptions} languageOptions */ validateLanguageOptions(languageOptions: ParserOptions): void; /** * @param {File} file * @param {Object} [context] * @param {ParserOptions} context.languageOptions * @returns {ParseResult<AST.Program>} */ parse(file: File, context?: { languageOptions: ParserOptions; }): ParseResult<AST.Program>; /** * @param {File} file * @param {OkParseResult<AST.Program>} parseResult */ createSourceCode(file: File, parseResult: OkParseResult<AST.Program>): import("@eslint/plugin-kit").TextSourceCodeBase<any> & { getDisableDirectives(): { problems: { ruleId: null | string; message: string; loc: import("@eslint/plugin-kit").SourceLocation; }[]; directives: import("@eslint/plugin-kit").Directive[]; }; getInlineConfigNodes(): import("@html-eslint/types").CommentContent[]; }; } import type { Language } from "@eslint/core"; import type { ParserOptions } from "@html-eslint/parser"; import type { File } from "@eslint/core"; import type { AST } from "eslint"; import type { ParseResult } from "@eslint/core"; import type { OkParseResult } from "@eslint/core"; //# sourceMappingURL=html-language.d.ts.map