@cspell/cspell-types 6.21.0 → 6.23.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/README.md +24 -0
- package/cspell.schema.json +192 -7
- package/dist/cjs/CSpellSettingsDef.d.ts +3 -11
- package/dist/cjs/DictionaryDefinition.d.ts +36 -1
- package/dist/cjs/InlineDictionary.d.ts +30 -0
- package/dist/cjs/Parser/CSpellSettingsDef.d.ts +3 -11
- package/dist/cjs/Parser/DictionaryDefinition.d.ts +36 -1
- package/dist/cjs/Parser/InlineDictionary.d.ts +30 -0
- package/dist/cjs/Parser/index.d.ts +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/esm/CSpellSettingsDef.d.ts +3 -11
- package/dist/esm/DictionaryDefinition.d.ts +36 -1
- package/dist/esm/InlineDictionary.d.ts +30 -0
- package/dist/esm/InlineDictionary.js +2 -0
- package/dist/esm/index.d.ts +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -58,3 +58,27 @@ module.exports = cspell;
|
|
|
58
58
|
## API
|
|
59
59
|
|
|
60
60
|
`CSpellSettings` alias `CSpellUserSettings` is the formal definition of the configuration that controls the spell checker.
|
|
61
|
+
|
|
62
|
+
## CSpell for Enterprise
|
|
63
|
+
|
|
64
|
+
<!--- @@inject: ../../static/tidelift.md --->
|
|
65
|
+
|
|
66
|
+
Available as part of the Tidelift Subscription.
|
|
67
|
+
|
|
68
|
+
The maintainers of cspell and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-cspell?utm_source=npm-cspell&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
|
69
|
+
|
|
70
|
+
<!--- @@inject-end: ../../static/tidelift.md --->
|
|
71
|
+
|
|
72
|
+
<!--- @@inject: ../../static/footer.md --->
|
|
73
|
+
|
|
74
|
+
<br/>
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
<p align="center">
|
|
79
|
+
Brought to you by <a href="https://streetsidesoftware.com" title="Street Side Software">
|
|
80
|
+
<img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software
|
|
81
|
+
</a>
|
|
82
|
+
</p>
|
|
83
|
+
|
|
84
|
+
<!--- @@inject-end: ../../static/footer.md --->
|
package/cspell.schema.json
CHANGED
|
@@ -194,6 +194,9 @@
|
|
|
194
194
|
{
|
|
195
195
|
"$ref": "#/definitions/DictionaryDefinitionAugmented"
|
|
196
196
|
},
|
|
197
|
+
{
|
|
198
|
+
"$ref": "#/definitions/DictionaryDefinitionInline"
|
|
199
|
+
},
|
|
197
200
|
{
|
|
198
201
|
"$ref": "#/definitions/DictionaryDefinitionAlternate"
|
|
199
202
|
}
|
|
@@ -345,6 +348,188 @@
|
|
|
345
348
|
],
|
|
346
349
|
"type": "object"
|
|
347
350
|
},
|
|
351
|
+
"DictionaryDefinitionInline": {
|
|
352
|
+
"anyOf": [
|
|
353
|
+
{
|
|
354
|
+
"$ref": "#/definitions/DictionaryDefinitionInlineWords"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"$ref": "#/definitions/DictionaryDefinitionInlineIgnoreWords"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"$ref": "#/definitions/DictionaryDefinitionInlineFlagWords"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"description": "Inline Dictionary Definitions"
|
|
364
|
+
},
|
|
365
|
+
"DictionaryDefinitionInlineFlagWords": {
|
|
366
|
+
"additionalProperties": false,
|
|
367
|
+
"properties": {
|
|
368
|
+
"description": {
|
|
369
|
+
"description": "Optional description.",
|
|
370
|
+
"type": "string"
|
|
371
|
+
},
|
|
372
|
+
"flagWords": {
|
|
373
|
+
"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\" ] ```",
|
|
374
|
+
"items": {
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
"type": "array"
|
|
378
|
+
},
|
|
379
|
+
"ignoreWords": {
|
|
380
|
+
"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`.",
|
|
381
|
+
"items": {
|
|
382
|
+
"type": "string"
|
|
383
|
+
},
|
|
384
|
+
"type": "array"
|
|
385
|
+
},
|
|
386
|
+
"name": {
|
|
387
|
+
"$ref": "#/definitions/DictionaryId",
|
|
388
|
+
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`."
|
|
389
|
+
},
|
|
390
|
+
"noSuggest": {
|
|
391
|
+
"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.",
|
|
392
|
+
"type": "boolean"
|
|
393
|
+
},
|
|
394
|
+
"repMap": {
|
|
395
|
+
"$ref": "#/definitions/ReplaceMap",
|
|
396
|
+
"description": "Replacement pairs."
|
|
397
|
+
},
|
|
398
|
+
"type": {
|
|
399
|
+
"$ref": "#/definitions/DictionaryFileTypes",
|
|
400
|
+
"default": "S",
|
|
401
|
+
"description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
|
|
402
|
+
},
|
|
403
|
+
"useCompounds": {
|
|
404
|
+
"description": "Use Compounds.",
|
|
405
|
+
"type": "boolean"
|
|
406
|
+
},
|
|
407
|
+
"words": {
|
|
408
|
+
"description": "List of words to be considered correct.",
|
|
409
|
+
"items": {
|
|
410
|
+
"type": "string"
|
|
411
|
+
},
|
|
412
|
+
"type": "array"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"required": [
|
|
416
|
+
"flagWords",
|
|
417
|
+
"name"
|
|
418
|
+
],
|
|
419
|
+
"type": "object"
|
|
420
|
+
},
|
|
421
|
+
"DictionaryDefinitionInlineIgnoreWords": {
|
|
422
|
+
"additionalProperties": false,
|
|
423
|
+
"properties": {
|
|
424
|
+
"description": {
|
|
425
|
+
"description": "Optional description.",
|
|
426
|
+
"type": "string"
|
|
427
|
+
},
|
|
428
|
+
"flagWords": {
|
|
429
|
+
"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\" ] ```",
|
|
430
|
+
"items": {
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
"type": "array"
|
|
434
|
+
},
|
|
435
|
+
"ignoreWords": {
|
|
436
|
+
"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`.",
|
|
437
|
+
"items": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"type": "array"
|
|
441
|
+
},
|
|
442
|
+
"name": {
|
|
443
|
+
"$ref": "#/definitions/DictionaryId",
|
|
444
|
+
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`."
|
|
445
|
+
},
|
|
446
|
+
"noSuggest": {
|
|
447
|
+
"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.",
|
|
448
|
+
"type": "boolean"
|
|
449
|
+
},
|
|
450
|
+
"repMap": {
|
|
451
|
+
"$ref": "#/definitions/ReplaceMap",
|
|
452
|
+
"description": "Replacement pairs."
|
|
453
|
+
},
|
|
454
|
+
"type": {
|
|
455
|
+
"$ref": "#/definitions/DictionaryFileTypes",
|
|
456
|
+
"default": "S",
|
|
457
|
+
"description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
|
|
458
|
+
},
|
|
459
|
+
"useCompounds": {
|
|
460
|
+
"description": "Use Compounds.",
|
|
461
|
+
"type": "boolean"
|
|
462
|
+
},
|
|
463
|
+
"words": {
|
|
464
|
+
"description": "List of words to be considered correct.",
|
|
465
|
+
"items": {
|
|
466
|
+
"type": "string"
|
|
467
|
+
},
|
|
468
|
+
"type": "array"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
"required": [
|
|
472
|
+
"ignoreWords",
|
|
473
|
+
"name"
|
|
474
|
+
],
|
|
475
|
+
"type": "object"
|
|
476
|
+
},
|
|
477
|
+
"DictionaryDefinitionInlineWords": {
|
|
478
|
+
"additionalProperties": false,
|
|
479
|
+
"properties": {
|
|
480
|
+
"description": {
|
|
481
|
+
"description": "Optional description.",
|
|
482
|
+
"type": "string"
|
|
483
|
+
},
|
|
484
|
+
"flagWords": {
|
|
485
|
+
"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\" ] ```",
|
|
486
|
+
"items": {
|
|
487
|
+
"type": "string"
|
|
488
|
+
},
|
|
489
|
+
"type": "array"
|
|
490
|
+
},
|
|
491
|
+
"ignoreWords": {
|
|
492
|
+
"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`.",
|
|
493
|
+
"items": {
|
|
494
|
+
"type": "string"
|
|
495
|
+
},
|
|
496
|
+
"type": "array"
|
|
497
|
+
},
|
|
498
|
+
"name": {
|
|
499
|
+
"$ref": "#/definitions/DictionaryId",
|
|
500
|
+
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`."
|
|
501
|
+
},
|
|
502
|
+
"noSuggest": {
|
|
503
|
+
"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.",
|
|
504
|
+
"type": "boolean"
|
|
505
|
+
},
|
|
506
|
+
"repMap": {
|
|
507
|
+
"$ref": "#/definitions/ReplaceMap",
|
|
508
|
+
"description": "Replacement pairs."
|
|
509
|
+
},
|
|
510
|
+
"type": {
|
|
511
|
+
"$ref": "#/definitions/DictionaryFileTypes",
|
|
512
|
+
"default": "S",
|
|
513
|
+
"description": "Type of file: S - single word per line, W - each line can contain one or more words separated by space, C - each line is treated like code (Camel Case is allowed). Default is S. C is the slowest to load due to the need to split each line based upon code splitting rules."
|
|
514
|
+
},
|
|
515
|
+
"useCompounds": {
|
|
516
|
+
"description": "Use Compounds.",
|
|
517
|
+
"type": "boolean"
|
|
518
|
+
},
|
|
519
|
+
"words": {
|
|
520
|
+
"description": "List of words to be considered correct.",
|
|
521
|
+
"items": {
|
|
522
|
+
"type": "string"
|
|
523
|
+
},
|
|
524
|
+
"type": "array"
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
"required": [
|
|
528
|
+
"name",
|
|
529
|
+
"words"
|
|
530
|
+
],
|
|
531
|
+
"type": "object"
|
|
532
|
+
},
|
|
348
533
|
"DictionaryDefinitionPreferred": {
|
|
349
534
|
"additionalProperties": false,
|
|
350
535
|
"properties": {
|
|
@@ -681,7 +866,7 @@
|
|
|
681
866
|
"type": "boolean"
|
|
682
867
|
},
|
|
683
868
|
"flagWords": {
|
|
684
|
-
"description": "List of words to always be considered incorrect.",
|
|
869
|
+
"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\" ] ```",
|
|
685
870
|
"items": {
|
|
686
871
|
"type": "string"
|
|
687
872
|
},
|
|
@@ -769,7 +954,7 @@
|
|
|
769
954
|
"type": "array"
|
|
770
955
|
},
|
|
771
956
|
"words": {
|
|
772
|
-
"description": "List of words to be
|
|
957
|
+
"description": "List of words to be considered correct.",
|
|
773
958
|
"items": {
|
|
774
959
|
"type": "string"
|
|
775
960
|
},
|
|
@@ -853,7 +1038,7 @@
|
|
|
853
1038
|
"description": "Glob pattern or patterns to match against."
|
|
854
1039
|
},
|
|
855
1040
|
"flagWords": {
|
|
856
|
-
"description": "List of words to always be considered incorrect.",
|
|
1041
|
+
"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\" ] ```",
|
|
857
1042
|
"items": {
|
|
858
1043
|
"type": "string"
|
|
859
1044
|
},
|
|
@@ -963,7 +1148,7 @@
|
|
|
963
1148
|
"type": "boolean"
|
|
964
1149
|
},
|
|
965
1150
|
"words": {
|
|
966
|
-
"description": "List of words to be
|
|
1151
|
+
"description": "List of words to be considered correct.",
|
|
967
1152
|
"items": {
|
|
968
1153
|
"type": "string"
|
|
969
1154
|
},
|
|
@@ -1283,7 +1468,7 @@
|
|
|
1283
1468
|
},
|
|
1284
1469
|
"features": {
|
|
1285
1470
|
"$ref": "#/definitions/Features",
|
|
1286
|
-
"description": "Configure CSpell features
|
|
1471
|
+
"description": "Configure CSpell features."
|
|
1287
1472
|
},
|
|
1288
1473
|
"files": {
|
|
1289
1474
|
"description": "Glob patterns of files to be checked.\n\nGlob patterns are relative to the `globRoot` of the configuration file that defines them.",
|
|
@@ -1293,7 +1478,7 @@
|
|
|
1293
1478
|
"type": "array"
|
|
1294
1479
|
},
|
|
1295
1480
|
"flagWords": {
|
|
1296
|
-
"description": "List of words to always be considered incorrect.",
|
|
1481
|
+
"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\" ] ```",
|
|
1297
1482
|
"items": {
|
|
1298
1483
|
"type": "string"
|
|
1299
1484
|
},
|
|
@@ -1501,7 +1686,7 @@
|
|
|
1501
1686
|
"description": "Configuration format version of the settings file.\n\nThis controls how the settings in the configuration file behave."
|
|
1502
1687
|
},
|
|
1503
1688
|
"words": {
|
|
1504
|
-
"description": "List of words to be
|
|
1689
|
+
"description": "List of words to be considered correct.",
|
|
1505
1690
|
"items": {
|
|
1506
1691
|
"type": "string"
|
|
1507
1692
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReporterConfigurationBase } from './CSpellReporter.js';
|
|
2
2
|
import type { DictionaryDefinition, DictionaryReference } from './DictionaryDefinition.js';
|
|
3
3
|
import type { Features } from './features.js';
|
|
4
|
+
import type { InlineDictionary } from './InlineDictionary.js';
|
|
4
5
|
import type { Parser, ParserName } from './Parser/index.js';
|
|
5
6
|
import type { Serializable } from './types.js';
|
|
6
7
|
/**
|
|
@@ -123,7 +124,7 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
123
124
|
/**
|
|
124
125
|
* Configure CSpell features.
|
|
125
126
|
*
|
|
126
|
-
*
|
|
127
|
+
* @version 5.16.0
|
|
127
128
|
*/
|
|
128
129
|
features?: Features;
|
|
129
130
|
}
|
|
@@ -353,7 +354,7 @@ export interface OverrideFilterFields {
|
|
|
353
354
|
/** Glob pattern or patterns to match against. */
|
|
354
355
|
filename: Glob | Glob[];
|
|
355
356
|
}
|
|
356
|
-
export interface BaseSetting extends ExperimentalBaseSettings {
|
|
357
|
+
export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings {
|
|
357
358
|
/** Optional identifier. */
|
|
358
359
|
id?: string;
|
|
359
360
|
/** Optional name of configuration. */
|
|
@@ -365,15 +366,6 @@ export interface BaseSetting extends ExperimentalBaseSettings {
|
|
|
365
366
|
* @default true
|
|
366
367
|
*/
|
|
367
368
|
enabled?: boolean;
|
|
368
|
-
/** List of words to be always considered correct. */
|
|
369
|
-
words?: string[];
|
|
370
|
-
/** List of words to always be considered incorrect. */
|
|
371
|
-
flagWords?: string[];
|
|
372
|
-
/**
|
|
373
|
-
* List of words to be ignored. An ignored word will not show up as an error, even if it is
|
|
374
|
-
* also in the `flagWords`.
|
|
375
|
-
*/
|
|
376
|
-
ignoreWords?: string[];
|
|
377
369
|
/**
|
|
378
370
|
* True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.
|
|
379
371
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DictionaryInformation } from './DictionaryInformation.js';
|
|
2
|
-
|
|
2
|
+
import type { InlineDictionary } from './InlineDictionary.js';
|
|
3
|
+
export type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAugmented | DictionaryDefinitionInline | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
|
|
3
4
|
export type DictionaryFileTypes = 'S' | 'W' | 'C' | 'T';
|
|
4
5
|
export interface DictionaryDefinitionBase {
|
|
5
6
|
/**
|
|
@@ -57,6 +58,39 @@ export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase
|
|
|
57
58
|
export interface DictionaryDefinitionAugmented extends DictionaryDefinitionPreferred {
|
|
58
59
|
dictionaryInformation?: DictionaryInformation;
|
|
59
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Inline Dictionary Definition
|
|
63
|
+
*
|
|
64
|
+
* All words are defined inline.
|
|
65
|
+
*/
|
|
66
|
+
interface DictionaryDefinitionInlineBase extends DictionaryDefinitionBase, InlineDictionary {
|
|
67
|
+
/**
|
|
68
|
+
* Not used
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
path?: undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Note used
|
|
74
|
+
* @deprecated true
|
|
75
|
+
* @deprecationMessage Use `path` instead.
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
file?: undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface DictionaryDefinitionInlineWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'words'>> {
|
|
81
|
+
words: string[];
|
|
82
|
+
}
|
|
83
|
+
export interface DictionaryDefinitionInlineFlagWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'flagWords'>> {
|
|
84
|
+
flagWords: string[];
|
|
85
|
+
}
|
|
86
|
+
export interface DictionaryDefinitionInlineIgnoreWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'ignoreWords'>> {
|
|
87
|
+
ignoreWords: string[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Inline Dictionary Definitions
|
|
91
|
+
* @version 6.23.0
|
|
92
|
+
*/
|
|
93
|
+
export type DictionaryDefinitionInline = DictionaryDefinitionInlineWords | DictionaryDefinitionInlineIgnoreWords | DictionaryDefinitionInlineFlagWords;
|
|
60
94
|
/**
|
|
61
95
|
* Only for legacy dictionary definitions.
|
|
62
96
|
* @deprecated true
|
|
@@ -181,4 +215,5 @@ export type DictionaryRef = DictionaryId;
|
|
|
181
215
|
* @pattern ^(?=!+[^!*,;{}[\]~\n]+$)(?=(.*\w)).+$
|
|
182
216
|
*/
|
|
183
217
|
export type DictionaryNegRef = string;
|
|
218
|
+
export {};
|
|
184
219
|
//# sourceMappingURL=DictionaryDefinition.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface InlineDictionary {
|
|
2
|
+
/**
|
|
3
|
+
* List of words to be considered correct.
|
|
4
|
+
*/
|
|
5
|
+
words?: string[];
|
|
6
|
+
/**
|
|
7
|
+
* List of words to always be considered incorrect. Words found in `flagWords` override `words`.
|
|
8
|
+
*
|
|
9
|
+
* Format of `flagWords`
|
|
10
|
+
* - single word entry - `word`
|
|
11
|
+
* - with suggestions - `word:suggestion` or `word->suggestion, suggestions`
|
|
12
|
+
*
|
|
13
|
+
* Example:
|
|
14
|
+
* ```ts
|
|
15
|
+
* "flagWords": [
|
|
16
|
+
* "color: colour",
|
|
17
|
+
* "incase: in case, encase",
|
|
18
|
+
* "canot->cannot",
|
|
19
|
+
* "cancelled->canceled"
|
|
20
|
+
* ]
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
flagWords?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* List of words to be ignored. An ignored word will not show up as an error, even if it is
|
|
26
|
+
* also in the `flagWords`.
|
|
27
|
+
*/
|
|
28
|
+
ignoreWords?: string[];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=InlineDictionary.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReporterConfigurationBase } from './CSpellReporter.js';
|
|
2
2
|
import type { DictionaryDefinition, DictionaryReference } from './DictionaryDefinition.js';
|
|
3
3
|
import type { Features } from './features.js';
|
|
4
|
+
import type { InlineDictionary } from './InlineDictionary.js';
|
|
4
5
|
import type { Parser, ParserName } from './Parser/index.js';
|
|
5
6
|
import type { Serializable } from './types.js';
|
|
6
7
|
/**
|
|
@@ -123,7 +124,7 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
123
124
|
/**
|
|
124
125
|
* Configure CSpell features.
|
|
125
126
|
*
|
|
126
|
-
*
|
|
127
|
+
* @version 5.16.0
|
|
127
128
|
*/
|
|
128
129
|
features?: Features;
|
|
129
130
|
}
|
|
@@ -353,7 +354,7 @@ export interface OverrideFilterFields {
|
|
|
353
354
|
/** Glob pattern or patterns to match against. */
|
|
354
355
|
filename: Glob | Glob[];
|
|
355
356
|
}
|
|
356
|
-
export interface BaseSetting extends ExperimentalBaseSettings {
|
|
357
|
+
export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings {
|
|
357
358
|
/** Optional identifier. */
|
|
358
359
|
id?: string;
|
|
359
360
|
/** Optional name of configuration. */
|
|
@@ -365,15 +366,6 @@ export interface BaseSetting extends ExperimentalBaseSettings {
|
|
|
365
366
|
* @default true
|
|
366
367
|
*/
|
|
367
368
|
enabled?: boolean;
|
|
368
|
-
/** List of words to be always considered correct. */
|
|
369
|
-
words?: string[];
|
|
370
|
-
/** List of words to always be considered incorrect. */
|
|
371
|
-
flagWords?: string[];
|
|
372
|
-
/**
|
|
373
|
-
* List of words to be ignored. An ignored word will not show up as an error, even if it is
|
|
374
|
-
* also in the `flagWords`.
|
|
375
|
-
*/
|
|
376
|
-
ignoreWords?: string[];
|
|
377
369
|
/**
|
|
378
370
|
* True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.
|
|
379
371
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DictionaryInformation } from './DictionaryInformation.js';
|
|
2
|
-
|
|
2
|
+
import type { InlineDictionary } from './InlineDictionary.js';
|
|
3
|
+
export type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAugmented | DictionaryDefinitionInline | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
|
|
3
4
|
export type DictionaryFileTypes = 'S' | 'W' | 'C' | 'T';
|
|
4
5
|
export interface DictionaryDefinitionBase {
|
|
5
6
|
/**
|
|
@@ -57,6 +58,39 @@ export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase
|
|
|
57
58
|
export interface DictionaryDefinitionAugmented extends DictionaryDefinitionPreferred {
|
|
58
59
|
dictionaryInformation?: DictionaryInformation;
|
|
59
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Inline Dictionary Definition
|
|
63
|
+
*
|
|
64
|
+
* All words are defined inline.
|
|
65
|
+
*/
|
|
66
|
+
interface DictionaryDefinitionInlineBase extends DictionaryDefinitionBase, InlineDictionary {
|
|
67
|
+
/**
|
|
68
|
+
* Not used
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
path?: undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Note used
|
|
74
|
+
* @deprecated true
|
|
75
|
+
* @deprecationMessage Use `path` instead.
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
file?: undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface DictionaryDefinitionInlineWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'words'>> {
|
|
81
|
+
words: string[];
|
|
82
|
+
}
|
|
83
|
+
export interface DictionaryDefinitionInlineFlagWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'flagWords'>> {
|
|
84
|
+
flagWords: string[];
|
|
85
|
+
}
|
|
86
|
+
export interface DictionaryDefinitionInlineIgnoreWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'ignoreWords'>> {
|
|
87
|
+
ignoreWords: string[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Inline Dictionary Definitions
|
|
91
|
+
* @version 6.23.0
|
|
92
|
+
*/
|
|
93
|
+
export type DictionaryDefinitionInline = DictionaryDefinitionInlineWords | DictionaryDefinitionInlineIgnoreWords | DictionaryDefinitionInlineFlagWords;
|
|
60
94
|
/**
|
|
61
95
|
* Only for legacy dictionary definitions.
|
|
62
96
|
* @deprecated true
|
|
@@ -181,4 +215,5 @@ export type DictionaryRef = DictionaryId;
|
|
|
181
215
|
* @pattern ^(?=!+[^!*,;{}[\]~\n]+$)(?=(.*\w)).+$
|
|
182
216
|
*/
|
|
183
217
|
export type DictionaryNegRef = string;
|
|
218
|
+
export {};
|
|
184
219
|
//# sourceMappingURL=DictionaryDefinition.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface InlineDictionary {
|
|
2
|
+
/**
|
|
3
|
+
* List of words to be considered correct.
|
|
4
|
+
*/
|
|
5
|
+
words?: string[];
|
|
6
|
+
/**
|
|
7
|
+
* List of words to always be considered incorrect. Words found in `flagWords` override `words`.
|
|
8
|
+
*
|
|
9
|
+
* Format of `flagWords`
|
|
10
|
+
* - single word entry - `word`
|
|
11
|
+
* - with suggestions - `word:suggestion` or `word->suggestion, suggestions`
|
|
12
|
+
*
|
|
13
|
+
* Example:
|
|
14
|
+
* ```ts
|
|
15
|
+
* "flagWords": [
|
|
16
|
+
* "color: colour",
|
|
17
|
+
* "incase: in case, encase",
|
|
18
|
+
* "canot->cannot",
|
|
19
|
+
* "cancelled->canceled"
|
|
20
|
+
* ]
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
flagWords?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* List of words to be ignored. An ignored word will not show up as an error, even if it is
|
|
26
|
+
* also in the `flagWords`.
|
|
27
|
+
*/
|
|
28
|
+
ignoreWords?: string[];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=InlineDictionary.d.ts.map
|
|
@@ -3,7 +3,7 @@ export { ConfigFields } from './configFields.js';
|
|
|
3
3
|
export type { CSpellReporter, CSpellReporterModule, DebugEmitter, ErrorEmitter, ErrorLike, Issue, MessageEmitter, MessageType, MessageTypeLookup, ProgressBase, ProgressEmitter, ProgressFileBase, ProgressFileBegin, ProgressFileComplete, ProgressItem, ProgressTypes, ReporterConfiguration, ResultEmitter, RunResult, SpellingErrorEmitter, } from './CSpellReporter.js';
|
|
4
4
|
export { IssueType, MessageTypes } from './CSpellReporter.js';
|
|
5
5
|
export type { AdvancedCSpellSettings, AdvancedCSpellSettingsWithSourceTrace, BaseSetting, CacheFormat, CacheSettings, CacheStrategy, CommandLineSettings, CSpellPackageSettings, CSpellSettings, CSpellSettingsWithSourceTrace, CSpellUserSettings, CSpellUserSettingsWithComments, ExperimentalBaseSettings, ExperimentalFileSettings, ExtendableSettings, FileSettings, FileSource, FsPath, FSPathResolvable, Glob, GlobDef, ImportFileRef, InMemorySource, LanguageId, LanguageIdMultiple, LanguageIdMultipleNeg, LanguageIdSingle, LanguageSetting, LanguageSettingFilterFields, LanguageSettingFilterFieldsDeprecated, LanguageSettingFilterFieldsPreferred, LegacySettings, LocaleId, LocalId, MergeSource, OverrideFilterFields, OverrideSettings, Pattern, PatternId, PatternRef, Plugin, PnPSettings, PredefinedPatterns, RegExpPatternDefinition, RegExpPatternList, ReporterSettings, ReportingConfiguration, Settings, SimpleGlob, Source, SuggestionsConfiguration, TrustLevel, Version, VersionLatest, VersionLegacy, WorkspaceTrustSettings, } from './CSpellSettingsDef.js';
|
|
6
|
-
export type { CustomDictionaryPath, CustomDictionaryScope, DictionaryDefinition, DictionaryDefinitionAlternate, DictionaryDefinitionAugmented, DictionaryDefinitionBase, DictionaryDefinitionCustom, DictionaryDefinitionLegacy, DictionaryDefinitionPreferred, DictionaryFileTypes, DictionaryId, DictionaryNegRef, DictionaryPath, DictionaryRef, DictionaryReference, ReplaceEntry, ReplaceMap, } from './DictionaryDefinition.js';
|
|
6
|
+
export type { CustomDictionaryPath, CustomDictionaryScope, DictionaryDefinition, DictionaryDefinitionAlternate, DictionaryDefinitionAugmented, DictionaryDefinitionBase, DictionaryDefinitionCustom, DictionaryDefinitionInline, DictionaryDefinitionInlineFlagWords, DictionaryDefinitionInlineIgnoreWords, DictionaryDefinitionInlineWords, DictionaryDefinitionLegacy, DictionaryDefinitionPreferred, DictionaryFileTypes, DictionaryId, DictionaryNegRef, DictionaryPath, DictionaryRef, DictionaryReference, ReplaceEntry, ReplaceMap, } from './DictionaryDefinition.js';
|
|
7
7
|
export type { CharacterSet, CharacterSetCosts, DictionaryInformation, EditCosts } from './DictionaryInformation.js';
|
|
8
8
|
export type { Feature, Features } from './features.js';
|
|
9
9
|
export type { ParsedText, Parser, ParseResult, ParserName, ParserOptions } from './Parser/index.js';
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { ConfigFields } from './configFields.js';
|
|
|
3
3
|
export type { CSpellReporter, CSpellReporterModule, DebugEmitter, ErrorEmitter, ErrorLike, Issue, MessageEmitter, MessageType, MessageTypeLookup, ProgressBase, ProgressEmitter, ProgressFileBase, ProgressFileBegin, ProgressFileComplete, ProgressItem, ProgressTypes, ReporterConfiguration, ResultEmitter, RunResult, SpellingErrorEmitter, } from './CSpellReporter.js';
|
|
4
4
|
export { IssueType, MessageTypes } from './CSpellReporter.js';
|
|
5
5
|
export type { AdvancedCSpellSettings, AdvancedCSpellSettingsWithSourceTrace, BaseSetting, CacheFormat, CacheSettings, CacheStrategy, CommandLineSettings, CSpellPackageSettings, CSpellSettings, CSpellSettingsWithSourceTrace, CSpellUserSettings, CSpellUserSettingsWithComments, ExperimentalBaseSettings, ExperimentalFileSettings, ExtendableSettings, FileSettings, FileSource, FsPath, FSPathResolvable, Glob, GlobDef, ImportFileRef, InMemorySource, LanguageId, LanguageIdMultiple, LanguageIdMultipleNeg, LanguageIdSingle, LanguageSetting, LanguageSettingFilterFields, LanguageSettingFilterFieldsDeprecated, LanguageSettingFilterFieldsPreferred, LegacySettings, LocaleId, LocalId, MergeSource, OverrideFilterFields, OverrideSettings, Pattern, PatternId, PatternRef, Plugin, PnPSettings, PredefinedPatterns, RegExpPatternDefinition, RegExpPatternList, ReporterSettings, ReportingConfiguration, Settings, SimpleGlob, Source, SuggestionsConfiguration, TrustLevel, Version, VersionLatest, VersionLegacy, WorkspaceTrustSettings, } from './CSpellSettingsDef.js';
|
|
6
|
-
export type { CustomDictionaryPath, CustomDictionaryScope, DictionaryDefinition, DictionaryDefinitionAlternate, DictionaryDefinitionAugmented, DictionaryDefinitionBase, DictionaryDefinitionCustom, DictionaryDefinitionLegacy, DictionaryDefinitionPreferred, DictionaryFileTypes, DictionaryId, DictionaryNegRef, DictionaryPath, DictionaryRef, DictionaryReference, ReplaceEntry, ReplaceMap, } from './DictionaryDefinition.js';
|
|
6
|
+
export type { CustomDictionaryPath, CustomDictionaryScope, DictionaryDefinition, DictionaryDefinitionAlternate, DictionaryDefinitionAugmented, DictionaryDefinitionBase, DictionaryDefinitionCustom, DictionaryDefinitionInline, DictionaryDefinitionInlineFlagWords, DictionaryDefinitionInlineIgnoreWords, DictionaryDefinitionInlineWords, DictionaryDefinitionLegacy, DictionaryDefinitionPreferred, DictionaryFileTypes, DictionaryId, DictionaryNegRef, DictionaryPath, DictionaryRef, DictionaryReference, ReplaceEntry, ReplaceMap, } from './DictionaryDefinition.js';
|
|
7
7
|
export type { CharacterSet, CharacterSetCosts, DictionaryInformation, EditCosts } from './DictionaryInformation.js';
|
|
8
8
|
export type { Feature, Features } from './features.js';
|
|
9
9
|
export type { ParsedText, Parser, ParseResult, ParserName, ParserOptions } from './Parser/index.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReporterConfigurationBase } from './CSpellReporter.js';
|
|
2
2
|
import type { DictionaryDefinition, DictionaryReference } from './DictionaryDefinition.js';
|
|
3
3
|
import type { Features } from './features.js';
|
|
4
|
+
import type { InlineDictionary } from './InlineDictionary.js';
|
|
4
5
|
import type { Parser, ParserName } from './Parser/index.js';
|
|
5
6
|
import type { Serializable } from './types.js';
|
|
6
7
|
/**
|
|
@@ -123,7 +124,7 @@ export interface FileSettings extends ExtendableSettings, CommandLineSettings {
|
|
|
123
124
|
/**
|
|
124
125
|
* Configure CSpell features.
|
|
125
126
|
*
|
|
126
|
-
*
|
|
127
|
+
* @version 5.16.0
|
|
127
128
|
*/
|
|
128
129
|
features?: Features;
|
|
129
130
|
}
|
|
@@ -353,7 +354,7 @@ export interface OverrideFilterFields {
|
|
|
353
354
|
/** Glob pattern or patterns to match against. */
|
|
354
355
|
filename: Glob | Glob[];
|
|
355
356
|
}
|
|
356
|
-
export interface BaseSetting extends ExperimentalBaseSettings {
|
|
357
|
+
export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings {
|
|
357
358
|
/** Optional identifier. */
|
|
358
359
|
id?: string;
|
|
359
360
|
/** Optional name of configuration. */
|
|
@@ -365,15 +366,6 @@ export interface BaseSetting extends ExperimentalBaseSettings {
|
|
|
365
366
|
* @default true
|
|
366
367
|
*/
|
|
367
368
|
enabled?: boolean;
|
|
368
|
-
/** List of words to be always considered correct. */
|
|
369
|
-
words?: string[];
|
|
370
|
-
/** List of words to always be considered incorrect. */
|
|
371
|
-
flagWords?: string[];
|
|
372
|
-
/**
|
|
373
|
-
* List of words to be ignored. An ignored word will not show up as an error, even if it is
|
|
374
|
-
* also in the `flagWords`.
|
|
375
|
-
*/
|
|
376
|
-
ignoreWords?: string[];
|
|
377
369
|
/**
|
|
378
370
|
* True to enable compound word checking. See [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.
|
|
379
371
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DictionaryInformation } from './DictionaryInformation.js';
|
|
2
|
-
|
|
2
|
+
import type { InlineDictionary } from './InlineDictionary.js';
|
|
3
|
+
export type DictionaryDefinition = DictionaryDefinitionPreferred | DictionaryDefinitionCustom | DictionaryDefinitionAugmented | DictionaryDefinitionInline | DictionaryDefinitionAlternate | DictionaryDefinitionLegacy;
|
|
3
4
|
export type DictionaryFileTypes = 'S' | 'W' | 'C' | 'T';
|
|
4
5
|
export interface DictionaryDefinitionBase {
|
|
5
6
|
/**
|
|
@@ -57,6 +58,39 @@ export interface DictionaryDefinitionPreferred extends DictionaryDefinitionBase
|
|
|
57
58
|
export interface DictionaryDefinitionAugmented extends DictionaryDefinitionPreferred {
|
|
58
59
|
dictionaryInformation?: DictionaryInformation;
|
|
59
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Inline Dictionary Definition
|
|
63
|
+
*
|
|
64
|
+
* All words are defined inline.
|
|
65
|
+
*/
|
|
66
|
+
interface DictionaryDefinitionInlineBase extends DictionaryDefinitionBase, InlineDictionary {
|
|
67
|
+
/**
|
|
68
|
+
* Not used
|
|
69
|
+
* @hidden
|
|
70
|
+
*/
|
|
71
|
+
path?: undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Note used
|
|
74
|
+
* @deprecated true
|
|
75
|
+
* @deprecationMessage Use `path` instead.
|
|
76
|
+
* @hidden
|
|
77
|
+
*/
|
|
78
|
+
file?: undefined;
|
|
79
|
+
}
|
|
80
|
+
export interface DictionaryDefinitionInlineWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'words'>> {
|
|
81
|
+
words: string[];
|
|
82
|
+
}
|
|
83
|
+
export interface DictionaryDefinitionInlineFlagWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'flagWords'>> {
|
|
84
|
+
flagWords: string[];
|
|
85
|
+
}
|
|
86
|
+
export interface DictionaryDefinitionInlineIgnoreWords extends DictionaryDefinitionInlineBase, Required<Pick<InlineDictionary, 'ignoreWords'>> {
|
|
87
|
+
ignoreWords: string[];
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Inline Dictionary Definitions
|
|
91
|
+
* @version 6.23.0
|
|
92
|
+
*/
|
|
93
|
+
export type DictionaryDefinitionInline = DictionaryDefinitionInlineWords | DictionaryDefinitionInlineIgnoreWords | DictionaryDefinitionInlineFlagWords;
|
|
60
94
|
/**
|
|
61
95
|
* Only for legacy dictionary definitions.
|
|
62
96
|
* @deprecated true
|
|
@@ -181,4 +215,5 @@ export type DictionaryRef = DictionaryId;
|
|
|
181
215
|
* @pattern ^(?=!+[^!*,;{}[\]~\n]+$)(?=(.*\w)).+$
|
|
182
216
|
*/
|
|
183
217
|
export type DictionaryNegRef = string;
|
|
218
|
+
export {};
|
|
184
219
|
//# sourceMappingURL=DictionaryDefinition.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface InlineDictionary {
|
|
2
|
+
/**
|
|
3
|
+
* List of words to be considered correct.
|
|
4
|
+
*/
|
|
5
|
+
words?: string[];
|
|
6
|
+
/**
|
|
7
|
+
* List of words to always be considered incorrect. Words found in `flagWords` override `words`.
|
|
8
|
+
*
|
|
9
|
+
* Format of `flagWords`
|
|
10
|
+
* - single word entry - `word`
|
|
11
|
+
* - with suggestions - `word:suggestion` or `word->suggestion, suggestions`
|
|
12
|
+
*
|
|
13
|
+
* Example:
|
|
14
|
+
* ```ts
|
|
15
|
+
* "flagWords": [
|
|
16
|
+
* "color: colour",
|
|
17
|
+
* "incase: in case, encase",
|
|
18
|
+
* "canot->cannot",
|
|
19
|
+
* "cancelled->canceled"
|
|
20
|
+
* ]
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
flagWords?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* List of words to be ignored. An ignored word will not show up as an error, even if it is
|
|
26
|
+
* also in the `flagWords`.
|
|
27
|
+
*/
|
|
28
|
+
ignoreWords?: string[];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=InlineDictionary.d.ts.map
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { ConfigFields } from './configFields.js';
|
|
|
3
3
|
export type { CSpellReporter, CSpellReporterModule, DebugEmitter, ErrorEmitter, ErrorLike, Issue, MessageEmitter, MessageType, MessageTypeLookup, ProgressBase, ProgressEmitter, ProgressFileBase, ProgressFileBegin, ProgressFileComplete, ProgressItem, ProgressTypes, ReporterConfiguration, ResultEmitter, RunResult, SpellingErrorEmitter, } from './CSpellReporter.js';
|
|
4
4
|
export { IssueType, MessageTypes } from './CSpellReporter.js';
|
|
5
5
|
export type { AdvancedCSpellSettings, AdvancedCSpellSettingsWithSourceTrace, BaseSetting, CacheFormat, CacheSettings, CacheStrategy, CommandLineSettings, CSpellPackageSettings, CSpellSettings, CSpellSettingsWithSourceTrace, CSpellUserSettings, CSpellUserSettingsWithComments, ExperimentalBaseSettings, ExperimentalFileSettings, ExtendableSettings, FileSettings, FileSource, FsPath, FSPathResolvable, Glob, GlobDef, ImportFileRef, InMemorySource, LanguageId, LanguageIdMultiple, LanguageIdMultipleNeg, LanguageIdSingle, LanguageSetting, LanguageSettingFilterFields, LanguageSettingFilterFieldsDeprecated, LanguageSettingFilterFieldsPreferred, LegacySettings, LocaleId, LocalId, MergeSource, OverrideFilterFields, OverrideSettings, Pattern, PatternId, PatternRef, Plugin, PnPSettings, PredefinedPatterns, RegExpPatternDefinition, RegExpPatternList, ReporterSettings, ReportingConfiguration, Settings, SimpleGlob, Source, SuggestionsConfiguration, TrustLevel, Version, VersionLatest, VersionLegacy, WorkspaceTrustSettings, } from './CSpellSettingsDef.js';
|
|
6
|
-
export type { CustomDictionaryPath, CustomDictionaryScope, DictionaryDefinition, DictionaryDefinitionAlternate, DictionaryDefinitionAugmented, DictionaryDefinitionBase, DictionaryDefinitionCustom, DictionaryDefinitionLegacy, DictionaryDefinitionPreferred, DictionaryFileTypes, DictionaryId, DictionaryNegRef, DictionaryPath, DictionaryRef, DictionaryReference, ReplaceEntry, ReplaceMap, } from './DictionaryDefinition.js';
|
|
6
|
+
export type { CustomDictionaryPath, CustomDictionaryScope, DictionaryDefinition, DictionaryDefinitionAlternate, DictionaryDefinitionAugmented, DictionaryDefinitionBase, DictionaryDefinitionCustom, DictionaryDefinitionInline, DictionaryDefinitionInlineFlagWords, DictionaryDefinitionInlineIgnoreWords, DictionaryDefinitionInlineWords, DictionaryDefinitionLegacy, DictionaryDefinitionPreferred, DictionaryFileTypes, DictionaryId, DictionaryNegRef, DictionaryPath, DictionaryRef, DictionaryReference, ReplaceEntry, ReplaceMap, } from './DictionaryDefinition.js';
|
|
7
7
|
export type { CharacterSet, CharacterSetCosts, DictionaryInformation, EditCosts } from './DictionaryInformation.js';
|
|
8
8
|
export type { Feature, Features } from './features.js';
|
|
9
9
|
export type { ParsedText, Parser, ParseResult, ParserName, ParserOptions } from './Parser/index.js';
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "6.
|
|
6
|
+
"version": "6.23.0",
|
|
7
7
|
"description": "Types for cspell and cspell-lib",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -89,10 +89,10 @@
|
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"ajv-cli": "^5.0.0",
|
|
92
|
-
"jest": "^29.4.
|
|
92
|
+
"jest": "^29.4.2",
|
|
93
93
|
"ts-json-schema-generator": "^1.2.0",
|
|
94
94
|
"typescript": "^4.9.5",
|
|
95
|
-
"vitest": "^0.28.
|
|
95
|
+
"vitest": "^0.28.4"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "a7cfbfa6cf42c9d9746dd8229d9f1317472e5af8"
|
|
98
98
|
}
|