How to use cspell¶
Installation¶
Install cspell with the following commands.
| In a terminal, execute the following command(s). | |
|---|---|
Configuration¶
The configuration for Husky is located in the .cspell.yaml file. The custom dictionaries are in the .cspell directory.
Run cspell¶
You can run cspell from anywhere in the project with the following command.
| In a terminal, execute the following command(s). | |
|---|---|
Common tasks¶
Add a word to dictionary¶
You can add any words to the available dictionaries in the .cspell directory.
Please be aware to add the word in the right dictionary (in alphabetical order) to keep things tidy. If you new word doesn't fit in one of the existing dictionary, add a new dictionary.
Add a new dictionary¶
Create a new dictionary file in the .cspell directory.
Add the definition of the dictionary in the .cspell.yaml file under the key dictionaryDefinitions.
| .cspell.yaml | |
|---|---|
Add the dictionary in the .cspell.yaml file under the key dictionaries.
Related explanations¶
These explanations are related to the current item (in alphabetical order).
None at the moment.
Resources and alternatives¶
These resources and alternatives are related to the current item (in alphabetical order).
None at the moment.