github dprint/dprint-plugin-typescript 0.104.1

35 minutes ago

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

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.104.1"
      ]
    }

JS Formatting API

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

NewReleases is sending notifications on new releases.