prettier-plugin-json-formats

Prettier plugin adding formatting rules for specific JSON file formats

Usage no npm install needed!

<script type="module">
  import prettierPluginJsonFormats from 'https://cdn.skypack.dev/prettier-plugin-json-formats';
</script>

README

prettier-plugin-json-formats

This prettier plugin contains rules for formatting specific JSON file formats.

To use this package, install it using

yarn add -D prettier-plugin-json-formats

and configure prettier to use the formats you want.

  • Package.json files:

    overrides:
      - files: package.json
        options:
          parser: package-json
    
  • Angular CLI workspace files:

    overrides:
      - files: angular.json
        options:
          parser: angular-cli
    

License

Available under an MIT license.