@html-eslint/eslint-plugin
Version:
ESLint plugin for HTML
35 lines • 1.08 kB
TypeScript
/**
* @param {{ ast: AST.Program; text: string; comments: CommentContent[] }} config
* @returns {TextSourceCodeBase<any> & {
* getDisableDirectives(): {
* problems: {
* ruleId: null | string;
* message: string;
* loc: SourceLocation;
* }[];
* directives: Directive[];
* };
* getInlineConfigNodes(): CommentContent[];
* }}
*/
export function createHTMLSourceCode(config: {
ast: AST.Program;
text: string;
comments: CommentContent[];
}): TextSourceCodeBase<any> & {
getDisableDirectives(): {
problems: {
ruleId: null | string;
message: string;
loc: SourceLocation;
}[];
directives: Directive[];
};
getInlineConfigNodes(): CommentContent[];
};
import type { AST } from "eslint";
import type { CommentContent } from "@html-eslint/types";
import { TextSourceCodeBase } from "@eslint/plugin-kit";
import type { SourceLocation } from "@eslint/plugin-kit";
import { Directive } from "@eslint/plugin-kit";
//# sourceMappingURL=html-source-code.d.ts.map