{"library":"prettier-plugin-json-sort","title":"prettier-plugin-json-sort","description":"A Prettier plugin that automatically sorts the keys in package.json and tsconfig.json files. At version 0.0.2, it is in early development with a single feature: sorting top-level keys in JSON configuration files. Unlike other sorting plugins (e.g., prettier-plugin-pkg), it focuses specifically on two JSON schemas. It ships TypeScript types and requires Prettier >= 2.0.0 as a peer dependency. Release cadence is irregular, and breaking changes are possible at this early stage.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-json-sort"],"cli":{"name":"prettier","version":null}},"imports":["import prettierPluginJsonSort from 'prettier-plugin-json-sort'","import type { Options } from 'prettier-plugin-json-sort'","import type { Plugin } from 'prettier-plugin-json-sort'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// prettier.config.mjs\nexport default {\n  plugins: ['prettier-plugin-json-sort'],\n  // The plugin sorts package.json and tsconfig.json by default.\n  // There are no additional options yet.\n};\n\n// In your terminal:\n// npx prettier --write package.json tsconfig.json","lang":"typescript","description":"Configures Prettier to use the plugin; then runs Prettier on package.json and tsconfig.json to sort keys.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}