Skip to content

Releases: dprint/dprint-plugin-typescript

0.36.0

21 Dec 21:12
2fd5b59

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.36.0.wasm"
      ]
    }

0.35.1

09 Dec 12:28
1f3da78

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.35.1.wasm"
      ]
    }

0.35.0

30 Nov 03:36

Choose a tag to compare

Changes

Import and export declarations are now automatically sorted based on the module specifiers.

To turn this off, specify....

"module.sortImportDeclarations": "maintain",
"module.sortExportDeclarations": "maintain"

...in your "typescript" config.

You can group imports together manually to prevent sorting across groups by adding a blank line or comment. Note that this feature WILL change the behaviour of code because it reorders imports and exports. Be aware of what it's doing!

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.35.0.wasm"
      ]
    }

0.33.0

21 Nov 22:54

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.33.0.wasm"
      ]
    }

0.32.9

20 Nov 01:21
85229ec

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.32.9.wasm"
      ]
    }

0.32.8

08 Nov 13:54
c7a6ffc

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.32.8.wasm"
      ]
    }

0.32.7

30 Oct 14:06
fa5fdd4

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.32.7.wasm"
      ]
    }

0.32.6

22 Oct 16:24
93469f7

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.32.6.wasm"
      ]
    }

0.32.5

17 Oct 14:15
7d94176

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.32.5.wasm"
      ]
    }

0.32.4

07 Oct 02:00

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's .dprintrc.json:

  1. Specify the plugin url in the "plugins" array.
  2. Ensure .ts, .tsx, .js, .jsx, .mjs file extensions are matched in an "includes" pattern.
  3. Add a "typescript" configuration property if desired.
    {
      // ...etc...
      "typescript": {
        // TypeScript & JavaScript config goes here
      },
      "includes": [
        "**/*.{ts,tsx,js,jsx,mjs}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/typescript-0.32.4.wasm"
      ]
    }