prettier-plugin-marko
Version:
A prettier plugin for parsing and printing Marko files
19 lines (18 loc) • 673 B
TypeScript
import { type Parser, type Printer, type SupportLanguage, type SupportOptions } from "prettier";
import { type Node, type Parsed } from "./parser";
declare module "prettier" {
interface Options {
markoSyntax?: "auto" | "html" | "concise";
_markoParsed?: Parsed;
}
interface ParserOptions {
markoSyntax?: "auto" | "html" | "concise";
_markoParsed?: Parsed;
}
}
type AnyNode = Node.AnyNode;
export declare const languages: SupportLanguage[];
export declare const options: SupportOptions;
export declare const parsers: Record<string, Parser<AnyNode>>;
export declare const printers: Record<string, Printer<AnyNode>>;
export {};