Skip to content

Releases: dprint/dprint-plugin-typescript

0.93.3

26 Nov 23:55
Compare
Choose a tag to compare

Changes

  • feat: ability to format a file at a specific indentation level (#689)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.93.3.wasm"
      ]
    }

JS Formatting API

0.93.2

04 Nov 20:03
Compare
Choose a tag to compare

Changes

  • fix: handle jsx ignore container followed by jsx text (#681)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.93.2.wasm"
      ]
    }

JS Formatting API

0.93.1

28 Oct 20:07
Compare
Choose a tag to compare

Changes

  • fix: deno_ast 0.43 (#679)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.93.1.wasm"
      ]
    }

JS Formatting API

0.93.0

18 Sep 12:31
Compare
Choose a tag to compare

Changes

  • fix: revert back default type only named imports/exports sorting to "none" (#666)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.93.0.wasm"
      ]
    }

JS Formatting API

0.92.0

17 Sep 15:54
Compare
Choose a tag to compare

Changes

  • feat: ability to sort type only named imports and exports first or last (#664)
  • fix: add type only named import/exports sorting to deno config (#665)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.92.0.wasm"
      ]
    }

JS Formatting API

0.91.8

05 Sep 16:47
Compare
Choose a tag to compare

Changes

  • feat: allow overwriting used file extension (#660)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.91.8.wasm"
      ]
    }

JS Formatting API

0.91.7

30 Aug 15:55
Compare
Choose a tag to compare

Changes

  • fix: deno_ast 0.42 (#659)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.91.7.wasm"
      ]
    }

JS Formatting API

0.91.6

01 Aug 15:18
Compare
Choose a tag to compare

Changes

  • fix: support using decl in for of stmt (#655)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.91.6.wasm"
      ]
    }

JS Formatting API

0.91.5

31 Jul 19:15
Compare
Choose a tag to compare

Changes

  • fix: prevent prefix semicolon insertion for increment and decrement (#648)
  • perf: deno_ast 0.41 (#653)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.91.5.wasm"
      ]
    }

JS Formatting API

0.91.4

19 Jul 15:17
Compare
Choose a tag to compare

Changes

  • fix: trailing comments sometimes being inserted before the comma in parameter lists (#651)

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 config add typescript).
  2. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "excludes": [
        "**/node_modules"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.91.4.wasm"
      ]
    }

JS Formatting API