Skip to content

Releases: dprint/dprint-plugin-json

0.19.4

21 Oct 16:17
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

0.18.0

20 Oct 08:16
Compare
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.18.0.wasm"
      ]
    }

JS Formatting API

0.17.4

09 Jun 15:56
Compare
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.17.4.wasm"
      ]
    }

JS Formatting API

0.17.3

05 Jun 15:00
Compare
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. Ensure .json file extensions are matched in an "includes" pattern.
  3. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "includes": [
        "**/*.{json}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/json-0.17.3.wasm"
      ]
    }

JS Formatting API

0.17.2

28 Apr 15:10
Compare
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. Ensure .json file extensions are matched in an "includes" pattern.
  3. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "includes": [
        "**/*.{json}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/json-0.17.2.wasm"
      ]
    }

JS Formatting API

0.17.1

22 Mar 20:16
Compare
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. Ensure .json file extensions are matched in an "includes" pattern.
  3. Add a "json" configuration property if desired.
    {
      // ...etc...
      "json": {
        // json config goes here
      },
      "includes": [
        "**/*.{json}"
      ],
      "plugins": [
        "https://plugins.dprint.dev/json-0.17.1.wasm"
      ]
    }

JS Formatting API