cspell-config-spellbookx 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
 
2
- > cspell-config-spellbookx@0.7.2 build /home/runner/work/spellbookx/spellbookx/packages/cspell-config-spellbookx
2
+ > cspell-config-spellbookx@0.7.3 build /home/runner/work/spellbookx/spellbookx/packages/cspell-config-spellbookx
3
3
  > rolldown -c && tsc
4
4
 
5
5
  [log] <DIR>/index.js chunk │ size: 2.91 kB
6
6
  [log]
7
- [success] rolldown v1.0.0-rc.1 Finished in 63.96 ms
7
+ [success] rolldown v1.0.0-rc.1 Finished in 36.92 ms
package/README.md CHANGED
@@ -1,121 +1,72 @@
1
1
  # cspell-config-spellbookx
2
2
 
3
- Shared configuration for [CSpell](https://cspell.org) - tuned for polyglot monorepos (Node, Rust, Go, Python, and more).
4
- Clean. Opinionated. No junk, no false positives.
3
+ Shared [CSpell](https://cspell.org/) configuration for the Spellbookx project. This package provides a consistent and robust spell-checking setup for all packages in the monorepo.
5
4
 
6
- ---
5
+ ## Description
7
6
 
8
- ## Table of Content
7
+ This package offers a comprehensive CSpell configuration that includes:
9
8
 
10
- - [Features](#features)
11
- - [Installation](#installation)
12
- - [Usage](#usage)
13
- - [Development](#development)
14
- - [License](#license)
9
+ - A curated list of custom words and technical terms specific to the Spellbookx ecosystem.
10
+ - An extensive list of ignored paths to prevent spell-checking in irrelevant files and directories (e.g., `node_modules`, `dist`, lock files).
11
+ - A rich set of dictionaries for various languages and technologies, including English, Spanish, Italian, French, German, and numerous programming languages.
12
+ - Support for multiple languages: English, Spanish, Italian, French, and German.
15
13
 
16
- ---
14
+ ## Why use this?
17
15
 
18
- ## Features
16
+ By using this shared configuration, we ensure that:
19
17
 
20
- - Pre-tuned dictionaries for:
21
- - English (US/GB)
22
- - Common programming languages (TypeScript, Node, Python, Go, PHP, etc.)
23
- - Framework & tooling terms (npm, softwareTerms, misc)
24
- - Smart `ignorePaths` that skip all build artifacts, lock files, and temp directories:
25
- - Node / JS / TS (`dist`, `node_modules`, `.next`, `.turbo`, etc.)
26
- - Rust (`target/`, `.cargo/`, `Cargo.lock`)
27
- - Go (`go.sum`, `vendor/`, etc.)
28
- - Python (`__pycache__`, `.venv/`, `.tox/`, `.ruff_cache/`, etc.)
29
- - Windows / WSL cruft (`:Zone.Identifier`, `Thumbs.db`, `desktop.ini`, etc.)
30
- - Works seamlessly with modern CSpell (`>=6.0`) using native ESM & `defineConfig`
31
-
32
- ---
18
+ - Spell-checking is consistent across all packages.
19
+ - False positives are minimized by maintaining a central list of accepted words.
20
+ - The configuration is easily maintainable and extendable.
33
21
 
34
22
  ## Installation
35
23
 
36
- ```bash
37
- npm install -g cspell
38
- npm install -D cspell @cspell/cspell-types cspell-config-spellbookx
39
- ```
24
+ Install the package using your favorite package manager:
40
25
 
41
- or
26
+ **npm**
42
27
 
43
28
  ```bash
44
- pnpm add -g cspell
45
- pnpm add -D cspell @cspell/cspell-types cspell-config-spellbookx
29
+ npm install --save-dev cspell-config-spellbookx cspell
46
30
  ```
47
31
 
48
- or
32
+ **pnpm**
49
33
 
50
34
  ```bash
51
- yarn global add cspell
52
- yarn add -D cspell @cspell/cspell-types cspell-config-spellbookx
35
+ pnpm add -D cspell-config-spellbookx cspell
53
36
  ```
54
37
 
55
- or
38
+ **yarn**
56
39
 
57
40
  ```bash
58
- bun add -g cspell
59
- bun add -D cspell @cspell/cspell-types cspell-config-spellbookx
41
+ yarn add -D cspell-config-spellbookx cspell
60
42
  ```
61
43
 
62
- ---
63
-
64
- ## Usage
65
-
66
- Create a custom dictionary:
44
+ **bun**
67
45
 
68
46
  ```bash
69
- mkdir .cspell
70
- touch .cspell/custom-words.txt
71
- ```
72
-
73
- Then create or update your `cspell.config.cjs` at the root of your project:
74
-
75
- ```js
76
- const { defineConfig } = require('@cspell/cspell-types');
77
-
78
- module.exports = defineConfig({
79
- version: '0.2',
80
- import: ['cspell-config-spellbookx'],
81
- words: [],
82
- dictionaryDefinitions: [
83
- {
84
- name: 'custom-words',
85
- path: './.cspell/custom-words.txt',
86
- addWords: true,
87
- },
88
- ],
89
- dictionaries: ['custom-words'],
90
- });
47
+ bun add -d cspell-config-spellbookx cspell
91
48
  ```
92
49
 
93
- Then, run:
94
-
95
- ```bash
96
- npx cspell lint '**/*.{ts,js,tsx,jsx,md}'
97
- ```
98
-
99
- or integrate with Nx, Husky, Lefthook, or your CI.
100
-
101
- ---
50
+ ## Usage
102
51
 
103
- ## Development
52
+ To use this configuration, create a `cspell.config.cjs` file in your project's root and extend this package:
104
53
 
105
- If you are contributing inside the monorepo:
54
+ ```javascript
55
+ const config = require('cspell-config-spellbookx');
106
56
 
107
- ```bash
108
- nx run cspell-config:build
57
+ module.exports = config;
109
58
  ```
110
59
 
111
- Test the config locally:
60
+ You can then add a script to your `package.json` to run the spell checker:
112
61
 
113
- ```bash
114
- npx cspell lint --config path-to/packages/cspell-config/dist/index.js .
62
+ ```json
63
+ {
64
+ "scripts": {
65
+ "spellcheck": "cspell \"**/*.{js,jsx,ts,tsx,md,json}\""
66
+ }
67
+ }
115
68
  ```
116
69
 
117
- ---
118
-
119
70
  ## License
120
71
 
121
72
  This project is licensed under the MIT License.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "cspell-config-spellbookx",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "private": false,
5
- "description": "Shared cspell (spell checker) configuration for Spellbookx",
5
+ "description": "A shareable CSpell configuration for spell-checking in a monorepo.",
6
6
  "keywords": [
7
7
  "cspell",
8
- "spellchecker",
9
- "spellcheck",
10
8
  "cspell-config",
11
- "spellbookx"
9
+ "spellbookx",
10
+ "spellcheck",
11
+ "spellchecker"
12
12
  ],
13
13
  "homepage": "https://github.com/spellbookx/spellbookx#readme",
14
14
  "bugs": {
@@ -40,7 +40,7 @@
40
40
  "@types/node": "^25.0.10",
41
41
  "rolldown": "1.0.0-rc.1",
42
42
  "typescript": "5.9.2",
43
- "@spellbookx/typescript-config": "0.7.2"
43
+ "@spellbookx/typescript-config": "0.7.3"
44
44
  },
45
45
  "publishConfig": {
46
46
  "access": "public"