-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathcspell.yml
More file actions
69 lines (69 loc) · 1.6 KB
/
cspell.yml
File metadata and controls
69 lines (69 loc) · 1.6 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
version: "0.2"
minWordLength: 3
language:
- en-us
dictionaries:
- companies
- softwareTerms
- css
- html
- custom
dictionaryDefinitions:
- name: custom
path: custom-words.txt
addWords: true
ignorePaths:
- "guidelines/acknowledgements/**"
- "how-to/**"
- "patches/**"
- "src/components/**"
- "*.css"
- "*.json"
- "*.svg"
- "*.ts"
- "*.yml"
- "custom-words.txt"
useGitignore: true
overrides:
- filename: "guidelines/**"
flagWords:
- "contains: includes" # Prefer "includes" over "contains" in guidelines
flagWords:
- "e-mail: email"
- "expted: excepted" # Typo that is mysteriously accepted by en_US/GB dictionaries
patterns:
# Define patterns here to be reusable across multiple file types below
- name: encoded-citations
pattern: /\[\[[^\]]+\]\]/g
- name: foreign-language
pattern: /<(\w+)[^>]+lang="(?!en)\w+"[^>]*>.*?<\/\1>/gi
- name: html-tags
pattern: /<[^>]*>/g
languageSettings:
- languageId: astro
ignoreRegExpList:
- encoded-citations
- foreign-language
- html-tags
# pre/code tags
- /<(pre|code)\b[^>]*>[\s\S]*?<\/\1>/g
# style tags
- /<style\b[^>]*>[\s\S]*?<\/style>/g
# template literal expressions
- /\$\{[\s\S]*?\}/g
- languageId: markdown
ignoreRegExpList:
- encoded-citations
- foreign-language
- html-tags
# Block directive
- /^\s*:::.*/gm
# Fenced code block
- |
/
^(\s*```).* # Opening ```
[\s\S]*? # Code block
^``` # Closing ```
/gmx
# Inline code
- /`[^`\n]+`/g