@cspell/cspell-types 7.3.4 → 7.3.5
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/cspell.schema.json +313 -100
- package/dist/CSpellSettingsDef.d.ts +4 -58
- package/dist/DictionaryInformation.d.ts +0 -15
- package/dist/InlineDictionary.d.ts +0 -7
- package/package.json +2 -2
|
@@ -40,20 +40,12 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
40
40
|
/** Words to add to global dictionary -- should only be in the user config file. */
|
|
41
41
|
userWords?: string[];
|
|
42
42
|
/**
|
|
43
|
-
* @markdownDescription
|
|
44
43
|
* Allows this configuration to inherit configuration for one or more other files.
|
|
45
44
|
*
|
|
46
45
|
* See [Importing / Extending Configuration](https://cspell.org/configuration/imports/) for more details.
|
|
47
|
-
*
|
|
48
|
-
* @description
|
|
49
|
-
* Allows this configuration to inherit configuration for one or more other files.
|
|
50
|
-
*
|
|
51
|
-
* See https://cspell.org/configuration/imports/ for more details.
|
|
52
|
-
*
|
|
53
46
|
*/
|
|
54
47
|
import?: FsPath | FsPath[];
|
|
55
48
|
/**
|
|
56
|
-
* @markdownDescription
|
|
57
49
|
* The root to use for glob patterns found in this configuration.
|
|
58
50
|
* Default: location of the configuration file.
|
|
59
51
|
* For compatibility reasons, config files with version 0.1, the glob root will
|
|
@@ -67,17 +59,9 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
67
59
|
* - `${cwd}` - will be replaced with the current working directory.
|
|
68
60
|
* - `.` - will be the location of the containing configuration file.
|
|
69
61
|
*
|
|
70
|
-
* @description
|
|
71
|
-
* The root to use for glob patterns found in this configuration.
|
|
72
62
|
*/
|
|
73
63
|
globRoot?: FSPathResolvable;
|
|
74
64
|
/**
|
|
75
|
-
* @markdownDescription
|
|
76
|
-
* Glob patterns of files to be checked.
|
|
77
|
-
*
|
|
78
|
-
* Glob patterns are relative to the `globRoot` of the configuration file that defines them.
|
|
79
|
-
*
|
|
80
|
-
* @description
|
|
81
65
|
* Glob patterns of files to be checked.
|
|
82
66
|
*
|
|
83
67
|
* Glob patterns are relative to the `globRoot` of the configuration file that defines them.
|
|
@@ -112,17 +96,6 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
112
96
|
*/
|
|
113
97
|
readonly?: boolean;
|
|
114
98
|
/**
|
|
115
|
-
* @markdownDescription
|
|
116
|
-
* Define which reports to use.
|
|
117
|
-
* `default` - is a special name for the default cli reporter.
|
|
118
|
-
*
|
|
119
|
-
* Examples:
|
|
120
|
-
* - `["default"]` - to use the default reporter
|
|
121
|
-
* - `["@cspell/cspell-json-reporter"]` - use the cspell JSON reporter.
|
|
122
|
-
* - `[["@cspell/cspell-json-reporter", { "outFile": "out.json" }]]`
|
|
123
|
-
* - `[ "default", ["@cspell/cspell-json-reporter", { "outFile": "out.json" }]]` - Use both the default reporter and the cspell-json-reporter.
|
|
124
|
-
*
|
|
125
|
-
* @description
|
|
126
99
|
* Define which reports to use.
|
|
127
100
|
* `default` - is a special name for the default cli reporter.
|
|
128
101
|
*
|
|
@@ -165,7 +138,6 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
165
138
|
*/
|
|
166
139
|
export interface ExtendableSettings extends Settings {
|
|
167
140
|
/**
|
|
168
|
-
* @markdownDescription
|
|
169
141
|
* Overrides are used to apply settings for specific files in your project.
|
|
170
142
|
*
|
|
171
143
|
* For example:
|
|
@@ -184,8 +156,6 @@ export interface ExtendableSettings extends Settings {
|
|
|
184
156
|
* }
|
|
185
157
|
* ]
|
|
186
158
|
* ```
|
|
187
|
-
* @description
|
|
188
|
-
* Overrides are used to apply settings for specific files in your project.
|
|
189
159
|
*/
|
|
190
160
|
overrides?: OverrideSettings[];
|
|
191
161
|
}
|
|
@@ -205,10 +175,6 @@ export interface Settings extends ReportingConfiguration, BaseSetting, PnPSettin
|
|
|
205
175
|
/** languageIds for the files to spell check. */
|
|
206
176
|
enabledLanguageIds?: LanguageIdSingle[];
|
|
207
177
|
/**
|
|
208
|
-
* @title File Types to Check
|
|
209
|
-
* @scope resource
|
|
210
|
-
* @uniqueItems true
|
|
211
|
-
* @markdownDescription
|
|
212
178
|
* Enable / Disable checking file types (languageIds).
|
|
213
179
|
*
|
|
214
180
|
* These are in additional to the file types specified by `cSpell.enabledLanguageIds`.
|
|
@@ -221,16 +187,16 @@ export interface Settings extends ReportingConfiguration, BaseSetting, PnPSettin
|
|
|
221
187
|
* !json // disable checking for json
|
|
222
188
|
* kotlin // enable checking for kotlin
|
|
223
189
|
* ```
|
|
190
|
+
* @title File Types to Check
|
|
191
|
+
* @scope resource
|
|
192
|
+
* @uniqueItems true
|
|
224
193
|
*/
|
|
225
194
|
enableFiletypes?: LanguageIdSingle[];
|
|
226
195
|
/**
|
|
227
|
-
* @markdownDescription
|
|
228
196
|
* Additional settings for individual languages.
|
|
229
197
|
*
|
|
230
198
|
* See [Language Settings](https://cspell.org/configuration/language-settings/) for more details.
|
|
231
199
|
*
|
|
232
|
-
* @description
|
|
233
|
-
* Additional settings for individual languages.
|
|
234
200
|
*/
|
|
235
201
|
languageSettings?: LanguageSetting[];
|
|
236
202
|
/** Forces the spell checker to assume a give language id. Used mainly as an Override. */
|
|
@@ -259,16 +225,12 @@ export interface SuggestionsConfiguration {
|
|
|
259
225
|
*/
|
|
260
226
|
suggestionsTimeout?: number;
|
|
261
227
|
/**
|
|
262
|
-
* @markdownDescription
|
|
263
228
|
* The maximum number of changes allowed on a word to be considered a suggestions.
|
|
264
229
|
*
|
|
265
230
|
* For example, appending an `s` onto `example` -> `examples` is considered 1 change.
|
|
266
231
|
*
|
|
267
232
|
* Range: between 1 and 5.
|
|
268
233
|
*
|
|
269
|
-
* @description
|
|
270
|
-
* The maximum number of changes allowed on a word to be considered a suggestions.
|
|
271
|
-
*
|
|
272
234
|
* @default 3
|
|
273
235
|
*/
|
|
274
236
|
suggestionNumChanges?: number;
|
|
@@ -407,13 +369,9 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
|
|
|
407
369
|
*/
|
|
408
370
|
enabled?: boolean;
|
|
409
371
|
/**
|
|
410
|
-
* @markdownDescription
|
|
411
372
|
* True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.
|
|
412
373
|
*
|
|
413
|
-
* @
|
|
414
|
-
* True to enable compound word checking. See https://cspell.org/docs/case-sensitive/ for more details.
|
|
415
|
-
|
|
416
|
-
* @default false
|
|
374
|
+
* @default false
|
|
417
375
|
*/
|
|
418
376
|
allowCompoundWords?: boolean;
|
|
419
377
|
/**
|
|
@@ -440,7 +398,6 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
|
|
|
440
398
|
*/
|
|
441
399
|
dictionaryDefinitions?: DictionaryDefinition[];
|
|
442
400
|
/**
|
|
443
|
-
* @markdownDescription
|
|
444
401
|
* Optional list of dictionaries to use. Each entry should match the name of the dictionary.
|
|
445
402
|
*
|
|
446
403
|
* To remove a dictionary from the list, add `!` before the name.
|
|
@@ -449,9 +406,6 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
|
|
|
449
406
|
*
|
|
450
407
|
* See the [Dictionaries](https://cspell.org/docs/dictionaries/)
|
|
451
408
|
* and [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.
|
|
452
|
-
*
|
|
453
|
-
* @description
|
|
454
|
-
* Optional list of dictionaries to use. Each entry should match the name of the dictionary.
|
|
455
409
|
*/
|
|
456
410
|
dictionaries?: DictionaryReference[];
|
|
457
411
|
/**
|
|
@@ -465,7 +419,6 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
|
|
|
465
419
|
*/
|
|
466
420
|
noSuggestDictionaries?: DictionaryReference[];
|
|
467
421
|
/**
|
|
468
|
-
* @markdownDescription
|
|
469
422
|
* List of regular expression patterns or pattern names to exclude from spell checking.
|
|
470
423
|
*
|
|
471
424
|
* Example: `["href"]` - to exclude html href pattern.
|
|
@@ -491,24 +444,18 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
|
|
|
491
444
|
*
|
|
492
445
|
* While you can create your own patterns, you can also leverage several patterns that are
|
|
493
446
|
* [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
|
|
494
|
-
* @description
|
|
495
|
-
* List of regular expression patterns or pattern names to exclude from spell checking.
|
|
496
447
|
*/
|
|
497
448
|
ignoreRegExpList?: RegExpPatternList;
|
|
498
449
|
/**
|
|
499
|
-
* @markdownDescription
|
|
500
450
|
* List of regular expression patterns or defined pattern names to match for spell checking.
|
|
501
451
|
*
|
|
502
452
|
* If this property is defined, only text matching the included patterns will be checked.
|
|
503
453
|
*
|
|
504
454
|
* While you can create your own patterns, you can also leverage several patterns that are
|
|
505
455
|
* [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
|
|
506
|
-
* @description
|
|
507
|
-
* List of regular expression patterns or defined pattern names to match for spell checking.
|
|
508
456
|
*/
|
|
509
457
|
includeRegExpList?: RegExpPatternList;
|
|
510
458
|
/**
|
|
511
|
-
* @markdownDescription
|
|
512
459
|
* Defines a list of patterns that can be used with the `ignoreRegExpList` and
|
|
513
460
|
* `includeRegExpList` options.
|
|
514
461
|
*
|
|
@@ -532,7 +479,6 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
|
|
|
532
479
|
* }
|
|
533
480
|
* ]
|
|
534
481
|
* ```
|
|
535
|
-
* @description
|
|
536
482
|
* Defines a list of patterns that can be used with the `ignoreRegExpList` and
|
|
537
483
|
* `includeRegExpList` options.
|
|
538
484
|
*/
|
|
@@ -17,8 +17,6 @@ export interface DictionaryInformation {
|
|
|
17
17
|
*/
|
|
18
18
|
alphabet?: CharacterSet | CharacterSetCosts[];
|
|
19
19
|
/**
|
|
20
|
-
* The accent characters.
|
|
21
|
-
* @markdownDescription
|
|
22
20
|
* The accent characters.
|
|
23
21
|
*
|
|
24
22
|
* Default: `"\u0300-\u0341"`
|
|
@@ -54,7 +52,6 @@ export interface DictionaryInformation {
|
|
|
54
52
|
}
|
|
55
53
|
export interface HunspellInformation {
|
|
56
54
|
/**
|
|
57
|
-
* @markdownDescription
|
|
58
55
|
* Selected Hunspell AFF content.
|
|
59
56
|
* The content must be UTF-8
|
|
60
57
|
*
|
|
@@ -76,18 +73,6 @@ export interface HunspellInformation {
|
|
|
76
73
|
* MAP oôöOÔÖ
|
|
77
74
|
* MAP (IJ)(IJ)
|
|
78
75
|
* ```
|
|
79
|
-
*
|
|
80
|
-
* @description
|
|
81
|
-
* Selected Hunspell AFF content.
|
|
82
|
-
* The content must be UTF-8
|
|
83
|
-
*
|
|
84
|
-
* Sections:
|
|
85
|
-
* - TRY
|
|
86
|
-
* - MAP
|
|
87
|
-
* - REP
|
|
88
|
-
* - KEY
|
|
89
|
-
* - ICONV
|
|
90
|
-
* - OCONV
|
|
91
76
|
*/
|
|
92
77
|
aff: HunspellAffContent;
|
|
93
78
|
/** The costs to apply when using the hunspell settings */
|
|
@@ -4,8 +4,6 @@ export interface InlineDictionary {
|
|
|
4
4
|
*/
|
|
5
5
|
words?: string[];
|
|
6
6
|
/**
|
|
7
|
-
* List of words to always be considered incorrect. Words found in `flagWords` override `words`.
|
|
8
|
-
* @markdownDescription
|
|
9
7
|
* List of words to always be considered incorrect. Words found in `flagWords` override `words`.
|
|
10
8
|
*
|
|
11
9
|
* Format of `flagWords`
|
|
@@ -29,11 +27,6 @@ export interface InlineDictionary {
|
|
|
29
27
|
*/
|
|
30
28
|
ignoreWords?: string[];
|
|
31
29
|
/**
|
|
32
|
-
* A list of suggested replacements for words.
|
|
33
|
-
* Suggested words provide a way to make preferred suggestions on word replacements.
|
|
34
|
-
* To hint at a preferred change, but not to require it.
|
|
35
|
-
*
|
|
36
|
-
* @markdownDescription
|
|
37
30
|
* A list of suggested replacements for words.
|
|
38
31
|
* Suggested words provide a way to make preferred suggestions on word replacements.
|
|
39
32
|
* To hint at a preferred change, but not to require it.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "7.3.
|
|
6
|
+
"version": "7.3.5",
|
|
7
7
|
"description": "Types for cspell and cspell-lib",
|
|
8
8
|
"type": "commonjs",
|
|
9
9
|
"main": "./dist/index.js",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"engines": {
|
|
85
85
|
"node": ">=16"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "23fb2fbae335526185ab53a22e0cac0f3e8f1a25"
|
|
88
88
|
}
|