@simbo/cspell-dictionaries 0.0.0-stage → 1.0.0
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.
- package/CHANGELOG.md +19 -0
- package/LICENSE.md +20 -0
- package/README.md +54 -2
- package/cspell-ext.json +24 -0
- package/dictionaries/abbreviations.txt +4 -0
- package/dictionaries/names.txt +11 -0
- package/dictionaries/terms.txt +3 -0
- package/package.json +59 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @simbo/cspell-dictionaries
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- c2dee8c: Add package `@simbo/cspell-dictionaries` with shared CSpell
|
|
8
|
+
dictionaries.
|
|
9
|
+
|
|
10
|
+
- A CSpell extension to import, with three dictionaries: `simbo-names` for
|
|
11
|
+
names of people, products, fonts, and packages, `simbo-terms` for ordinary
|
|
12
|
+
English words and widespread technical terms, and `simbo-abbreviations`.
|
|
13
|
+
- Also enables the dictionaries `fonts` and `fullstack` that come with CSpell
|
|
14
|
+
for all files.
|
|
15
|
+
- Contains the words of `@simbo/cspell-config` plus `Sindre`, `Sorhus`, and
|
|
16
|
+
`unscanned`, except those that CSpell already knows in all files: `Fira`,
|
|
17
|
+
`Futura`, `Grotesk`, `Noto`, `Tauri`, `CMYK`, `RGB`, `TBD`, and `WCAG`.
|
|
18
|
+
- Its tests check the order of the dictionaries, that no word is in two of
|
|
19
|
+
them, and that CSpell picks them up.
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright © 2026 Simon Lepel <simbo@simbo.de> (https://simbo.de)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,55 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Simbo's CSpell Dictionaries
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
📦
|
|
4
|
+
[**`@simbo/cspell-dictionaries`**](https://npmjs.com/package/@simbo/cspell-dictionaries)
|
|
5
|
+
|
|
6
|
+
[CSpell](https://cspell.org/) dictionaries with names, ordinary English words,
|
|
7
|
+
widespread technical terms, and abbreviations that CSpell does not know yet.
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
Requires Node.js `^24.15.0 || >=26.0.0`. CSpell 9 and 10 are supported.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Install cspell and `@simbo/cspell-dictionaries` from the npm registry:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm i -D cspell @simbo/cspell-dictionaries
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
Import the dictionaries in your
|
|
24
|
+
[CSpell configuration](https://cspell.org/docs/Configuration), for example a
|
|
25
|
+
`.cspell.yml`:
|
|
26
|
+
|
|
27
|
+
```yml
|
|
28
|
+
import: '@simbo/cspell-dictionaries'
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
This adds and enables three dictionaries:
|
|
32
|
+
|
|
33
|
+
- `simbo-names` (`dictionaries/names.txt`): names of people, products, fonts,
|
|
34
|
+
and packages.
|
|
35
|
+
- `simbo-terms` (`dictionaries/terms.txt`): ordinary English words and
|
|
36
|
+
widespread technical terms.
|
|
37
|
+
- `simbo-abbreviations` (`dictionaries/abbreviations.txt`): abbreviations.
|
|
38
|
+
|
|
39
|
+
It also enables two dictionaries that come with CSpell for all files, since
|
|
40
|
+
CSpell enables them only for some file types:
|
|
41
|
+
|
|
42
|
+
- `fonts`: font names.
|
|
43
|
+
- `fullstack`: terms of web and fullstack development.
|
|
44
|
+
|
|
45
|
+
## Adding Words
|
|
46
|
+
|
|
47
|
+
The dictionaries grow with every such word that a project finds. If CSpell flags
|
|
48
|
+
a word that belongs in a dictionary,
|
|
49
|
+
[open an issue](https://github.com/simbo/packages/issues) instead of rewording
|
|
50
|
+
your text. Only words that make no sense outside one project belong in that
|
|
51
|
+
project's configuration.
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
[MIT © Simon Lepel](https://simbo.mit-license.org/2026/)
|
package/cspell-ext.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
|
|
3
|
+
"version": "0.2",
|
|
4
|
+
"name": "Simbo's CSpell Dictionaries",
|
|
5
|
+
"description": "Names, ordinary English words, widespread technical terms, and abbreviations that CSpell does not know yet.",
|
|
6
|
+
"dictionaryDefinitions": [
|
|
7
|
+
{
|
|
8
|
+
"name": "simbo-names",
|
|
9
|
+
"path": "./dictionaries/names.txt",
|
|
10
|
+
"addWords": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "simbo-terms",
|
|
14
|
+
"path": "./dictionaries/terms.txt",
|
|
15
|
+
"addWords": false
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "simbo-abbreviations",
|
|
19
|
+
"path": "./dictionaries/abbreviations.txt",
|
|
20
|
+
"addWords": false
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"dictionaries": ["simbo-names", "simbo-terms", "simbo-abbreviations", "fonts", "fullstack"]
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simbo/cspell-dictionaries",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"description": "Simbo's CSpell dictionaries of names, terms, and abbreviations.",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cspell",
|
|
7
|
+
"dictionary",
|
|
8
|
+
"dictionaries",
|
|
9
|
+
"names",
|
|
10
|
+
"terms",
|
|
11
|
+
"abbreviations",
|
|
12
|
+
"spelling",
|
|
13
|
+
"spellcheck"
|
|
14
|
+
],
|
|
15
|
+
"author": "Simon Lepel <simbo@simbo.de> (https://simbo.de/)",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"homepage": "https://github.com/simbo/packages/tree/main/packages/cspell-dictionaries",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/simbo/packages.git",
|
|
21
|
+
"directory": "packages/cspell-dictionaries"
|
|
22
|
+
},
|
|
23
|
+
"bugs": "https://github.com/simbo/packages/issues",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": "^24.15.0 || >=26.0.0"
|
|
26
|
+
},
|
|
27
|
+
"type": "module",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": "./cspell-ext.json"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"CHANGELOG.md",
|
|
33
|
+
"LICENSE.md",
|
|
34
|
+
"README.md",
|
|
35
|
+
"cspell-ext.json",
|
|
36
|
+
"dictionaries"
|
|
37
|
+
],
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"cspell": "^9 || ^10"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@simbo/tsconfig": "4.0.0",
|
|
43
|
+
"@types/node": "^24.19.2",
|
|
44
|
+
"@vitest/coverage-v8": "^5.1.1",
|
|
45
|
+
"@vitest/ui": "^5.1.1",
|
|
46
|
+
"cspell": "^10.5.2",
|
|
47
|
+
"typescript": "^6.0.3",
|
|
48
|
+
"vitest": "^5.1.1"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"check": "pnpm run check:types",
|
|
52
|
+
"check:pack": "node ../../scripts/check-pack.js",
|
|
53
|
+
"check:types": "tsc --noEmit",
|
|
54
|
+
"clean": "pnpm run clean:coverage && pnpm run clean:turbo && pnpm run clean:node_modules",
|
|
55
|
+
"clean:node_modules": "rm -rf node_modules",
|
|
56
|
+
"clean:turbo": "rm -rf .turbo",
|
|
57
|
+
"clean:coverage": "rm -rf coverage",
|
|
58
|
+
"test": "vitest run --coverage",
|
|
59
|
+
"test:ui": "pnpm run test:watch --ui",
|
|
60
|
+
"test:watch": "vitest dev --coverage"
|
|
61
|
+
}
|
|
6
62
|
}
|