cspell-config-spellbookx
v0.3.3
Published
Shared cspell (spell checker) configuration for SpellbookX
Downloads
682
Maintainers
Readme
cspell-config-spellbookx
Shared configuration for CSpell - tuned for polyglot monorepos (Node, Rust, Go, Python, and more).
Clean. Opinionated. No junk, no false positives.
Table of Content
Features
- Pre-tuned dictionaries for:
- English (US/GB)
- Common programming languages (TypeScript, Node, Python, Go, PHP, etc.)
- Framework & tooling terms (npm, softwareTerms, misc)
- Smart
ignorePathsthat skip all build artifacts, lock files, and temp directories:- Node / JS / TS (
dist,node_modules,.next,.turbo, etc.) - Rust (
target/,.cargo/,Cargo.lock) - Go (
go.sum,vendor/, etc.) - Python (
__pycache__,.venv/,.tox/,.ruff_cache/, etc.) - Windows / WSL cruft (
:Zone.Identifier,Thumbs.db,desktop.ini, etc.)
- Node / JS / TS (
- Works seamlessly with modern CSpell (
>=6.0) using native ESM &defineConfig
Installation
npm install -g cspell
npm install -D cspell @cspell/cspell-types cspell-config-spellbookxor
pnpm add -g cspell
pnpm add -D cspell @cspell/cspell-types cspell-config-spellbookxor
yarn global add cspell
yarn add -D cspell @cspell/cspell-types cspell-config-spellbookxor
bun add -g cspell
bun add -D cspell @cspell/cspell-types cspell-config-spellbookxUsage
Create a custom dictionary:
mkdir .cspell
touch .cspell/custom-words.txtThen create or update your cspell.config.cjs at the root of your project:
const { defineConfig } = require('@cspell/cspell-types');
module.exports = defineConfig({
version: '0.2',
import: ['cspell-config-spellbookx'],
words: [],
dictionaryDefinitions: [
{
name: 'custom-words',
path: './.cspell/custom-words.txt',
addWords: true,
},
],
dictionaries: ['custom-words'],
});Then, run:
npx cspell lint '**/*.{ts,js,tsx,jsx,md}'or integrate with Nx, Husky, Lefthook, or your CI.
Development
If you are contributing inside the monorepo:
nx run cspell-config:buildTest the config locally:
npx cspell lint --config path-to/packages/cspell-config/dist/index.js .License
This project is licensed under the MIT License.
Copyright (c) 2025 Davide Di Criscito
For the full details, see the LICENSE file.
