cspell-cli 5.6.7 → 5.6.11
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/.pre-commit-hooks.yaml +6 -2
- package/CHANGELOG.md +6 -0
- package/README.md +47 -4
- package/package.json +2 -2
package/.pre-commit-hooks.yaml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [5.6.11](https://github.com/streetsidesoftware/cspell-cli/compare/v5.6.10...v5.6.11) (2021-12-02)
|
|
6
|
+
|
|
7
|
+
### [5.6.10](https://github.com/streetsidesoftware/cspell-cli/compare/v5.6.9...v5.6.10) (2021-10-06)
|
|
8
|
+
|
|
9
|
+
### [5.6.9](https://github.com/streetsidesoftware/cspell-cli/compare/v5.6.8...v5.6.9) (2021-09-24)
|
|
10
|
+
|
|
5
11
|
### [5.6.7](https://github.com/streetsidesoftware/cspell-cli/compare/v5.6.6...v5.6.7) (2021-09-13)
|
|
6
12
|
|
|
7
13
|
### [5.6.6](https://github.com/streetsidesoftware/cspell-cli/compare/v5.6.5...v5.6.6) (2021-09-13)
|
package/README.md
CHANGED
|
@@ -1,11 +1,54 @@
|
|
|
1
1
|
# cspell-cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Setup [pre-commit](https://pre-commit.com) Hook
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This repository enables using [cspell](https://github.com/streetsidesoftware/cspell) as a [pre-commit](https://pre-commit.com) hook.
|
|
6
6
|
|
|
7
|
+
```yaml
|
|
8
|
+
# .pre-commit-config.yaml
|
|
9
|
+
repos:
|
|
10
|
+
- repo: https://github.com/streetsidesoftware/cspell-cli
|
|
11
|
+
rev: v5.6.10
|
|
12
|
+
hooks:
|
|
13
|
+
- id: cspell
|
|
7
14
|
```
|
|
8
|
-
|
|
15
|
+
|
|
16
|
+
## Setup Custom Dictionary
|
|
17
|
+
|
|
18
|
+
To use a custom dictionary with the `pre-commit` hook, create either a `cspell.config.yaml` or `cspell.json` file in your project's root directory.
|
|
19
|
+
|
|
20
|
+
`cspell.config.yaml`
|
|
21
|
+
|
|
22
|
+
```yaml
|
|
23
|
+
dictionaryDefinitions:
|
|
24
|
+
- name: myWords
|
|
25
|
+
path: ./path/to/cSpell_dict.txt
|
|
26
|
+
addWords: true
|
|
27
|
+
dictionaries:
|
|
28
|
+
- myWords
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
`cSpell.json`
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"dictionaryDefinitions": [
|
|
36
|
+
{
|
|
37
|
+
"name": "myWords",
|
|
38
|
+
"path": "./path/to/cSpell_dict.txt",
|
|
39
|
+
"addWords": true
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"dictionaries": ["myWords"]
|
|
43
|
+
}
|
|
9
44
|
```
|
|
10
45
|
|
|
11
|
-
|
|
46
|
+
If you installed the [Code Spell Checker extension](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) for VS Code, this can be done automatically from the command palette by running "Spell: Create a CSpell configuration file".
|
|
47
|
+
|
|
48
|
+
## Install from GitHub
|
|
49
|
+
|
|
50
|
+
This repo also allows installing the `cspell-cli` directly from GitHub:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
npm install -g git+https://github.com/streetsidesoftware/cspell-cli
|
|
54
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cspell-cli",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.11",
|
|
4
4
|
"description": "CLI for cspell: A Spelling Checker for Code!",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"node": ">=12.13.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"cspell": "^5.
|
|
35
|
+
"cspell": "^5.13.1"
|
|
36
36
|
}
|
|
37
37
|
}
|