Changes
- fix: add memberSpacing and code examples to the config schema (#898)
- fix: keep a call body that moved to the next line after multi-line arrow parameters there when formatting again (#897)
- fix: let pattern import groups claim imports before categories (#895)
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.97.1" ] }