Skip to content

Releases: dprint/dprint-plugin-typescript

0.91.0

27 May 04:26
Compare
Choose a tag to compare

Changes

  • feat: strip BOM on files without any changes otherwise (#638)

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

JS Formatting API

0.90.5

05 May 23:38
Compare
Choose a tag to compare

Changes

  • fix: else was moved to wrong if sometimes when formatting minified code (#633)

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

JS Formatting API

0.90.4

24 Apr 18:51
Compare
Choose a tag to compare

Changes

  • fix: support abstract auto-accessors (#630)

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

JS Formatting API

0.90.3

18 Apr 15:08
Compare
Choose a tag to compare

Changes

  • fix: error for more unterminated nodes (#628)

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

JS Formatting API

0.90.2

16 Apr 22:04
Compare
Choose a tag to compare

Changes

  • fix: deno_ast 0.37 (#627)

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

JS Formatting API

0.90.1

11 Apr 20:39
Compare
Choose a tag to compare

Changes

  • fix: deno_ast 0.36 (#625)

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

JS Formatting API

0.90.0

02 Apr 17:16
Compare
Choose a tag to compare

Changes

  • feat: allow breaking imports/exports when more than one (#617, #619)
  • fix: upgrade deno_ast to 0.35.0 (#618)

forceMultiLineSpecifiers is no longer a boolean and takes never | always | whenMultiple string options.

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

JS Formatting API

0.89.3

23 Feb 20:08
Compare
Choose a tag to compare

Changes

  • perf: upgrade dprint-core 0.66 (#615)

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

JS Formatting API

0.89.2

21 Feb 20:42
Compare
Choose a tag to compare

Changes

  • fix: memory leak in dprint-swc-ext (#613)

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

JS Formatting API

0.89.1

16 Feb 13:42
Compare
Choose a tag to compare

Changes

  • fix: remove accidentally left around eprintln (#612)

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

JS Formatting API