@axhxrx/dprint-config@0.0.3
latest
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
JSR Score
76%
Published
4 months ago (0.0.3)
// 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(); }