Personal cspell config
- Spell checks all files
- Supports American english and german languages
npm i --save-dev @schoero/cspell-config
Create a .cspell.json
file with the following content:
{
"import": [
"@schoero/cspell-config"
],
"words": [
// Add your custom words here
]
}
For highlighting spelling errors in VSCode, install the Code Spell Checker extension.
To recommend the extension in your repository create a .vscode/extensions.json
with the following content:
{
"recommendations": [
"streetsidesoftware.code-spell-checker"
]
}
If you want to have spellcheck scripts, you can use something like this in the package.json
:
{
"scripts": {
"spellcheck": "node_modules/.bin/cspell lint",
"spellcheck:ci": "npm run spellcheck -- --no-progress"
}
}