{"library":"prettier-plugin-cspell","title":"Prettier CSpell Plugin","description":"A Prettier plugin that sorts dictionary keys in CSpell configuration files, ensuring consistent ordering of words, flagWords, ignoreWords, etc. Version 0.3.0 requires Prettier ^3 and ships TypeScript types. It is the only dedicated plugin for alphabetizing CSpell dictionary entries, focusing on lint-time ordering rather than runtime linting. The plugin is actively maintained with a small scope (dictionary file sorting only; config sorting planned). Alternative: manual sorting or other generic JSON sorters that don't understand CSpell structure.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-cspell"],"cli":null},"imports":["import prettierPluginCspell from 'prettier-plugin-cspell'","// In .prettierrc: { \"plugins\": [\"prettier-plugin-cspell\"] }","import type { Plugin } from 'prettier'; // types provided"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// 1. Install\nnpm i -D prettier prettier-plugin-cspell\n\n// 2. Configure .prettierrc\n{\n  \"plugins\": [\"prettier-plugin-cspell\"]\n}\n\n// 3. Create a CSpell dictionary file (e.g., .cspell/dictionary.txt or cspell.json words array)\n// The plugin will sort the words alphabetically on format.\n\n// Example cspell.json before:\n{\n  \"words\": [\"zebra\", \"apple\", \"mango\"]\n}\n\n// After running prettier --write:\n{\n  \"words\": [\"apple\", \"mango\", \"zebra\"]\n}","lang":"typescript","description":"Installation and basic usage of prettier-plugin-cspell to alphabetically sort CSpell dictionary words.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}