Changes
- feat: add
arguments.linePerArgumentandparameters.linePerParameteroptions (#926) - fix: keep a comment in an empty clause of a for statement on the same line (#922)
- fix: keep a comment on the lines before an argument on its own lines (#924)
- fix: keep the blank lines between the members of a union or intersection type (#925)
- fix: keep the comments between the members of a union or intersection type in place (#928)
- fix: keep the parens of a for of or for in statement beside a multi-line last value (#923)
- fix: move a multi-line jsdoc that starts after a comma to the lines before the value it documents (#929)
- fix: only keep the parens of a for of or for in statement beside a multi-line last value when the header doesn't fit on a line (#930)
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.101.0" ] }