UNPKG

prettier-plugin-awk

Version:

[![tests](https://github.com/Beaglefoot/prettier-plugin-awk/actions/workflows/tests.yml/badge.svg)](https://github.com/Beaglefoot/prettier-plugin-awk/actions/workflows/tests.yml) [![npm](https://img.shields.io/npm/v/prettier-plugin-awk)](https://www.npmjs

13 lines (12 loc) 712 B
import { Printer } from 'prettier'; import { SyntaxNode } from 'tree-sitter'; export declare const separatedNodes: Set<string>; /** Adds an empty line before and after some statements */ export declare function withNodesSeparator(printFn: Printer<SyntaxNode>['print']): Printer<SyntaxNode>['print']; /** * Preserves existing empty lines in original source code. * Multiple empty lines get replaced with a single one. */ export declare function withPreservedEmptyLines(printFn: Printer<SyntaxNode>['print']): Printer<SyntaxNode>['print']; /** This printer wrapper must be the outer one */ export declare function withNullNodeHandler(printFn: Printer<SyntaxNode>['print']): Printer<SyntaxNode | null>['print'];