Skip to content

Releases: dprint/dprint-plugin-json

0.21.3

20 Mar 13:45

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 json).
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.21.3.wasm"
      ]
    }

JS Formatting API

0.21.2

20 Mar 00:43

Choose a tag to compare

Changes

  • perf: upgrade to jsonc-parser 0.31 (#46)

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 json).
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.21.2.wasm"
      ]
    }

JS Formatting API

0.21.1

31 Dec 19:49

Choose a tag to compare

Changes

  • fix: update to jsonc-parser 0.28 (#44)

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 json).
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.21.1.wasm"
      ]
    }

JS Formatting API

0.21.0

19 Oct 21:31

Choose a tag to compare

Changes

  • feat: support hexadecimal numbers, plus sign on numbers, and properties with underscores (#42)

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 json).
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.21.0.wasm"
      ]
    }

JS Formatting API

0.20.0

27 Feb 21:23

Choose a tag to compare

Changes

  • feat: dprint-core 0.47 (#41)

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 json).
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.20.0.wasm"
      ]
    }

JS Formatting API

0.19.4

21 Oct 16:17

Choose a tag to compare

Changes

  • fix: update jsonc-parser to 0.26 (#39)

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 json).
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.19.4.wasm"
      ]
    }

JS Formatting API

0.19.3

27 May 03:23

Choose a tag to compare

Changes

  • fix: strip bom (#37)

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 json).
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.19.3.wasm"
      ]
    }

JS Formatting API

0.19.2

23 Feb 20:05

Choose a tag to compare

Changes

  • perf: upgrade dprint-core to 0.66 (#33)

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 json).
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.19.2.wasm"
      ]
    }

JS Formatting API

0.19.1

24 Nov 17:03

Choose a tag to compare

Install

Install and setup dprint.

Then in your project's dprint configuration file:

  1. Specify the plugin url in the "plugins" array.
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.19.1.wasm"
      ]
    }

JS Formatting API

0.19.0

23 Oct 20:20

Choose a tag to compare

Adds a "jsonTrailingCommaFiles" option for determining which json files should be treated as jsonc when "trailingCommas": "json":

"json": {
  "jsonTrailingCommaFiles": ["tsconfig.json", ".vscode/settings.json"]
}

Install

Install and setup dprint.

Then in your project's dprint configuration file:

  1. Specify the plugin url in the "plugins" array.
  2. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "plugins": [
        "https://plugins.dprint.dev/json-0.19.0.wasm"
      ]
    }

JS Formatting API