UNPKG

prettier-plugin-solidity

Version:

A Prettier Plugin for automatically formatting your Solidity code.

9 lines 400 B
import { doc } from 'prettier'; const { hardline, join } = doc.builders; export function printIndentableBlockComment(comment) { const lines = comment.value.split('\n'); return join(hardline, lines.map((line, index) => index === 0 ? line.trimEnd() : ` ${index < lines.length - 1 ? line.trim() : line.trimStart()}`)); } //# sourceMappingURL=print-indentable-block-comment.js.map