Changes
- fix: keep arrow function parens with type parameters when preferNone (#966)
- fix: keep class property semicolons that ASI needs (#965)
- fix: migrate the old spaceBeforeSelfClosingTagSlash keys in dprint config update (#969)
- fix: put the close brace on its own line when adding braces around a body with a trailing line comment (#967)
- fix: remove functionBody.maintainSingleLine and move it to singleLineBody in dprint config update (#972)
- fix: update dprint-core to 0.80.7 (#971)
- fix: update dprint-core to 0.80.8 (#973)
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.104.1" ] }