@cspell/cspell-types 7.0.0-alpha.1 → 7.0.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.
@@ -899,7 +899,7 @@
899
899
  },
900
900
  "ignoreRegExpList": {
901
901
  "$ref": "#/definitions/RegExpPatternList",
902
- "description": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: [\"href\"] - to exclude html href.\n\nBy default, several patterns are excluded. See [Configuration](https://cspell.org/configuration/#cspelljson-sections) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22)."
902
+ "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)."
903
903
  },
904
904
  "ignoreWords": {
905
905
  "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`.",
@@ -910,7 +910,7 @@
910
910
  },
911
911
  "includeRegExpList": {
912
912
  "$ref": "#/definitions/RegExpPatternList",
913
- "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://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22)."
913
+ "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)."
914
914
  },
915
915
  "languageId": {
916
916
  "$ref": "#/definitions/MatchingFileType",
@@ -1081,7 +1081,7 @@
1081
1081
  },
1082
1082
  "ignoreRegExpList": {
1083
1083
  "$ref": "#/definitions/RegExpPatternList",
1084
- "description": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: [\"href\"] - to exclude html href.\n\nBy default, several patterns are excluded. See [Configuration](https://cspell.org/configuration/#cspelljson-sections) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22)."
1084
+ "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)."
1085
1085
  },
1086
1086
  "ignoreWords": {
1087
1087
  "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`.",
@@ -1092,7 +1092,7 @@
1092
1092
  },
1093
1093
  "includeRegExpList": {
1094
1094
  "$ref": "#/definitions/RegExpPatternList",
1095
- "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://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22)."
1095
+ "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)."
1096
1096
  },
1097
1097
  "language": {
1098
1098
  "$ref": "#/definitions/LocaleId",
@@ -1553,7 +1553,7 @@
1553
1553
  },
1554
1554
  "ignoreRegExpList": {
1555
1555
  "$ref": "#/definitions/RegExpPatternList",
1556
- "description": "List of regular expression patterns or pattern names to exclude from spell checking.\n\nExample: [\"href\"] - to exclude html href.\n\nBy default, several patterns are excluded. See [Configuration](https://cspell.org/configuration/#cspelljson-sections) for more details.\n\nWhile you can create your own patterns, you can also leverage several patterns that are [built-in to CSpell](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22)."
1556
+ "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)."
1557
1557
  },
1558
1558
  "ignoreWords": {
1559
1559
  "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`.",
@@ -1578,7 +1578,7 @@
1578
1578
  },
1579
1579
  "includeRegExpList": {
1580
1580
  "$ref": "#/definitions/RegExpPatternList",
1581
- "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://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22)."
1581
+ "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)."
1582
1582
  },
1583
1583
  "language": {
1584
1584
  "$ref": "#/definitions/LocaleId",
@@ -5,7 +5,7 @@ var IssueType;
5
5
  (function (IssueType) {
6
6
  IssueType[IssueType["spelling"] = 0] = "spelling";
7
7
  IssueType[IssueType["directive"] = 1] = "directive";
8
- })(IssueType = exports.IssueType || (exports.IssueType = {}));
8
+ })(IssueType || (exports.IssueType = IssueType = {}));
9
9
  exports.MessageTypes = {
10
10
  Debug: 'Debug',
11
11
  Info: 'Info',
@@ -419,13 +419,29 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
419
419
  /**
420
420
  * List of regular expression patterns or pattern names to exclude from spell checking.
421
421
  *
422
- * Example: ["href"] - to exclude html href.
422
+ * Example: `["href"]` - to exclude html href pattern.
423
+ *
424
+ * Regular expressions use JavaScript regular expression syntax.
425
+ *
426
+ * Example: to ignore ALL-CAPS words
427
+ *
428
+ * JSON
429
+ * ```json
430
+ * "ignoreRegExpList": ["/\\b[A-Z]+\\b/g"]
431
+ * ```
432
+ *
433
+ * YAML
434
+ * ```yaml
435
+ * ignoreRegExpList:
436
+ * - >-
437
+ * /\b[A-Z]+\b/g
438
+ * ```
423
439
  *
424
440
  * By default, several patterns are excluded. See
425
- * [Configuration](https://cspell.org/configuration/#cspelljson-sections) for more details.
441
+ * [Configuration](https://cspell.org/configuration/patterns) for more details.
426
442
  *
427
443
  * While you can create your own patterns, you can also leverage several patterns that are
428
- * [built-in to CSpell](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22).
444
+ * [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
429
445
  */
430
446
  ignoreRegExpList?: RegExpPatternList;
431
447
  /**
@@ -434,7 +450,7 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
434
450
  * If this property is defined, only text matching the included patterns will be checked.
435
451
  *
436
452
  * While you can create your own patterns, you can also leverage several patterns that are
437
- * [built-in to CSpell](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22).
453
+ * [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
438
454
  */
439
455
  includeRegExpList?: RegExpPatternList;
440
456
  /**
@@ -419,13 +419,29 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
419
419
  /**
420
420
  * List of regular expression patterns or pattern names to exclude from spell checking.
421
421
  *
422
- * Example: ["href"] - to exclude html href.
422
+ * Example: `["href"]` - to exclude html href pattern.
423
+ *
424
+ * Regular expressions use JavaScript regular expression syntax.
425
+ *
426
+ * Example: to ignore ALL-CAPS words
427
+ *
428
+ * JSON
429
+ * ```json
430
+ * "ignoreRegExpList": ["/\\b[A-Z]+\\b/g"]
431
+ * ```
432
+ *
433
+ * YAML
434
+ * ```yaml
435
+ * ignoreRegExpList:
436
+ * - >-
437
+ * /\b[A-Z]+\b/g
438
+ * ```
423
439
  *
424
440
  * By default, several patterns are excluded. See
425
- * [Configuration](https://cspell.org/configuration/#cspelljson-sections) for more details.
441
+ * [Configuration](https://cspell.org/configuration/patterns) for more details.
426
442
  *
427
443
  * While you can create your own patterns, you can also leverage several patterns that are
428
- * [built-in to CSpell](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22).
444
+ * [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
429
445
  */
430
446
  ignoreRegExpList?: RegExpPatternList;
431
447
  /**
@@ -434,7 +450,7 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
434
450
  * If this property is defined, only text matching the included patterns will be checked.
435
451
  *
436
452
  * While you can create your own patterns, you can also leverage several patterns that are
437
- * [built-in to CSpell](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22).
453
+ * [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
438
454
  */
439
455
  includeRegExpList?: RegExpPatternList;
440
456
  /**
@@ -419,13 +419,29 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
419
419
  /**
420
420
  * List of regular expression patterns or pattern names to exclude from spell checking.
421
421
  *
422
- * Example: ["href"] - to exclude html href.
422
+ * Example: `["href"]` - to exclude html href pattern.
423
+ *
424
+ * Regular expressions use JavaScript regular expression syntax.
425
+ *
426
+ * Example: to ignore ALL-CAPS words
427
+ *
428
+ * JSON
429
+ * ```json
430
+ * "ignoreRegExpList": ["/\\b[A-Z]+\\b/g"]
431
+ * ```
432
+ *
433
+ * YAML
434
+ * ```yaml
435
+ * ignoreRegExpList:
436
+ * - >-
437
+ * /\b[A-Z]+\b/g
438
+ * ```
423
439
  *
424
440
  * By default, several patterns are excluded. See
425
- * [Configuration](https://cspell.org/configuration/#cspelljson-sections) for more details.
441
+ * [Configuration](https://cspell.org/configuration/patterns) for more details.
426
442
  *
427
443
  * While you can create your own patterns, you can also leverage several patterns that are
428
- * [built-in to CSpell](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22).
444
+ * [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
429
445
  */
430
446
  ignoreRegExpList?: RegExpPatternList;
431
447
  /**
@@ -434,7 +450,7 @@ export interface BaseSetting extends InlineDictionary, ExperimentalBaseSettings
434
450
  * If this property is defined, only text matching the included patterns will be checked.
435
451
  *
436
452
  * While you can create your own patterns, you can also leverage several patterns that are
437
- * [built-in to CSpell](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell-lib/src/Settings/DefaultSettings.ts#L22).
453
+ * [built-in to CSpell](https://cspell.org/types/cspell-types/types/PredefinedPatterns.html).
438
454
  */
439
455
  includeRegExpList?: RegExpPatternList;
440
456
  /**
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "7.0.0-alpha.1",
6
+ "version": "7.0.0",
7
7
  "description": "Types for cspell and cspell-lib",
8
8
  "type": "commonjs",
9
9
  "main": "./dist/cjs/index.js",
@@ -47,7 +47,7 @@
47
47
  }
48
48
  },
49
49
  "scripts": {
50
- "clean": "shx rm -rf dist coverage .tsbuildinfo",
50
+ "clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
51
51
  "build": "pnpm build:tsc && pnpm run build-schema",
52
52
  "build:tsc": "tsc -b tsconfig.json && ts2mjs dist/esm",
53
53
  "build-schema": "ts-json-schema-generator --no-top-ref --path src/CSpellSettingsDef.ts --type CSpellSettings --validation-keywords markdownDescription --validation-keywords scope --validation-keywords deprecated --validation-keywords deprecationMessage -o ./cspell.schema.json && shx cp ./cspell.schema.json ../..",
@@ -87,8 +87,7 @@
87
87
  },
88
88
  "devDependencies": {
89
89
  "ajv-cli": "^5.0.0",
90
- "ts-json-schema-generator": "^1.2.0",
91
- "typescript": "^4.9.5"
90
+ "ts-json-schema-generator": "^1.2.0"
92
91
  },
93
- "gitHead": "626d1a01b413c1b6de0b386a5a264b78a10ba146"
92
+ "gitHead": "52960d5ed75655978f9b633f44fd106937a63cd7"
94
93
  }