github dprint/dprint-plugin-typescript 0.101.0

55 minutes ago

Changes

  • feat: add arguments.linePerArgument and parameters.linePerParameter options (#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

Install and setup dprint.

Then in your project's dprint configuration file:

  1. Specify the plugin url in the "plugins" array (can be done via dprint add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "npm:@dprint/typescript@0.101.0"
      ]
    }

JS Formatting API

Don't miss a new dprint-plugin-typescript release

NewReleases is sending notifications on new releases.