-
Notifications
You must be signed in to change notification settings - Fork 9
/
cspell.config.js
47 lines (45 loc) · 1.34 KB
/
cspell.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
const { resolve } = require("path");
const DICTIONARIES_BASE_PATH = resolve(__dirname, "cspell");
module.exports = {
// Version of the setting file. Always 0.2
version: "0.2",
// Paths to be ignored
ignorePaths: [
"**/node_modules/**",
".husky/**",
"**/pnpm-lock.yaml",
"**/cspell/*.txt",
"cspell.config.js",
"**/.gitignore",
"**/coverage/**",
"**/dist/**",
"test-e2e/app/build/**",
"test-e2e/*/cypress/integration/**",
"test-e2e/app/build/**",
"test-e2e/cypress-typescript/cypress/support/cypress-localstorage-commands/**",
"reports/**",
],
caseSensitive: false,
// Language - current active spelling language
language: "en",
// Dictionaries to be used
dictionaryDefinitions: [
{
name: "missing",
path: `${DICTIONARIES_BASE_PATH}/missing.txt`,
},
],
dictionaries: ["missing"],
languageSettings: [
{
// In markdown files
languageId: "markdown",
// Exclude code blocks from spell checking
ignoreRegExpList: ["/^\\s*```[\\s\\S]*?^\\s*```/gm"],
},
],
// The minimum length of a word before it is checked.
minWordLength: 4,
// cspell:disable-next-line FlagWords - list of words to be always considered incorrect. This is useful for offensive words and common spelling errors. For example "hte" should be "the"
flagWords: ["hte"],
};