Skip to content

0.24.0

Choose a tag to compare

@github-actions github-actions released this 15 Sep 20:09
· 12 commits to main since this release

Changes

  • feat: add eofNewLine config (#66)
  • feat: add on by default packageJson.applyConventions config for sorting a package.json (#64)
  • feat: add spaceSurroundingProperties config (#59)
  • feat: support globs in jsonTrailingCommaFiles (#65)
  • fix: escape raw control characters in strings (#67)
  • fix: ignore comments apply to trailing commas (#69)
  • fix: upgrade to dprint-core 0.69.1 (#61)
  • perf: reduce allocations (#68)

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": [
        "npm:@dprint/json@0.24.0"
      ]
    }

JS Formatting API