prettier-plugin-pegjs
Version:
A Prettier plugin for formatting Pegjs and Peggy-js grammars
17 lines (16 loc) • 573 B
TypeScript
import * as Prettier from "prettier/standalone";
import * as prettierPluginPegjs from "./prettier-plugin-pegjs";
import type { Options } from "prettier";
/**
* Format `source` code using Prettier to format/render
* the code.
*
* @export
* @param [source=""] - code to be formatted
* @param [options={}] - Prettier options object (you can set `printWidth` here)
* @returns formatted code
*/
declare function printPrettier(source?: string, options?: Options & {
actionParser?: string;
}): Promise<string>;
export { Prettier, printPrettier, prettierPluginPegjs };