Skip to content

Instantly share code, notes, and snippets.

@ali-kamalizade
Last active June 26, 2024 11:40
Show Gist options
  • Save ali-kamalizade/2f0f6e2fae21575fee25b80c43c12602 to your computer and use it in GitHub Desktop.
Save ali-kamalizade/2f0f6e2fae21575fee25b80c43c12602 to your computer and use it in GitHub Desktop.
ESLint configuration (simplified) with CSpell plugin to detect spelling issues
{
"files": ["*.ts"],
"excludedFiles": ["*.spec.ts"],
"parserOptions": {
"project": ["tsconfig.json"],
"createDefaultProgram": true
},
"plugins": ["@cspell"],
"rules": {
"@cspell/spellchecker": [
"error",
{
"checkComments": true,
"checkIdentifiers": true,
"checkJSXText": false,
"checkStrings": true,
"checkStringTemplates": true,
"ignoreImportProperties": true,
"ignoreImports": true,
"numSuggestions": 4
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment