Spell Checking with cspell
Commands
bash
# Check spelling npm run spell-check # Auto-fix spelling issues npm run spell-check:fix
Configuration
Configuration is in .cspell.json. See that file for custom dictionaries, ignored paths, and file-specific overrides.
Adding New Words
When cspell flags a legitimate word:
- •For general technical terms → Add to root-level
wordsarray in.cspell.json - •For Rust crate names → Add to
dictionaryDefinitions[name="crates"].wordsarray in.cspell.json - •Run
npm run spell-checkto verify
Workflow
- •Run
npm run spell-checkto identify issues - •For legitimate terms, add them to
.cspell.json - •For real errors, run
npm run spell-check:fixor fix manually - •Verify with
npm run spell-check