File size: 366 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import { type Options, format } from "prettier"
export function pretty(value: any, options: Options = {}) {
return format(value, {
parser: "typescript",
bracketSpacing: true,
jsxSingleQuote: false,
printWidth: 160,
proseWrap: "always",
semi: false,
singleQuote: false,
tabWidth: 2,
trailingComma: "all",
...options,
})
}
|