-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcspell.json
More file actions
80 lines (80 loc) · 1.94 KB
/
cspell.json
File metadata and controls
80 lines (80 loc) · 1.94 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"version": "0.2",
"language": "en",
"import": ["@cspell/dict-fr-fr/cspell-ext.json"],
"dictionaries": ["project-words"],
"dictionaryDefinitions": [
{
"name": "project-words",
"path": "./cspell-words.txt",
"addWords": true
}
],
"ignorePaths": [
"node_modules",
"_site",
"package.json",
"package-lock.json",
"*.css",
"*.js",
"*.sh",
"*.ps1",
"*.yml",
"*.yaml",
".github"
],
"overrides": [
{
"filename": "src/fr/**",
"language": "fr-fr,en",
"dictionaries": ["project-words"]
},
{
"filename": "src/en/**",
"language": "en,fr-fr",
"dictionaries": ["project-words"]
},
{
"filename": "README.fr.md",
"language": "fr-fr,en",
"dictionaries": ["project-words"]
},
{
"filename": "README.md",
"language": "en,fr-fr",
"dictionaries": ["project-words"]
},
{
"filename": "src/_includes/**",
"language": "en,fr-fr",
"dictionaries": ["project-words"]
},
{
"filename": "src/*.njk",
"language": "en,fr-fr",
"dictionaries": ["project-words"]
}
],
"patterns": [
{ "name": "html-tags", "pattern": "<[^>]+>" },
{ "name": "nunjucks", "pattern": "\\{[%{#].*?[%}#]\\}" },
{ "name": "frontmatter", "pattern": "/^---[\\s\\S]*?^---/gm", "description": "YAML frontmatter block" },
{ "name": "urls", "pattern": "https?://\\S+" },
{ "name": "css-classes", "pattern": "class=\"[^\"]*\"" },
{ "name": "code-blocks", "pattern": "<code>[^<]*</code>" },
{ "name": "pre-blocks", "pattern": "<pre[^>]*>[\\s\\S]*?</pre>" },
{ "name": "html-entities", "pattern": "&\\w+;" },
{ "name": "markdown-link-urls", "pattern": "\\]\\([^)]+\\)" }
],
"ignoreRegExpList": [
"html-tags",
"nunjucks",
"frontmatter",
"urls",
"css-classes",
"code-blocks",
"pre-blocks",
"html-entities",
"markdown-link-urls"
]
}