Changes
Quick follow-up to 0.103.0 to improve a just released feature:
- fix: replace
functionBody.maintainSingleLinewithsingleLineBodyand per-function overrides (#955)
Property that was previously just added keeps working for this version, but will be removed in the next one.
Install
Then in your project's dprint configuration file:
- Specify the plugin url in the
"plugins"array (can be done viadprint add typescript). - Add a
"typescript"configuration property if desired.
JS Formatting API
- JS Formatter - Browser/Deno and Node
- npm package
{ // ...etc... "typescript": { // TypeScript & JavaScript config goes here }, "excludes": [ "**/node_modules" ], "plugins": [ "npm:@dprint/typescript@0.103.1" ] }