Skip to main content

This library provides a dprint configuration for formatting TypeScript source code using non-insane brace style.

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
JSR Score
76%
Published
4 months ago (0.0.3)
Package root>main.ts
// 2024-06-09: can't make this work — maybe Deno doesn't support? or maybe TS itself? whatever, just use .json for the moment // import * as jsonc from './dprint.jsonc' with { type: "json" } import * as json from './dprint.json' with { type: 'json' }; /** Prints the recommended dprint configuration to the console. */ export const printDprintConfig = (): string => { const contents = JSON.stringify(json, null, 2); console.log('// A righteous dprint.jsonc config:'); console.log(contents); return contents; }; if (import.meta.main) { printDprintConfig(); }