Skip to content

Releases: dprint/dprint-plugin-typescript

0.95.5

28 May 16:31
Compare
Choose a tag to compare

Changes

  • No changes. Just a deno_ast API upgrade.

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

JS Formatting API

0.95.4

21 May 15:38
Compare
Choose a tag to compare

Changes

  • fix: allow expression to be used as key-value pair or block in embedded css (#712)
  • fix: handle backslashes in embedded template language reasonably (#714)

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

JS Formatting API

0.95.3

13 May 21:49
Compare
Choose a tag to compare

Changes

  • feat: allow external formatter to cause formatting error (#710)

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

JS Formatting API

0.95.2

13 May 18:03
Compare
Choose a tag to compare

Changes

  • fix: upgrade to swc_ecma_parser 12 (#711)

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

JS Formatting API

0.95.1

08 May 16:15
Compare
Choose a tag to compare

Changes

  • fix: external formatter should be able to handle tab characters (#708)

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

JS Formatting API

0.95.0

25 Apr 21:17
Compare
Choose a tag to compare

Changes

  • feat: support formatting of languages embedded in tagged template literals (Rust API Only) (#701)
  • fix: upgrade to swc_parser 11.1.3 (#706)

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

JS Formatting API

0.94.0

27 Feb 19:38
Compare
Choose a tag to compare

Changes

  • bump node version
  • feat: support TsImportCallOptions (#702)

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

JS Formatting API

0.93.4

14 Feb 15:16
Compare
Choose a tag to compare

Changes

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

JS Formatting API

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