Changes
- feat: add
arrayExpression.linePerElementoption (#739) - fix: break up an array that's the body of an assigned arrow function instead of moving the arrow function to the next line (#912)
- fix: keep a multi-line value of a hanging list on the line after the previous value (#913)
- fix: keep an array expanded with preferSingleLine when a value on its own line is multi-line (#914)
- fix: leave a tagged template as is when its embedded text fails to format (#916)
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.100.0" ] }