UNPKG

prettier-plugin-curly

Version:

Prettier plugin to enforce consistent brace style for all control statements. 🥌

30 lines (27 loc) • 2.18 kB
import * as prettier_doc_js from 'prettier/doc.js'; import * as prettier from 'prettier'; import { AstPath } from 'prettier'; import { CollectibleNode } from './types.mjs'; import '@babel/types'; declare const printers: { estree: { print(path: AstPath<CollectibleNode>, options: prettier.ParserOptions<any>, print: (path: AstPath<any>) => prettier.Doc, args: unknown): prettier_doc_js.builders.Doc; embed?: ((path: AstPath, options: prettier.Options) => ((textToDoc: (text: string, options: prettier.Options) => Promise<prettier.Doc>, print: (selector?: string | number | Array<string | number> | AstPath) => prettier.Doc, path: AstPath, options: prettier.Options) => Promise<prettier.Doc | undefined> | prettier.Doc | undefined) | prettier.Doc | null) | undefined; preprocess?: ((ast: any, options: prettier.ParserOptions<any>) => any) | undefined; insertPragma?: (text: string) => string; massageAstNode?: ((original: any, cloned: any, parent: any) => any) | undefined; hasPrettierIgnore?: ((path: AstPath<any>) => boolean) | undefined; canAttachComment?: ((node: any) => boolean) | undefined; isBlockComment?: ((node: any) => boolean) | undefined; willPrintOwnComments?: ((path: AstPath<any>) => boolean) | undefined; printComment?: ((commentPath: AstPath<any>, options: prettier.ParserOptions<any>) => prettier.Doc) | undefined; getCommentChildNodes?: ((node: any, options: prettier.ParserOptions<any>) => any[] | undefined) | undefined; handleComments?: { ownLine?: ((commentNode: any, text: string, options: prettier.ParserOptions<any>, ast: any, isLastComment: boolean) => boolean) | undefined; endOfLine?: ((commentNode: any, text: string, options: prettier.ParserOptions<any>, ast: any, isLastComment: boolean) => boolean) | undefined; remaining?: ((commentNode: any, text: string, options: prettier.ParserOptions<any>, ast: any, isLastComment: boolean) => boolean) | undefined; } | undefined; getVisitorKeys?: ((node: any, nonTraversableKeys: Set<string>) => string[]) | undefined; }; }; export { printers };