Skip to content

0.19.0

Compare
Choose a tag to compare
@github-actions github-actions released this 23 Oct 20:20
· 10 commits to main since this release

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