Skip to content

Releases: dprint/dprint-plugin-typescript

0.38.3

18 Jan 19:58
fdabfd0
Compare
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.38.3.wasm"
      ]
    }

0.38.2

18 Jan 17:03
Compare
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.38.2.wasm"
      ]
    }

0.38.1

05 Jan 16:32
04498b3
Compare
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.38.1.wasm"
      ]
    }

0.38.0

05 Jan 13:37
523a505
Compare
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.38.0.wasm"
      ]
    }

0.37.0

27 Dec 22:31
Compare
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.37.0.wasm"
      ]
    }

0.36.0

21 Dec 21:12
2fd5b59
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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"
      ]
    }