@cspell/eslint-plugin 8.16.0 → 8.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/schema.cjs +407 -0
- package/dist/generated/schema.d.cts +327 -0
- package/dist/plugin/configs.cjs +17 -7
- package/dist/plugin/cspell-eslint-plugin.cjs +3 -6
- package/package.json +18 -18
- package/assets/options.schema.json +0 -403
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.optionsSchema = void 0;
|
|
4
|
+
exports.optionsSchema = {
|
|
5
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"definitions": {},
|
|
8
|
+
"properties": {
|
|
9
|
+
"autoFix": {
|
|
10
|
+
"default": false,
|
|
11
|
+
"description": "Automatically fix common mistakes. This is only possible if a single preferred suggestion is available.",
|
|
12
|
+
"markdownDescription": "Automatically fix common mistakes.\nThis is only possible if a single preferred suggestion is available.",
|
|
13
|
+
"type": "boolean"
|
|
14
|
+
},
|
|
15
|
+
"checkComments": {
|
|
16
|
+
"default": true,
|
|
17
|
+
"description": "Spell check comments",
|
|
18
|
+
"markdownDescription": "Spell check comments",
|
|
19
|
+
"type": "boolean"
|
|
20
|
+
},
|
|
21
|
+
"checkIdentifiers": {
|
|
22
|
+
"default": true,
|
|
23
|
+
"description": "Spell check identifiers (variables names, function names, class names, etc.)",
|
|
24
|
+
"markdownDescription": "Spell check identifiers (variables names, function names, class names, etc.)",
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
27
|
+
"checkJSXText": {
|
|
28
|
+
"default": true,
|
|
29
|
+
"description": "Spell check JSX Text",
|
|
30
|
+
"markdownDescription": "Spell check JSX Text",
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
},
|
|
33
|
+
"checkScope": {
|
|
34
|
+
"description": "Scope selectors to spell check. This is a list of scope selectors to spell check.\n\nExample: ```js checkScope: [ ['YAMLPair[key] YAMLScalar', true], ['YAMLPair[value] YAMLScalar', true], ['YAMLSequence[entries] YAMLScalar', true], ['JSONProperty[key] JSONLiteral', true], ['JSONProperty[value] JSONLiteral', true], ['JSONArrayExpression JSONLiteral', true], ], ```",
|
|
35
|
+
"items": {
|
|
36
|
+
"description": "A scope selector entry is a tuple that defines a scope selector and whether to spell check it.",
|
|
37
|
+
"items": [
|
|
38
|
+
{
|
|
39
|
+
"description": "The scope selector is a string that defines the context in which a rule applies. Examples:\n- `YAMLPair[value] YAMLScalar` - check the value of a YAML pair.\n- `YAMLPair[key] YAMLScalar` - check the key of a YAML pair.",
|
|
40
|
+
"markdownDescription": "The scope selector is a string that defines the context in which a rule applies.\nExamples:\n- `YAMLPair[value] YAMLScalar` - check the value of a YAML pair.\n- `YAMLPair[key] YAMLScalar` - check the key of a YAML pair.",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"markdownDescription": "A scope selector entry is a tuple that defines a scope selector and whether to spell check it.",
|
|
48
|
+
"maxItems": 2,
|
|
49
|
+
"minItems": 2,
|
|
50
|
+
"type": "array"
|
|
51
|
+
},
|
|
52
|
+
"markdownDescription": "Scope selectors to spell check.\nThis is a list of scope selectors to spell check.\n\nExample:\n```js\ncheckScope: [\n ['YAMLPair[key] YAMLScalar', true],\n ['YAMLPair[value] YAMLScalar', true],\n ['YAMLSequence[entries] YAMLScalar', true],\n ['JSONProperty[key] JSONLiteral', true],\n ['JSONProperty[value] JSONLiteral', true],\n ['JSONArrayExpression JSONLiteral', true],\n],\n```",
|
|
53
|
+
"type": "array"
|
|
54
|
+
},
|
|
55
|
+
"checkStringTemplates": {
|
|
56
|
+
"default": true,
|
|
57
|
+
"description": "Spell check template strings",
|
|
58
|
+
"markdownDescription": "Spell check template strings",
|
|
59
|
+
"type": "boolean"
|
|
60
|
+
},
|
|
61
|
+
"checkStrings": {
|
|
62
|
+
"default": true,
|
|
63
|
+
"description": "Spell check strings",
|
|
64
|
+
"markdownDescription": "Spell check strings",
|
|
65
|
+
"type": "boolean"
|
|
66
|
+
},
|
|
67
|
+
"configFile": {
|
|
68
|
+
"description": "Path to the cspell configuration file. Relative paths, will be relative to the current working directory.",
|
|
69
|
+
"markdownDescription": "Path to the cspell configuration file.\nRelative paths, will be relative to the current working directory.",
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"cspell": {
|
|
73
|
+
"additionalProperties": false,
|
|
74
|
+
"description": "CSpell options to pass to the spell checker.",
|
|
75
|
+
"markdownDescription": "CSpell options to pass to the spell checker.",
|
|
76
|
+
"properties": {
|
|
77
|
+
"allowCompoundWords": {
|
|
78
|
+
"default": false,
|
|
79
|
+
"description": "True to enable compound word checking.",
|
|
80
|
+
"markdownDescription": "True to enable compound word checking.",
|
|
81
|
+
"type": "boolean"
|
|
82
|
+
},
|
|
83
|
+
"dictionaries": {
|
|
84
|
+
"description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/) and [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
|
|
85
|
+
"items": {
|
|
86
|
+
"anyOf": [
|
|
87
|
+
{
|
|
88
|
+
"description": "This a reference to a named dictionary. It is expected to match the name of a dictionary.",
|
|
89
|
+
"markdownDescription": "This a reference to a named dictionary.\nIt is expected to match the name of a dictionary.",
|
|
90
|
+
"pattern": "^(?=[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"description": "This a negative reference to a named dictionary.\n\nIt is used to exclude or include a dictionary by name.\n\nThe reference starts with 1 or more `!`.\n- `!<dictionary_name>` - Used to exclude the dictionary matching `<dictionary_name>`.\n- `!!<dictionary_name>` - Used to re-include a dictionary matching `<dictionary_name>`. Overrides `!<dictionary_name>`.\n- `!!!<dictionary_name>` - Used to exclude a dictionary matching `<dictionary_name>`. Overrides `!!<dictionary_name>`.",
|
|
95
|
+
"markdownDescription": "This a negative reference to a named dictionary.\n\nIt is used to exclude or include a dictionary by name.\n\nThe reference starts with 1 or more `!`.\n- `!<dictionary_name>` - Used to exclude the dictionary matching `<dictionary_name>`.\n- `!!<dictionary_name>` - Used to re-include a dictionary matching `<dictionary_name>`.\n Overrides `!<dictionary_name>`.\n- `!!!<dictionary_name>` - Used to exclude a dictionary matching `<dictionary_name>`.\n Overrides `!!<dictionary_name>`.",
|
|
96
|
+
"pattern": "^(?=!+[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$",
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"description": "Reference to a dictionary by name. One of:\n- {@link DictionaryRef } \n- {@link DictionaryNegRef }",
|
|
101
|
+
"markdownDescription": "Reference to a dictionary by name.\nOne of:\n- {@link DictionaryRef } \n- {@link DictionaryNegRef }"
|
|
102
|
+
},
|
|
103
|
+
"markdownDescription": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/)\nand [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
|
|
104
|
+
"type": "array"
|
|
105
|
+
},
|
|
106
|
+
"dictionaryDefinitions": {
|
|
107
|
+
"items": {
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"properties": {
|
|
110
|
+
"description": {
|
|
111
|
+
"description": "Optional description of the contents / purpose of the dictionary.",
|
|
112
|
+
"markdownDescription": "Optional description of the contents / purpose of the dictionary.",
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"name": {
|
|
116
|
+
"description": "This is the name of a dictionary.\n\nName Format:\n- Must contain at least 1 number or letter.\n- Spaces are allowed.\n- Leading and trailing space will be removed.\n- Names ARE case-sensitive.\n- Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
117
|
+
"markdownDescription": "This is the name of a dictionary.\n\nName Format:\n- Must contain at least 1 number or letter.\n- Spaces are allowed.\n- Leading and trailing space will be removed.\n- Names ARE case-sensitive.\n- Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
118
|
+
"pattern": "^(?=[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$",
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"noSuggest": {
|
|
122
|
+
"description": "Indicate that suggestions should not come from this dictionary. Words in this dictionary are considered correct, but will not be used when making spell correction suggestions.\n\nNote: if a word is suggested by another dictionary, but found in this dictionary, it will be removed from the set of possible suggestions.",
|
|
123
|
+
"markdownDescription": "Indicate that suggestions should not come from this dictionary.\nWords in this dictionary are considered correct, but will not be\nused when making spell correction suggestions.\n\nNote: if a word is suggested by another dictionary, but found in\nthis dictionary, it will be removed from the set of\npossible suggestions.",
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
},
|
|
126
|
+
"path": {
|
|
127
|
+
"description": "Path to the file.",
|
|
128
|
+
"markdownDescription": "Path to the file.",
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"repMap": {
|
|
132
|
+
"description": "Replacement pairs.",
|
|
133
|
+
"items": {
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"maxItems": 2,
|
|
138
|
+
"minItems": 2,
|
|
139
|
+
"type": "array"
|
|
140
|
+
},
|
|
141
|
+
"markdownDescription": "Replacement pairs.",
|
|
142
|
+
"type": "array"
|
|
143
|
+
},
|
|
144
|
+
"type": {
|
|
145
|
+
"default": "S",
|
|
146
|
+
"description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
|
|
147
|
+
"enum": [
|
|
148
|
+
"S",
|
|
149
|
+
"W",
|
|
150
|
+
"C",
|
|
151
|
+
"T"
|
|
152
|
+
],
|
|
153
|
+
"markdownDescription": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"useCompounds": {
|
|
157
|
+
"description": "Use Compounds.",
|
|
158
|
+
"markdownDescription": "Use Compounds.",
|
|
159
|
+
"type": "boolean"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": [
|
|
163
|
+
"name",
|
|
164
|
+
"path"
|
|
165
|
+
],
|
|
166
|
+
"type": "object"
|
|
167
|
+
},
|
|
168
|
+
"type": "array"
|
|
169
|
+
},
|
|
170
|
+
"enabled": {
|
|
171
|
+
"default": true,
|
|
172
|
+
"description": "Is the spell checker enabled.",
|
|
173
|
+
"markdownDescription": "Is the spell checker enabled.",
|
|
174
|
+
"type": "boolean"
|
|
175
|
+
},
|
|
176
|
+
"flagWords": {
|
|
177
|
+
"description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample: ```ts \"flagWords\": [ \"color: colour\", \"incase: in case, encase\", \"canot->cannot\", \"cancelled->canceled\" ] ```",
|
|
178
|
+
"items": {
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"markdownDescription": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample:\n```ts\n\"flagWords\": [\n \"color: colour\",\n \"incase: in case, encase\",\n \"canot->cannot\",\n \"cancelled->canceled\"\n]\n```",
|
|
182
|
+
"type": "array"
|
|
183
|
+
},
|
|
184
|
+
"ignoreRegExpList": {
|
|
185
|
+
"description": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON ```json \"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"] ```\n\nYAML ```yaml ignoreRegExpList: - >- /\\b[A-Z]+\\b/g ```\n\nBy default, several patterns are excluded. See [Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).",
|
|
186
|
+
"items": {
|
|
187
|
+
"anyOf": [
|
|
188
|
+
{
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"description": "This matches the name in a pattern definition.",
|
|
193
|
+
"markdownDescription": "This matches the name in a pattern definition.",
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"enum": [
|
|
198
|
+
"Base64",
|
|
199
|
+
"Base64MultiLine",
|
|
200
|
+
"Base64SingleLine",
|
|
201
|
+
"CStyleComment",
|
|
202
|
+
"CStyleHexValue",
|
|
203
|
+
"CSSHexValue",
|
|
204
|
+
"CommitHash",
|
|
205
|
+
"CommitHashLink",
|
|
206
|
+
"Email",
|
|
207
|
+
"EscapeCharacters",
|
|
208
|
+
"HexValues",
|
|
209
|
+
"href",
|
|
210
|
+
"PhpHereDoc",
|
|
211
|
+
"PublicKey",
|
|
212
|
+
"RsaCert",
|
|
213
|
+
"SshRsa",
|
|
214
|
+
"SHA",
|
|
215
|
+
"HashStrings",
|
|
216
|
+
"SpellCheckerDisable",
|
|
217
|
+
"SpellCheckerDisableBlock",
|
|
218
|
+
"SpellCheckerDisableLine",
|
|
219
|
+
"SpellCheckerDisableNext",
|
|
220
|
+
"SpellCheckerIgnoreInDocSetting",
|
|
221
|
+
"string",
|
|
222
|
+
"UnicodeRef",
|
|
223
|
+
"Urls",
|
|
224
|
+
"UUID",
|
|
225
|
+
"Everything"
|
|
226
|
+
],
|
|
227
|
+
"type": "string"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"description": "A PatternRef is a Pattern or PatternId.",
|
|
231
|
+
"markdownDescription": "A PatternRef is a Pattern or PatternId."
|
|
232
|
+
},
|
|
233
|
+
"markdownDescription": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON\n```json\n\"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"]\n```\n\nYAML\n```yaml\nignoreRegExpList:\n - >-\n /\\b[A-Z]+\\b/g\n```\n\nBy default, several patterns are excluded. See\n[Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).",
|
|
234
|
+
"type": "array"
|
|
235
|
+
},
|
|
236
|
+
"ignoreWords": {
|
|
237
|
+
"description": "List of words to be ignored. An ignored word will not show up as an error, even if it is also in the `flagWords`.",
|
|
238
|
+
"items": {
|
|
239
|
+
"type": "string"
|
|
240
|
+
},
|
|
241
|
+
"markdownDescription": "List of words to be ignored. An ignored word will not show up as an error, even if it is\nalso in the `flagWords`.",
|
|
242
|
+
"type": "array"
|
|
243
|
+
},
|
|
244
|
+
"import": {
|
|
245
|
+
"anyOf": [
|
|
246
|
+
{
|
|
247
|
+
"description": "A File System Path. Relative paths are relative to the configuration file.",
|
|
248
|
+
"markdownDescription": "A File System Path. Relative paths are relative to the configuration file.",
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"items": {
|
|
253
|
+
"description": "A File System Path. Relative paths are relative to the configuration file.",
|
|
254
|
+
"markdownDescription": "A File System Path. Relative paths are relative to the configuration file.",
|
|
255
|
+
"type": "string"
|
|
256
|
+
},
|
|
257
|
+
"type": "array"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"description": "Allows this configuration to inherit configuration for one or more other files.\n\nSee [Importing / Extending Configuration](https://cspell.org/configuration/imports/) for more details.",
|
|
261
|
+
"markdownDescription": "Allows this configuration to inherit configuration for one or more other files.\n\nSee [Importing / Extending Configuration](https://cspell.org/configuration/imports/) for more details."
|
|
262
|
+
},
|
|
263
|
+
"includeRegExpList": {
|
|
264
|
+
"description": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).",
|
|
265
|
+
"items": {
|
|
266
|
+
"anyOf": [
|
|
267
|
+
{
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"description": "This matches the name in a pattern definition.",
|
|
272
|
+
"markdownDescription": "This matches the name in a pattern definition.",
|
|
273
|
+
"type": "string"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"enum": [
|
|
277
|
+
"Base64",
|
|
278
|
+
"Base64MultiLine",
|
|
279
|
+
"Base64SingleLine",
|
|
280
|
+
"CStyleComment",
|
|
281
|
+
"CStyleHexValue",
|
|
282
|
+
"CSSHexValue",
|
|
283
|
+
"CommitHash",
|
|
284
|
+
"CommitHashLink",
|
|
285
|
+
"Email",
|
|
286
|
+
"EscapeCharacters",
|
|
287
|
+
"HexValues",
|
|
288
|
+
"href",
|
|
289
|
+
"PhpHereDoc",
|
|
290
|
+
"PublicKey",
|
|
291
|
+
"RsaCert",
|
|
292
|
+
"SshRsa",
|
|
293
|
+
"SHA",
|
|
294
|
+
"HashStrings",
|
|
295
|
+
"SpellCheckerDisable",
|
|
296
|
+
"SpellCheckerDisableBlock",
|
|
297
|
+
"SpellCheckerDisableLine",
|
|
298
|
+
"SpellCheckerDisableNext",
|
|
299
|
+
"SpellCheckerIgnoreInDocSetting",
|
|
300
|
+
"string",
|
|
301
|
+
"UnicodeRef",
|
|
302
|
+
"Urls",
|
|
303
|
+
"UUID",
|
|
304
|
+
"Everything"
|
|
305
|
+
],
|
|
306
|
+
"type": "string"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"description": "A PatternRef is a Pattern or PatternId.",
|
|
310
|
+
"markdownDescription": "A PatternRef is a Pattern or PatternId."
|
|
311
|
+
},
|
|
312
|
+
"markdownDescription": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).",
|
|
313
|
+
"type": "array"
|
|
314
|
+
},
|
|
315
|
+
"language": {
|
|
316
|
+
"default": "en",
|
|
317
|
+
"description": "Current active spelling language. This specifies the language locale to use in choosing the general dictionary.\n\nFor example:\n\n- \"en-GB\" for British English.\n- \"en,nl\" to enable both English and Dutch.",
|
|
318
|
+
"markdownDescription": "Current active spelling language. This specifies the language locale to use in choosing the\ngeneral dictionary.\n\nFor example:\n\n- \"en-GB\" for British English.\n- \"en,nl\" to enable both English and Dutch.",
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
"words": {
|
|
322
|
+
"description": "List of words to be considered correct.",
|
|
323
|
+
"items": {
|
|
324
|
+
"type": "string"
|
|
325
|
+
},
|
|
326
|
+
"markdownDescription": "List of words to be considered correct.",
|
|
327
|
+
"type": "array"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"type": "object"
|
|
331
|
+
},
|
|
332
|
+
"cspellOptionsRoot": {
|
|
333
|
+
"anyOf": [
|
|
334
|
+
{
|
|
335
|
+
"type": "string"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"format": "uri",
|
|
339
|
+
"type": "string"
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
"description": "Specify the root path of the cspell configuration. It is used to resolve `imports` found in {@link cspell } .\n\nexample: ```js cspellOptionsRoot: import.meta.url // or cspellOptionsRoot: __filename ```",
|
|
343
|
+
"markdownDescription": "Specify the root path of the cspell configuration.\nIt is used to resolve `imports` found in {@link cspell } .\n\nexample:\n```js\ncspellOptionsRoot: import.meta.url\n// or\ncspellOptionsRoot: __filename\n```"
|
|
344
|
+
},
|
|
345
|
+
"customWordListFile": {
|
|
346
|
+
"anyOf": [
|
|
347
|
+
{
|
|
348
|
+
"description": "Specify a path to a custom word list file",
|
|
349
|
+
"markdownDescription": "Specify a path to a custom word list file",
|
|
350
|
+
"type": "string"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"additionalProperties": false,
|
|
354
|
+
"properties": {
|
|
355
|
+
"path": {
|
|
356
|
+
"description": "Path to word list file. File format: 1 word per line",
|
|
357
|
+
"markdownDescription": "Path to word list file.\nFile format: 1 word per line",
|
|
358
|
+
"type": "string"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"required": [
|
|
362
|
+
"path"
|
|
363
|
+
],
|
|
364
|
+
"type": "object"
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"description": "Specify a path to a custom word list file.\n\nexample: ```js customWordListFile: \"./myWords.txt\" ```",
|
|
368
|
+
"markdownDescription": "Specify a path to a custom word list file.\n\nexample:\n```js\ncustomWordListFile: \"./myWords.txt\"\n```"
|
|
369
|
+
},
|
|
370
|
+
"debugMode": {
|
|
371
|
+
"description": "Output debug logs to `.cspell-eslint-plugin.log` default false",
|
|
372
|
+
"markdownDescription": "Output debug logs to `.cspell-eslint-plugin.log`\ndefault false",
|
|
373
|
+
"type": "boolean"
|
|
374
|
+
},
|
|
375
|
+
"generateSuggestions": {
|
|
376
|
+
"default": true,
|
|
377
|
+
"description": "Generate suggestions",
|
|
378
|
+
"markdownDescription": "Generate suggestions",
|
|
379
|
+
"type": "boolean"
|
|
380
|
+
},
|
|
381
|
+
"ignoreImportProperties": {
|
|
382
|
+
"default": true,
|
|
383
|
+
"description": "Ignore the properties of imported variables, structures, and types.\n\nExample: ``` import { example } from 'third-party';\n\nconst msg = example.property; // `property` is not spell checked. ```",
|
|
384
|
+
"markdownDescription": "Ignore the properties of imported variables, structures, and types.\n\nExample:\n```\nimport { example } from 'third-party';\n\nconst msg = example.property; // `property` is not spell checked.\n```",
|
|
385
|
+
"type": "boolean"
|
|
386
|
+
},
|
|
387
|
+
"ignoreImports": {
|
|
388
|
+
"default": true,
|
|
389
|
+
"description": "Ignore import and require names",
|
|
390
|
+
"markdownDescription": "Ignore import and require names",
|
|
391
|
+
"type": "boolean"
|
|
392
|
+
},
|
|
393
|
+
"numSuggestions": {
|
|
394
|
+
"default": 8,
|
|
395
|
+
"description": "Number of spelling suggestions to make.",
|
|
396
|
+
"markdownDescription": "Number of spelling suggestions to make.",
|
|
397
|
+
"type": "number"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"required": [
|
|
401
|
+
"numSuggestions",
|
|
402
|
+
"generateSuggestions",
|
|
403
|
+
"autoFix"
|
|
404
|
+
],
|
|
405
|
+
"type": "object"
|
|
406
|
+
};
|
|
407
|
+
//# sourceMappingURL=schema.cjs.map
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
export declare const optionsSchema: {
|
|
2
|
+
$schema: string;
|
|
3
|
+
additionalProperties: boolean;
|
|
4
|
+
definitions: {};
|
|
5
|
+
properties: {
|
|
6
|
+
autoFix: {
|
|
7
|
+
default: boolean;
|
|
8
|
+
description: string;
|
|
9
|
+
markdownDescription: string;
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
checkComments: {
|
|
13
|
+
default: boolean;
|
|
14
|
+
description: string;
|
|
15
|
+
markdownDescription: string;
|
|
16
|
+
type: string;
|
|
17
|
+
};
|
|
18
|
+
checkIdentifiers: {
|
|
19
|
+
default: boolean;
|
|
20
|
+
description: string;
|
|
21
|
+
markdownDescription: string;
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
checkJSXText: {
|
|
25
|
+
default: boolean;
|
|
26
|
+
description: string;
|
|
27
|
+
markdownDescription: string;
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
checkScope: {
|
|
31
|
+
description: string;
|
|
32
|
+
items: {
|
|
33
|
+
description: string;
|
|
34
|
+
items: ({
|
|
35
|
+
description: string;
|
|
36
|
+
markdownDescription: string;
|
|
37
|
+
type: string;
|
|
38
|
+
} | {
|
|
39
|
+
type: string;
|
|
40
|
+
description?: never;
|
|
41
|
+
markdownDescription?: never;
|
|
42
|
+
})[];
|
|
43
|
+
markdownDescription: string;
|
|
44
|
+
maxItems: number;
|
|
45
|
+
minItems: number;
|
|
46
|
+
type: string;
|
|
47
|
+
};
|
|
48
|
+
markdownDescription: string;
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
checkStringTemplates: {
|
|
52
|
+
default: boolean;
|
|
53
|
+
description: string;
|
|
54
|
+
markdownDescription: string;
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
checkStrings: {
|
|
58
|
+
default: boolean;
|
|
59
|
+
description: string;
|
|
60
|
+
markdownDescription: string;
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
configFile: {
|
|
64
|
+
description: string;
|
|
65
|
+
markdownDescription: string;
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
cspell: {
|
|
69
|
+
additionalProperties: boolean;
|
|
70
|
+
description: string;
|
|
71
|
+
markdownDescription: string;
|
|
72
|
+
properties: {
|
|
73
|
+
allowCompoundWords: {
|
|
74
|
+
default: boolean;
|
|
75
|
+
description: string;
|
|
76
|
+
markdownDescription: string;
|
|
77
|
+
type: string;
|
|
78
|
+
};
|
|
79
|
+
dictionaries: {
|
|
80
|
+
description: string;
|
|
81
|
+
items: {
|
|
82
|
+
anyOf: {
|
|
83
|
+
description: string;
|
|
84
|
+
markdownDescription: string;
|
|
85
|
+
pattern: string;
|
|
86
|
+
type: string;
|
|
87
|
+
}[];
|
|
88
|
+
description: string;
|
|
89
|
+
markdownDescription: string;
|
|
90
|
+
};
|
|
91
|
+
markdownDescription: string;
|
|
92
|
+
type: string;
|
|
93
|
+
};
|
|
94
|
+
dictionaryDefinitions: {
|
|
95
|
+
items: {
|
|
96
|
+
additionalProperties: boolean;
|
|
97
|
+
properties: {
|
|
98
|
+
description: {
|
|
99
|
+
description: string;
|
|
100
|
+
markdownDescription: string;
|
|
101
|
+
type: string;
|
|
102
|
+
};
|
|
103
|
+
name: {
|
|
104
|
+
description: string;
|
|
105
|
+
markdownDescription: string;
|
|
106
|
+
pattern: string;
|
|
107
|
+
type: string;
|
|
108
|
+
};
|
|
109
|
+
noSuggest: {
|
|
110
|
+
description: string;
|
|
111
|
+
markdownDescription: string;
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
path: {
|
|
115
|
+
description: string;
|
|
116
|
+
markdownDescription: string;
|
|
117
|
+
type: string;
|
|
118
|
+
};
|
|
119
|
+
repMap: {
|
|
120
|
+
description: string;
|
|
121
|
+
items: {
|
|
122
|
+
items: {
|
|
123
|
+
type: string;
|
|
124
|
+
};
|
|
125
|
+
maxItems: number;
|
|
126
|
+
minItems: number;
|
|
127
|
+
type: string;
|
|
128
|
+
};
|
|
129
|
+
markdownDescription: string;
|
|
130
|
+
type: string;
|
|
131
|
+
};
|
|
132
|
+
type: {
|
|
133
|
+
default: string;
|
|
134
|
+
description: string;
|
|
135
|
+
enum: string[];
|
|
136
|
+
markdownDescription: string;
|
|
137
|
+
type: string;
|
|
138
|
+
};
|
|
139
|
+
useCompounds: {
|
|
140
|
+
description: string;
|
|
141
|
+
markdownDescription: string;
|
|
142
|
+
type: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
required: string[];
|
|
146
|
+
type: string;
|
|
147
|
+
};
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
enabled: {
|
|
151
|
+
default: boolean;
|
|
152
|
+
description: string;
|
|
153
|
+
markdownDescription: string;
|
|
154
|
+
type: string;
|
|
155
|
+
};
|
|
156
|
+
flagWords: {
|
|
157
|
+
description: string;
|
|
158
|
+
items: {
|
|
159
|
+
type: string;
|
|
160
|
+
};
|
|
161
|
+
markdownDescription: string;
|
|
162
|
+
type: string;
|
|
163
|
+
};
|
|
164
|
+
ignoreRegExpList: {
|
|
165
|
+
description: string;
|
|
166
|
+
items: {
|
|
167
|
+
anyOf: ({
|
|
168
|
+
type: string;
|
|
169
|
+
description?: never;
|
|
170
|
+
markdownDescription?: never;
|
|
171
|
+
enum?: never;
|
|
172
|
+
} | {
|
|
173
|
+
description: string;
|
|
174
|
+
markdownDescription: string;
|
|
175
|
+
type: string;
|
|
176
|
+
enum?: never;
|
|
177
|
+
} | {
|
|
178
|
+
enum: string[];
|
|
179
|
+
type: string;
|
|
180
|
+
description?: never;
|
|
181
|
+
markdownDescription?: never;
|
|
182
|
+
})[];
|
|
183
|
+
description: string;
|
|
184
|
+
markdownDescription: string;
|
|
185
|
+
};
|
|
186
|
+
markdownDescription: string;
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
ignoreWords: {
|
|
190
|
+
description: string;
|
|
191
|
+
items: {
|
|
192
|
+
type: string;
|
|
193
|
+
};
|
|
194
|
+
markdownDescription: string;
|
|
195
|
+
type: string;
|
|
196
|
+
};
|
|
197
|
+
import: {
|
|
198
|
+
anyOf: ({
|
|
199
|
+
description: string;
|
|
200
|
+
markdownDescription: string;
|
|
201
|
+
type: string;
|
|
202
|
+
items?: never;
|
|
203
|
+
} | {
|
|
204
|
+
items: {
|
|
205
|
+
description: string;
|
|
206
|
+
markdownDescription: string;
|
|
207
|
+
type: string;
|
|
208
|
+
};
|
|
209
|
+
type: string;
|
|
210
|
+
description?: never;
|
|
211
|
+
markdownDescription?: never;
|
|
212
|
+
})[];
|
|
213
|
+
description: string;
|
|
214
|
+
markdownDescription: string;
|
|
215
|
+
};
|
|
216
|
+
includeRegExpList: {
|
|
217
|
+
description: string;
|
|
218
|
+
items: {
|
|
219
|
+
anyOf: ({
|
|
220
|
+
type: string;
|
|
221
|
+
description?: never;
|
|
222
|
+
markdownDescription?: never;
|
|
223
|
+
enum?: never;
|
|
224
|
+
} | {
|
|
225
|
+
description: string;
|
|
226
|
+
markdownDescription: string;
|
|
227
|
+
type: string;
|
|
228
|
+
enum?: never;
|
|
229
|
+
} | {
|
|
230
|
+
enum: string[];
|
|
231
|
+
type: string;
|
|
232
|
+
description?: never;
|
|
233
|
+
markdownDescription?: never;
|
|
234
|
+
})[];
|
|
235
|
+
description: string;
|
|
236
|
+
markdownDescription: string;
|
|
237
|
+
};
|
|
238
|
+
markdownDescription: string;
|
|
239
|
+
type: string;
|
|
240
|
+
};
|
|
241
|
+
language: {
|
|
242
|
+
default: string;
|
|
243
|
+
description: string;
|
|
244
|
+
markdownDescription: string;
|
|
245
|
+
type: string;
|
|
246
|
+
};
|
|
247
|
+
words: {
|
|
248
|
+
description: string;
|
|
249
|
+
items: {
|
|
250
|
+
type: string;
|
|
251
|
+
};
|
|
252
|
+
markdownDescription: string;
|
|
253
|
+
type: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
type: string;
|
|
257
|
+
};
|
|
258
|
+
cspellOptionsRoot: {
|
|
259
|
+
anyOf: ({
|
|
260
|
+
type: string;
|
|
261
|
+
format?: never;
|
|
262
|
+
} | {
|
|
263
|
+
format: string;
|
|
264
|
+
type: string;
|
|
265
|
+
})[];
|
|
266
|
+
description: string;
|
|
267
|
+
markdownDescription: string;
|
|
268
|
+
};
|
|
269
|
+
customWordListFile: {
|
|
270
|
+
anyOf: ({
|
|
271
|
+
description: string;
|
|
272
|
+
markdownDescription: string;
|
|
273
|
+
type: string;
|
|
274
|
+
additionalProperties?: never;
|
|
275
|
+
properties?: never;
|
|
276
|
+
required?: never;
|
|
277
|
+
} | {
|
|
278
|
+
additionalProperties: boolean;
|
|
279
|
+
properties: {
|
|
280
|
+
path: {
|
|
281
|
+
description: string;
|
|
282
|
+
markdownDescription: string;
|
|
283
|
+
type: string;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
required: string[];
|
|
287
|
+
type: string;
|
|
288
|
+
description?: never;
|
|
289
|
+
markdownDescription?: never;
|
|
290
|
+
})[];
|
|
291
|
+
description: string;
|
|
292
|
+
markdownDescription: string;
|
|
293
|
+
};
|
|
294
|
+
debugMode: {
|
|
295
|
+
description: string;
|
|
296
|
+
markdownDescription: string;
|
|
297
|
+
type: string;
|
|
298
|
+
};
|
|
299
|
+
generateSuggestions: {
|
|
300
|
+
default: boolean;
|
|
301
|
+
description: string;
|
|
302
|
+
markdownDescription: string;
|
|
303
|
+
type: string;
|
|
304
|
+
};
|
|
305
|
+
ignoreImportProperties: {
|
|
306
|
+
default: boolean;
|
|
307
|
+
description: string;
|
|
308
|
+
markdownDescription: string;
|
|
309
|
+
type: string;
|
|
310
|
+
};
|
|
311
|
+
ignoreImports: {
|
|
312
|
+
default: boolean;
|
|
313
|
+
description: string;
|
|
314
|
+
markdownDescription: string;
|
|
315
|
+
type: string;
|
|
316
|
+
};
|
|
317
|
+
numSuggestions: {
|
|
318
|
+
default: number;
|
|
319
|
+
description: string;
|
|
320
|
+
markdownDescription: string;
|
|
321
|
+
type: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
required: string[];
|
|
325
|
+
type: string;
|
|
326
|
+
};
|
|
327
|
+
//# sourceMappingURL=schema.d.cts.map
|
package/dist/plugin/configs.cjs
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.debug = exports.recommended = void 0;
|
|
27
37
|
const cspell_eslint_plugin_cjs_1 = require("./cspell-eslint-plugin.cjs");
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// cspell:ignore TSESTree
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.plugin = exports.configs = exports.meta = exports.rules = void 0;
|
|
4
|
-
// cspell:ignore TSESTree
|
|
5
|
-
const node_fs_1 = require("node:fs");
|
|
6
|
-
const node_path_1 = require("node:path");
|
|
7
5
|
const synckit_1 = require("synckit");
|
|
8
6
|
const logger_cjs_1 = require("../common/logger.cjs");
|
|
7
|
+
const schema_cjs_1 = require("../generated/schema.cjs");
|
|
9
8
|
const defaultCheckOptions_cjs_1 = require("./defaultCheckOptions.cjs");
|
|
10
|
-
const optionsSchema = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, '../../assets/options.schema.json'), 'utf8'));
|
|
11
|
-
const schema = optionsSchema;
|
|
12
9
|
const spellCheck = (0, synckit_1.createSyncFn)(require.resolve('../worker/worker.mjs'));
|
|
13
10
|
const messages = {
|
|
14
11
|
wordUnknown: 'Unknown word: "{{word}}"',
|
|
@@ -24,7 +21,7 @@ const ruleMeta = {
|
|
|
24
21
|
messages,
|
|
25
22
|
hasSuggestions: true,
|
|
26
23
|
fixable: 'code',
|
|
27
|
-
schema: [
|
|
24
|
+
schema: [schema_cjs_1.optionsSchema],
|
|
28
25
|
};
|
|
29
26
|
let isDebugMode = false;
|
|
30
27
|
function nullFix() {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "8.
|
|
7
|
+
"version": "8.17.0",
|
|
8
8
|
"description": "CSpell ESLint plugin",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"cspell",
|
|
@@ -80,36 +80,36 @@
|
|
|
80
80
|
"node": ">=18"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@eslint/eslintrc": "^3.
|
|
84
|
-
"@eslint/js": "^9.
|
|
83
|
+
"@eslint/eslintrc": "^3.2.0",
|
|
84
|
+
"@eslint/js": "^9.17.0",
|
|
85
85
|
"@types/eslint": "^8.56.12",
|
|
86
86
|
"@types/estree": "^1.0.6",
|
|
87
|
-
"@types/mocha": "^10.0.
|
|
88
|
-
"@typescript-eslint/parser": "^8.
|
|
89
|
-
"@typescript-eslint/types": "^8.
|
|
90
|
-
"eslint": "^9.
|
|
91
|
-
"eslint-plugin-jsonc": "^2.
|
|
87
|
+
"@types/mocha": "^10.0.10",
|
|
88
|
+
"@typescript-eslint/parser": "^8.18.0",
|
|
89
|
+
"@typescript-eslint/types": "^8.18.0",
|
|
90
|
+
"eslint": "^9.17.0",
|
|
91
|
+
"eslint-plugin-jsonc": "^2.18.2",
|
|
92
92
|
"eslint-plugin-mdx": "^3.1.5",
|
|
93
|
-
"eslint-plugin-n": "^17.
|
|
93
|
+
"eslint-plugin-n": "^17.15.0",
|
|
94
94
|
"eslint-plugin-react": "^7.37.2",
|
|
95
95
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
96
|
-
"eslint-plugin-yml": "^1.
|
|
97
|
-
"globals": "^15.
|
|
96
|
+
"eslint-plugin-yml": "^1.16.0",
|
|
97
|
+
"globals": "^15.13.0",
|
|
98
98
|
"jsonc-eslint-parser": "^2.4.0",
|
|
99
|
-
"mocha": "^
|
|
99
|
+
"mocha": "^11.0.1",
|
|
100
100
|
"ts-json-schema-generator": "^2.3.0",
|
|
101
|
-
"typescript": "~5.
|
|
102
|
-
"typescript-eslint": "^8.
|
|
101
|
+
"typescript": "~5.7.2",
|
|
102
|
+
"typescript-eslint": "^8.18.0",
|
|
103
103
|
"yaml-eslint-parser": "^1.2.3"
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
|
-
"@cspell/cspell-types": "8.
|
|
107
|
-
"@cspell/url": "8.
|
|
108
|
-
"cspell-lib": "8.
|
|
106
|
+
"@cspell/cspell-types": "8.17.0",
|
|
107
|
+
"@cspell/url": "8.17.0",
|
|
108
|
+
"cspell-lib": "8.17.0",
|
|
109
109
|
"synckit": "^0.9.2"
|
|
110
110
|
},
|
|
111
111
|
"peerDependencies": {
|
|
112
112
|
"eslint": "^7 || ^8 || ^9"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "cac17fe7b993db5965aa441648b1c22cb5486929"
|
|
115
115
|
}
|
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"additionalProperties": false,
|
|
4
|
-
"definitions": {},
|
|
5
|
-
"properties": {
|
|
6
|
-
"autoFix": {
|
|
7
|
-
"default": false,
|
|
8
|
-
"description": "Automatically fix common mistakes. This is only possible if a single preferred suggestion is available.",
|
|
9
|
-
"markdownDescription": "Automatically fix common mistakes.\nThis is only possible if a single preferred suggestion is available.",
|
|
10
|
-
"type": "boolean"
|
|
11
|
-
},
|
|
12
|
-
"checkComments": {
|
|
13
|
-
"default": true,
|
|
14
|
-
"description": "Spell check comments",
|
|
15
|
-
"markdownDescription": "Spell check comments",
|
|
16
|
-
"type": "boolean"
|
|
17
|
-
},
|
|
18
|
-
"checkIdentifiers": {
|
|
19
|
-
"default": true,
|
|
20
|
-
"description": "Spell check identifiers (variables names, function names, class names, etc.)",
|
|
21
|
-
"markdownDescription": "Spell check identifiers (variables names, function names, class names, etc.)",
|
|
22
|
-
"type": "boolean"
|
|
23
|
-
},
|
|
24
|
-
"checkJSXText": {
|
|
25
|
-
"default": true,
|
|
26
|
-
"description": "Spell check JSX Text",
|
|
27
|
-
"markdownDescription": "Spell check JSX Text",
|
|
28
|
-
"type": "boolean"
|
|
29
|
-
},
|
|
30
|
-
"checkScope": {
|
|
31
|
-
"description": "Scope selectors to spell check. This is a list of scope selectors to spell check.\n\nExample: ```js checkScope: [ ['YAMLPair[key] YAMLScalar', true], ['YAMLPair[value] YAMLScalar', true], ['YAMLSequence[entries] YAMLScalar', true], ['JSONProperty[key] JSONLiteral', true], ['JSONProperty[value] JSONLiteral', true], ['JSONArrayExpression JSONLiteral', true], ], ```",
|
|
32
|
-
"items": {
|
|
33
|
-
"description": "A scope selector entry is a tuple that defines a scope selector and whether to spell check it.",
|
|
34
|
-
"items": [
|
|
35
|
-
{
|
|
36
|
-
"description": "The scope selector is a string that defines the context in which a rule applies. Examples:\n- `YAMLPair[value] YAMLScalar` - check the value of a YAML pair.\n- `YAMLPair[key] YAMLScalar` - check the key of a YAML pair.",
|
|
37
|
-
"markdownDescription": "The scope selector is a string that defines the context in which a rule applies.\nExamples:\n- `YAMLPair[value] YAMLScalar` - check the value of a YAML pair.\n- `YAMLPair[key] YAMLScalar` - check the key of a YAML pair.",
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"type": "boolean"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"markdownDescription": "A scope selector entry is a tuple that defines a scope selector and whether to spell check it.",
|
|
45
|
-
"maxItems": 2,
|
|
46
|
-
"minItems": 2,
|
|
47
|
-
"type": "array"
|
|
48
|
-
},
|
|
49
|
-
"markdownDescription": "Scope selectors to spell check.\nThis is a list of scope selectors to spell check.\n\nExample:\n```js\ncheckScope: [\n ['YAMLPair[key] YAMLScalar', true],\n ['YAMLPair[value] YAMLScalar', true],\n ['YAMLSequence[entries] YAMLScalar', true],\n ['JSONProperty[key] JSONLiteral', true],\n ['JSONProperty[value] JSONLiteral', true],\n ['JSONArrayExpression JSONLiteral', true],\n],\n```",
|
|
50
|
-
"type": "array"
|
|
51
|
-
},
|
|
52
|
-
"checkStringTemplates": {
|
|
53
|
-
"default": true,
|
|
54
|
-
"description": "Spell check template strings",
|
|
55
|
-
"markdownDescription": "Spell check template strings",
|
|
56
|
-
"type": "boolean"
|
|
57
|
-
},
|
|
58
|
-
"checkStrings": {
|
|
59
|
-
"default": true,
|
|
60
|
-
"description": "Spell check strings",
|
|
61
|
-
"markdownDescription": "Spell check strings",
|
|
62
|
-
"type": "boolean"
|
|
63
|
-
},
|
|
64
|
-
"configFile": {
|
|
65
|
-
"description": "Path to the cspell configuration file. Relative paths, will be relative to the current working directory.",
|
|
66
|
-
"markdownDescription": "Path to the cspell configuration file.\nRelative paths, will be relative to the current working directory.",
|
|
67
|
-
"type": "string"
|
|
68
|
-
},
|
|
69
|
-
"cspell": {
|
|
70
|
-
"additionalProperties": false,
|
|
71
|
-
"description": "CSpell options to pass to the spell checker.",
|
|
72
|
-
"markdownDescription": "CSpell options to pass to the spell checker.",
|
|
73
|
-
"properties": {
|
|
74
|
-
"allowCompoundWords": {
|
|
75
|
-
"default": false,
|
|
76
|
-
"description": "True to enable compound word checking.",
|
|
77
|
-
"markdownDescription": "True to enable compound word checking.",
|
|
78
|
-
"type": "boolean"
|
|
79
|
-
},
|
|
80
|
-
"dictionaries": {
|
|
81
|
-
"description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/) and [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
|
|
82
|
-
"items": {
|
|
83
|
-
"anyOf": [
|
|
84
|
-
{
|
|
85
|
-
"description": "This a reference to a named dictionary. It is expected to match the name of a dictionary.",
|
|
86
|
-
"markdownDescription": "This a reference to a named dictionary.\nIt is expected to match the name of a dictionary.",
|
|
87
|
-
"pattern": "^(?=[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$",
|
|
88
|
-
"type": "string"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"description": "This a negative reference to a named dictionary.\n\nIt is used to exclude or include a dictionary by name.\n\nThe reference starts with 1 or more `!`.\n- `!<dictionary_name>` - Used to exclude the dictionary matching `<dictionary_name>`.\n- `!!<dictionary_name>` - Used to re-include a dictionary matching `<dictionary_name>`. Overrides `!<dictionary_name>`.\n- `!!!<dictionary_name>` - Used to exclude a dictionary matching `<dictionary_name>`. Overrides `!!<dictionary_name>`.",
|
|
92
|
-
"markdownDescription": "This a negative reference to a named dictionary.\n\nIt is used to exclude or include a dictionary by name.\n\nThe reference starts with 1 or more `!`.\n- `!<dictionary_name>` - Used to exclude the dictionary matching `<dictionary_name>`.\n- `!!<dictionary_name>` - Used to re-include a dictionary matching `<dictionary_name>`.\n Overrides `!<dictionary_name>`.\n- `!!!<dictionary_name>` - Used to exclude a dictionary matching `<dictionary_name>`.\n Overrides `!!<dictionary_name>`.",
|
|
93
|
-
"pattern": "^(?=!+[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$",
|
|
94
|
-
"type": "string"
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"description": "Reference to a dictionary by name. One of:\n- {@link DictionaryRef } \n- {@link DictionaryNegRef }",
|
|
98
|
-
"markdownDescription": "Reference to a dictionary by name.\nOne of:\n- {@link DictionaryRef } \n- {@link DictionaryNegRef }"
|
|
99
|
-
},
|
|
100
|
-
"markdownDescription": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/)\nand [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
|
|
101
|
-
"type": "array"
|
|
102
|
-
},
|
|
103
|
-
"dictionaryDefinitions": {
|
|
104
|
-
"items": {
|
|
105
|
-
"additionalProperties": false,
|
|
106
|
-
"properties": {
|
|
107
|
-
"description": {
|
|
108
|
-
"description": "Optional description of the contents / purpose of the dictionary.",
|
|
109
|
-
"markdownDescription": "Optional description of the contents / purpose of the dictionary.",
|
|
110
|
-
"type": "string"
|
|
111
|
-
},
|
|
112
|
-
"name": {
|
|
113
|
-
"description": "This is the name of a dictionary.\n\nName Format:\n- Must contain at least 1 number or letter.\n- Spaces are allowed.\n- Leading and trailing space will be removed.\n- Names ARE case-sensitive.\n- Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
114
|
-
"markdownDescription": "This is the name of a dictionary.\n\nName Format:\n- Must contain at least 1 number or letter.\n- Spaces are allowed.\n- Leading and trailing space will be removed.\n- Names ARE case-sensitive.\n- Must not contain `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
115
|
-
"pattern": "^(?=[^!*,;{}[\\]~\\n]+$)(?=(.*\\w)).+$",
|
|
116
|
-
"type": "string"
|
|
117
|
-
},
|
|
118
|
-
"noSuggest": {
|
|
119
|
-
"description": "Indicate that suggestions should not come from this dictionary. Words in this dictionary are considered correct, but will not be used when making spell correction suggestions.\n\nNote: if a word is suggested by another dictionary, but found in this dictionary, it will be removed from the set of possible suggestions.",
|
|
120
|
-
"markdownDescription": "Indicate that suggestions should not come from this dictionary.\nWords in this dictionary are considered correct, but will not be\nused when making spell correction suggestions.\n\nNote: if a word is suggested by another dictionary, but found in\nthis dictionary, it will be removed from the set of\npossible suggestions.",
|
|
121
|
-
"type": "boolean"
|
|
122
|
-
},
|
|
123
|
-
"path": {
|
|
124
|
-
"description": "Path to the file.",
|
|
125
|
-
"markdownDescription": "Path to the file.",
|
|
126
|
-
"type": "string"
|
|
127
|
-
},
|
|
128
|
-
"repMap": {
|
|
129
|
-
"description": "Replacement pairs.",
|
|
130
|
-
"items": {
|
|
131
|
-
"items": {
|
|
132
|
-
"type": "string"
|
|
133
|
-
},
|
|
134
|
-
"maxItems": 2,
|
|
135
|
-
"minItems": 2,
|
|
136
|
-
"type": "array"
|
|
137
|
-
},
|
|
138
|
-
"markdownDescription": "Replacement pairs.",
|
|
139
|
-
"type": "array"
|
|
140
|
-
},
|
|
141
|
-
"type": {
|
|
142
|
-
"default": "S",
|
|
143
|
-
"description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
|
|
144
|
-
"enum": [
|
|
145
|
-
"S",
|
|
146
|
-
"W",
|
|
147
|
-
"C",
|
|
148
|
-
"T"
|
|
149
|
-
],
|
|
150
|
-
"markdownDescription": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
|
|
151
|
-
"type": "string"
|
|
152
|
-
},
|
|
153
|
-
"useCompounds": {
|
|
154
|
-
"description": "Use Compounds.",
|
|
155
|
-
"markdownDescription": "Use Compounds.",
|
|
156
|
-
"type": "boolean"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"required": [
|
|
160
|
-
"name",
|
|
161
|
-
"path"
|
|
162
|
-
],
|
|
163
|
-
"type": "object"
|
|
164
|
-
},
|
|
165
|
-
"type": "array"
|
|
166
|
-
},
|
|
167
|
-
"enabled": {
|
|
168
|
-
"default": true,
|
|
169
|
-
"description": "Is the spell checker enabled.",
|
|
170
|
-
"markdownDescription": "Is the spell checker enabled.",
|
|
171
|
-
"type": "boolean"
|
|
172
|
-
},
|
|
173
|
-
"flagWords": {
|
|
174
|
-
"description": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample: ```ts \"flagWords\": [ \"color: colour\", \"incase: in case, encase\", \"canot->cannot\", \"cancelled->canceled\" ] ```",
|
|
175
|
-
"items": {
|
|
176
|
-
"type": "string"
|
|
177
|
-
},
|
|
178
|
-
"markdownDescription": "List of words to always be considered incorrect. Words found in `flagWords` override `words`.\n\nFormat of `flagWords`\n- single word entry - `word`\n- with suggestions - `word:suggestion` or `word->suggestion, suggestions`\n\nExample:\n```ts\n\"flagWords\": [\n \"color: colour\",\n \"incase: in case, encase\",\n \"canot->cannot\",\n \"cancelled->canceled\"\n]\n```",
|
|
179
|
-
"type": "array"
|
|
180
|
-
},
|
|
181
|
-
"ignoreRegExpList": {
|
|
182
|
-
"description": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON ```json \"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"] ```\n\nYAML ```yaml ignoreRegExpList: - >- /\\b[A-Z]+\\b/g ```\n\nBy default, several patterns are excluded. See [Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).",
|
|
183
|
-
"items": {
|
|
184
|
-
"anyOf": [
|
|
185
|
-
{
|
|
186
|
-
"type": "string"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"description": "This matches the name in a pattern definition.",
|
|
190
|
-
"markdownDescription": "This matches the name in a pattern definition.",
|
|
191
|
-
"type": "string"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
"enum": [
|
|
195
|
-
"Base64",
|
|
196
|
-
"Base64MultiLine",
|
|
197
|
-
"Base64SingleLine",
|
|
198
|
-
"CStyleComment",
|
|
199
|
-
"CStyleHexValue",
|
|
200
|
-
"CSSHexValue",
|
|
201
|
-
"CommitHash",
|
|
202
|
-
"CommitHashLink",
|
|
203
|
-
"Email",
|
|
204
|
-
"EscapeCharacters",
|
|
205
|
-
"HexValues",
|
|
206
|
-
"href",
|
|
207
|
-
"PhpHereDoc",
|
|
208
|
-
"PublicKey",
|
|
209
|
-
"RsaCert",
|
|
210
|
-
"SshRsa",
|
|
211
|
-
"SHA",
|
|
212
|
-
"HashStrings",
|
|
213
|
-
"SpellCheckerDisable",
|
|
214
|
-
"SpellCheckerDisableBlock",
|
|
215
|
-
"SpellCheckerDisableLine",
|
|
216
|
-
"SpellCheckerDisableNext",
|
|
217
|
-
"SpellCheckerIgnoreInDocSetting",
|
|
218
|
-
"string",
|
|
219
|
-
"UnicodeRef",
|
|
220
|
-
"Urls",
|
|
221
|
-
"UUID",
|
|
222
|
-
"Everything"
|
|
223
|
-
],
|
|
224
|
-
"type": "string"
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
"description": "A PatternRef is a Pattern or PatternId.",
|
|
228
|
-
"markdownDescription": "A PatternRef is a Pattern or PatternId."
|
|
229
|
-
},
|
|
230
|
-
"markdownDescription": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: `[\"href\"]` - to exclude html href pattern.\n\nRegular expressions use JavaScript regular expression syntax.\n\nExample: to ignore ALL-CAPS words\n\nJSON\n```json\n\"ignoreRegExpList\": [\"/\\\\b[A-Z]+\\\\b/g\"]\n```\n\nYAML\n```yaml\nignoreRegExpList:\n - >-\n /\\b[A-Z]+\\b/g\n```\n\nBy default, several patterns are excluded. See\n[Configuration](https://cspell.org/configuration/patterns) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).",
|
|
231
|
-
"type": "array"
|
|
232
|
-
},
|
|
233
|
-
"ignoreWords": {
|
|
234
|
-
"description": "List of words to be ignored. An ignored word will not show up as an error, even if it is also in the `flagWords`.",
|
|
235
|
-
"items": {
|
|
236
|
-
"type": "string"
|
|
237
|
-
},
|
|
238
|
-
"markdownDescription": "List of words to be ignored. An ignored word will not show up as an error, even if it is\nalso in the `flagWords`.",
|
|
239
|
-
"type": "array"
|
|
240
|
-
},
|
|
241
|
-
"import": {
|
|
242
|
-
"anyOf": [
|
|
243
|
-
{
|
|
244
|
-
"description": "A File System Path. Relative paths are relative to the configuration file.",
|
|
245
|
-
"markdownDescription": "A File System Path. Relative paths are relative to the configuration file.",
|
|
246
|
-
"type": "string"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"items": {
|
|
250
|
-
"description": "A File System Path. Relative paths are relative to the configuration file.",
|
|
251
|
-
"markdownDescription": "A File System Path. Relative paths are relative to the configuration file.",
|
|
252
|
-
"type": "string"
|
|
253
|
-
},
|
|
254
|
-
"type": "array"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
"description": "Allows this configuration to inherit configuration for one or more other files.\n\nSee [Importing / Extending Configuration](https://cspell.org/configuration/imports/) for more details.",
|
|
258
|
-
"markdownDescription": "Allows this configuration to inherit configuration for one or more other files.\n\nSee [Importing / Extending Configuration](https://cspell.org/configuration/imports/) for more details."
|
|
259
|
-
},
|
|
260
|
-
"includeRegExpList": {
|
|
261
|
-
"description": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).",
|
|
262
|
-
"items": {
|
|
263
|
-
"anyOf": [
|
|
264
|
-
{
|
|
265
|
-
"type": "string"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"description": "This matches the name in a pattern definition.",
|
|
269
|
-
"markdownDescription": "This matches the name in a pattern definition.",
|
|
270
|
-
"type": "string"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"enum": [
|
|
274
|
-
"Base64",
|
|
275
|
-
"Base64MultiLine",
|
|
276
|
-
"Base64SingleLine",
|
|
277
|
-
"CStyleComment",
|
|
278
|
-
"CStyleHexValue",
|
|
279
|
-
"CSSHexValue",
|
|
280
|
-
"CommitHash",
|
|
281
|
-
"CommitHashLink",
|
|
282
|
-
"Email",
|
|
283
|
-
"EscapeCharacters",
|
|
284
|
-
"HexValues",
|
|
285
|
-
"href",
|
|
286
|
-
"PhpHereDoc",
|
|
287
|
-
"PublicKey",
|
|
288
|
-
"RsaCert",
|
|
289
|
-
"SshRsa",
|
|
290
|
-
"SHA",
|
|
291
|
-
"HashStrings",
|
|
292
|
-
"SpellCheckerDisable",
|
|
293
|
-
"SpellCheckerDisableBlock",
|
|
294
|
-
"SpellCheckerDisableLine",
|
|
295
|
-
"SpellCheckerDisableNext",
|
|
296
|
-
"SpellCheckerIgnoreInDocSetting",
|
|
297
|
-
"string",
|
|
298
|
-
"UnicodeRef",
|
|
299
|
-
"Urls",
|
|
300
|
-
"UUID",
|
|
301
|
-
"Everything"
|
|
302
|
-
],
|
|
303
|
-
"type": "string"
|
|
304
|
-
}
|
|
305
|
-
],
|
|
306
|
-
"description": "A PatternRef is a Pattern or PatternId.",
|
|
307
|
-
"markdownDescription": "A PatternRef is a Pattern or PatternId."
|
|
308
|
-
},
|
|
309
|
-
"markdownDescription": "List of regular expression patterns or defined pattern names to match for spell checking.\n\nIf this property is defined, only text matching the included patterns will be checked.\n\nWhile you can create your own patterns, you can also leverage several patterns that are\n[built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).",
|
|
310
|
-
"type": "array"
|
|
311
|
-
},
|
|
312
|
-
"language": {
|
|
313
|
-
"default": "en",
|
|
314
|
-
"description": "Current active spelling language. This specifies the language locale to use in choosing the general dictionary.\n\nFor example:\n\n- \"en-GB\" for British English.\n- \"en,nl\" to enable both English and Dutch.",
|
|
315
|
-
"markdownDescription": "Current active spelling language. This specifies the language locale to use in choosing the\ngeneral dictionary.\n\nFor example:\n\n- \"en-GB\" for British English.\n- \"en,nl\" to enable both English and Dutch.",
|
|
316
|
-
"type": "string"
|
|
317
|
-
},
|
|
318
|
-
"words": {
|
|
319
|
-
"description": "List of words to be considered correct.",
|
|
320
|
-
"items": {
|
|
321
|
-
"type": "string"
|
|
322
|
-
},
|
|
323
|
-
"markdownDescription": "List of words to be considered correct.",
|
|
324
|
-
"type": "array"
|
|
325
|
-
}
|
|
326
|
-
},
|
|
327
|
-
"type": "object"
|
|
328
|
-
},
|
|
329
|
-
"cspellOptionsRoot": {
|
|
330
|
-
"anyOf": [
|
|
331
|
-
{
|
|
332
|
-
"type": "string"
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"format": "uri",
|
|
336
|
-
"type": "string"
|
|
337
|
-
}
|
|
338
|
-
],
|
|
339
|
-
"description": "Specify the root path of the cspell configuration. It is used to resolve `imports` found in {@link cspell } .\n\nexample: ```js cspellOptionsRoot: import.meta.url // or cspellOptionsRoot: __filename ```",
|
|
340
|
-
"markdownDescription": "Specify the root path of the cspell configuration.\nIt is used to resolve `imports` found in {@link cspell } .\n\nexample:\n```js\ncspellOptionsRoot: import.meta.url\n// or\ncspellOptionsRoot: __filename\n```"
|
|
341
|
-
},
|
|
342
|
-
"customWordListFile": {
|
|
343
|
-
"anyOf": [
|
|
344
|
-
{
|
|
345
|
-
"description": "Specify a path to a custom word list file",
|
|
346
|
-
"markdownDescription": "Specify a path to a custom word list file",
|
|
347
|
-
"type": "string"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"additionalProperties": false,
|
|
351
|
-
"properties": {
|
|
352
|
-
"path": {
|
|
353
|
-
"description": "Path to word list file. File format: 1 word per line",
|
|
354
|
-
"markdownDescription": "Path to word list file.\nFile format: 1 word per line",
|
|
355
|
-
"type": "string"
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
"required": [
|
|
359
|
-
"path"
|
|
360
|
-
],
|
|
361
|
-
"type": "object"
|
|
362
|
-
}
|
|
363
|
-
],
|
|
364
|
-
"description": "Specify a path to a custom word list file.\n\nexample: ```js customWordListFile: \"./myWords.txt\" ```",
|
|
365
|
-
"markdownDescription": "Specify a path to a custom word list file.\n\nexample:\n```js\ncustomWordListFile: \"./myWords.txt\"\n```"
|
|
366
|
-
},
|
|
367
|
-
"debugMode": {
|
|
368
|
-
"description": "Output debug logs to `.cspell-eslint-plugin.log` default false",
|
|
369
|
-
"markdownDescription": "Output debug logs to `.cspell-eslint-plugin.log`\ndefault false",
|
|
370
|
-
"type": "boolean"
|
|
371
|
-
},
|
|
372
|
-
"generateSuggestions": {
|
|
373
|
-
"default": true,
|
|
374
|
-
"description": "Generate suggestions",
|
|
375
|
-
"markdownDescription": "Generate suggestions",
|
|
376
|
-
"type": "boolean"
|
|
377
|
-
},
|
|
378
|
-
"ignoreImportProperties": {
|
|
379
|
-
"default": true,
|
|
380
|
-
"description": "Ignore the properties of imported variables, structures, and types.\n\nExample: ``` import { example } from 'third-party';\n\nconst msg = example.property; // `property` is not spell checked. ```",
|
|
381
|
-
"markdownDescription": "Ignore the properties of imported variables, structures, and types.\n\nExample:\n```\nimport { example } from 'third-party';\n\nconst msg = example.property; // `property` is not spell checked.\n```",
|
|
382
|
-
"type": "boolean"
|
|
383
|
-
},
|
|
384
|
-
"ignoreImports": {
|
|
385
|
-
"default": true,
|
|
386
|
-
"description": "Ignore import and require names",
|
|
387
|
-
"markdownDescription": "Ignore import and require names",
|
|
388
|
-
"type": "boolean"
|
|
389
|
-
},
|
|
390
|
-
"numSuggestions": {
|
|
391
|
-
"default": 8,
|
|
392
|
-
"description": "Number of spelling suggestions to make.",
|
|
393
|
-
"markdownDescription": "Number of spelling suggestions to make.",
|
|
394
|
-
"type": "number"
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
"required": [
|
|
398
|
-
"numSuggestions",
|
|
399
|
-
"generateSuggestions",
|
|
400
|
-
"autoFix"
|
|
401
|
-
],
|
|
402
|
-
"type": "object"
|
|
403
|
-
}
|