/cspell-config

Personal cspell config

Primary LanguageJavaScriptMIT LicenseMIT

cspell-config

Personal cspell config

Key features

  • Spell checks all files
  • Supports American english and german languages

Installation

npm i --save-dev @schoero/cspell-config

Usage

Create a .cspell.json file with the following content:

{
  "import": [
    "@schoero/cspell-config"
  ],
  "words": [
    // Add your custom words here
  ]
}

VSCode integration

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"
  }
}