-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy path.cspell.jsonc
More file actions
188 lines (188 loc) · 4.98 KB
/
.cspell.jsonc
File metadata and controls
188 lines (188 loc) · 4.98 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
// The .jsonc extension allows free use of comments and trailing commas.
// The file is named with a dot in front to discourage frequent editing —
// target dictionaries are located in the resources/dictionaries/ directory.
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"language": "en-US",
"dictionaryDefinitions": [
{
// Allowed words
"name": "main-list",
"path": "resources/dictionaries/custom.txt",
"addWords": true,
},
{
// Banned words with no clear or correct replacements
// For a few words with those, see the flagWords property later in this file
"name": "deny-list",
"path": "resources/dictionaries/ban.txt"
},
{
"name": "2lw-deny-list",
"path": "resources/dictionaries/two-letter-words-ban.txt"
},
{
"name": "tvm-instructions",
"path": "resources/dictionaries/tvm-instructions.txt"
}
],
"dictionaries": [
"main-list",
"deny-list",
"2lw-deny-list",
"tvm-instructions",
],
"useGitignore": true,
"files": [
"**/*.{md,mdx}",
"**/*.{js,jsx,mjs}",
],
"minWordLength": 3,
"overrides": [
// Enable case sensitivity for Markdown and MDX files only
{
"filename": "**/*.{md,mdx}",
"caseSensitive": true,
// Known incorrect spellings and correct suggestions
"flagWords": [
"AccountChain->accountchain",
"BaseChain->basechain",
"boc->BoC",
"BOC->BoC",
"Github->GitHub",
"id->ID",
"Id->ID",
"MasterChain->masterchain",
"ShardChain->shardchain",
"StateInit->`StateInit`",
"TLB->TL-B",
"Toncenter->TON Center",
"toncoins->Toncoin",
"Toncoins->Toncoin",
"WorkChain->workchain",
"zkProofs->ZK-proofs",
"zkProof->ZK-proof",
],
},
// Do not check for banned words (denylists or flagWords) in certain files
{
"filename": "contribute/style-guide*.mdx",
"ignoreWords": [
"tos",
"DOI",
"boc",
"BOC",
],
"ignoreRegExpList": [
"\\b[tT]on[a-zA-Z]+\\b", // ton or Ton-prefixed words
"\\b[a-zA-Z]+Chain\\b", // Chain-suffixed words
],
"dictionaries": [
"!deny-list", // turns off the dictionary
"!2lw-deny-list", // turns off the dictionary
]
},
{
"filename": "languages/tolk/features/compiler-optimizations.mdx",
"ignoreWords": [
"fifting",
]
},
{
"filename": "languages/tolk/from-func/tolk-vs-func.mdx",
"ignoreWords": [
"transpiles",
]
},
{
"filename": "**/api/**/*.{json,yml,yaml}",
"ignoreWords": [
"smc",
],
"dictionaries": [
"!deny-list", // turns off the dictionary
"!2lw-deny-list", // turns off the dictionary
]
},
{
"filename": "**/*.{js,jsx,mjs}",
"ignoreWords": [
"Dests",
],
"dictionaries": [
"!deny-list", // turns off the dictionary
"!2lw-deny-list", // turns off the dictionary
]
}
],
"ignorePaths": [
// Some whitepapers
"foundations/whitepapers/tblkch.mdx",
"foundations/whitepapers/ton.mdx",
"foundations/whitepapers/tvm.mdx",
"languages/fift/whitepaper.mdx",
"languages/tolk/features/standard-library.mdx",
// Generated files
"tvm/instructions.mdx",
// Binaries
"**/*.boc",
// Code
"**/*.fc",
"**/*.fif",
"**/*.fift",
"**/*.func",
"**/*.tact",
"**/*.tasm",
"**/*.tlb",
"**/*.tolk",
"**/*.py*",
"**/*.{ts,tsx}",
"**/*.css",
// Miscellaneous
"**/*.git*",
"**/*.svg",
"**/*.txt",
"CODEOWNERS",
"LICENSE-*",
"snippets/tvm-instruction-table.jsx",
"snippets/catchain-visualizer.jsx"
],
"ignoreRegExpList": [
//
// Predefined patterns from:
// https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/lib/Settings/DefaultSettings.ts
//
"SpellCheckerDisable",
"SpellCheckerIgnoreInDocSetting",
"Urls",
"Email",
"RsaCert",
"SshRsa",
"Base64MultiLine",
"Base64SingleLine",
"CommitHash",
"CommitHashLink",
"CStyleHexValue",
"CSSHexValue",
"SHA",
"HashStrings",
"UnicodeRef",
"UUID",
"href",
//
// Custom patterns
//
"\\s*[^\\s]*?=[\"'\\{]", // arbitrary JSX attribute names
"=\\s*\".*?\"", // string values of JSX attributes
"=\\s*'.*?'", // string values of JSX attributes
"(?<!\\\\)\\$(?:\\\\.|[^$\\\\])*?\\$", // inline math
"/(?<!\\\\)\\$\\$[\\s\\S]*?\\$\\$/g", // block math
"(?<!\\\\)``.*?``", // inline code with double backticks
"(?<!\\\\)`.*?`", // inline code
"/^([ \\t]*```).*([\\s\\S]*?)^\\1$/gmx", // block code
"^import[ \\t].+$", // import ...
"/^export[ \\t].+?(?=\\r?\\n\\r?\\n)/gms", // export ...
"(?<!\\\\)\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*\\})*\\})*\\}", // jsx expressions in {}
],
}