@cspell/cspell-types 8.16.1 → 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/cspell.schema.json +24 -0
- package/dist/CSpellReporter.d.ts +12 -0
- package/dist/configFields.js +2 -0
- package/dist/defaultConfigSettings.d.ts +5 -0
- package/dist/defaultConfigSettings.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/package.json +2 -2
package/cspell.schema.json
CHANGED
|
@@ -1331,6 +1331,12 @@
|
|
|
1331
1331
|
"markdownDescription": "Optional identifier.",
|
|
1332
1332
|
"type": "string"
|
|
1333
1333
|
},
|
|
1334
|
+
"ignoreRandomStrings": {
|
|
1335
|
+
"default": true,
|
|
1336
|
+
"description": "Ignore sequences of characters that look like random strings.",
|
|
1337
|
+
"markdownDescription": "Ignore sequences of characters that look like random strings.",
|
|
1338
|
+
"type": "boolean"
|
|
1339
|
+
},
|
|
1334
1340
|
"ignoreRegExpList": {
|
|
1335
1341
|
"$ref": "#/definitions/RegExpPatternList",
|
|
1336
1342
|
"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).",
|
|
@@ -1385,6 +1391,12 @@
|
|
|
1385
1391
|
"markdownDescription": "The maximum number of problems to report in a file.",
|
|
1386
1392
|
"type": "number"
|
|
1387
1393
|
},
|
|
1394
|
+
"minRandomLength": {
|
|
1395
|
+
"default": 40,
|
|
1396
|
+
"description": "The minimum length of a random string to be ignored.",
|
|
1397
|
+
"markdownDescription": "The minimum length of a random string to be ignored.",
|
|
1398
|
+
"type": "number"
|
|
1399
|
+
},
|
|
1388
1400
|
"minWordLength": {
|
|
1389
1401
|
"default": 4,
|
|
1390
1402
|
"description": "The minimum length of a word before checking it against a dictionary.",
|
|
@@ -1869,6 +1881,12 @@
|
|
|
1869
1881
|
"markdownDescription": "Glob patterns of files to be ignored.\n\nGlob patterns are relative to the {@link globRoot } of the configuration file that defines them.",
|
|
1870
1882
|
"type": "array"
|
|
1871
1883
|
},
|
|
1884
|
+
"ignoreRandomStrings": {
|
|
1885
|
+
"default": true,
|
|
1886
|
+
"description": "Ignore sequences of characters that look like random strings.",
|
|
1887
|
+
"markdownDescription": "Ignore sequences of characters that look like random strings.",
|
|
1888
|
+
"type": "boolean"
|
|
1889
|
+
},
|
|
1872
1890
|
"ignoreRegExpList": {
|
|
1873
1891
|
"$ref": "#/definitions/RegExpPatternList",
|
|
1874
1892
|
"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).",
|
|
@@ -1939,6 +1957,12 @@
|
|
|
1939
1957
|
"markdownDescription": "The maximum number of problems to report in a file.",
|
|
1940
1958
|
"type": "number"
|
|
1941
1959
|
},
|
|
1960
|
+
"minRandomLength": {
|
|
1961
|
+
"default": 40,
|
|
1962
|
+
"description": "The minimum length of a random string to be ignored.",
|
|
1963
|
+
"markdownDescription": "The minimum length of a random string to be ignored.",
|
|
1964
|
+
"type": "number"
|
|
1965
|
+
},
|
|
1942
1966
|
"minWordLength": {
|
|
1943
1967
|
"default": 4,
|
|
1944
1968
|
"description": "The minimum length of a word before checking it against a dictionary.",
|
package/dist/CSpellReporter.d.ts
CHANGED
|
@@ -120,6 +120,18 @@ export interface ReporterConfigurationBase {
|
|
|
120
120
|
* @default 4
|
|
121
121
|
*/
|
|
122
122
|
minWordLength?: number;
|
|
123
|
+
/**
|
|
124
|
+
* Ignore sequences of characters that look like random strings.
|
|
125
|
+
*
|
|
126
|
+
* @default true
|
|
127
|
+
*/
|
|
128
|
+
ignoreRandomStrings?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The minimum length of a random string to be ignored.
|
|
131
|
+
*
|
|
132
|
+
* @default 40
|
|
133
|
+
*/
|
|
134
|
+
minRandomLength?: number;
|
|
123
135
|
}
|
|
124
136
|
interface ReporterCommandLineOptions {
|
|
125
137
|
/**
|
package/dist/configFields.js
CHANGED
|
@@ -22,6 +22,7 @@ exports.ConfigFields = {
|
|
|
22
22
|
ignorePaths: 'ignorePaths',
|
|
23
23
|
ignoreRegExpList: 'ignoreRegExpList',
|
|
24
24
|
ignoreWords: 'ignoreWords',
|
|
25
|
+
ignoreRandomStrings: 'ignoreRandomStrings',
|
|
25
26
|
import: 'import',
|
|
26
27
|
includeRegExpList: 'includeRegExpList',
|
|
27
28
|
language: 'language',
|
|
@@ -31,6 +32,7 @@ exports.ConfigFields = {
|
|
|
31
32
|
maxDuplicateProblems: 'maxDuplicateProblems',
|
|
32
33
|
maxNumberOfProblems: 'maxNumberOfProblems',
|
|
33
34
|
minWordLength: 'minWordLength',
|
|
35
|
+
minRandomLength: 'minRandomLength',
|
|
34
36
|
name: 'name',
|
|
35
37
|
noConfigSearch: 'noConfigSearch',
|
|
36
38
|
noSuggestDictionaries: 'noSuggestDictionaries',
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +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, MatchingFileType, 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 { defaultCSpellSettings } from './defaultConfigSettings.js';
|
|
6
7
|
export { defineConfig } from './defineConfig.js';
|
|
7
8
|
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';
|
|
8
9
|
export type { CharacterSet, CharacterSetCosts, DictionaryInformation, EditCosts } from './DictionaryInformation.js';
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defineConfig = exports.MessageTypes = exports.IssueType = exports.ConfigFields = void 0;
|
|
3
|
+
exports.defineConfig = exports.defaultCSpellSettings = exports.MessageTypes = exports.IssueType = exports.ConfigFields = void 0;
|
|
4
4
|
var configFields_js_1 = require("./configFields.js");
|
|
5
5
|
Object.defineProperty(exports, "ConfigFields", { enumerable: true, get: function () { return configFields_js_1.ConfigFields; } });
|
|
6
6
|
var CSpellReporter_js_1 = require("./CSpellReporter.js");
|
|
7
7
|
Object.defineProperty(exports, "IssueType", { enumerable: true, get: function () { return CSpellReporter_js_1.IssueType; } });
|
|
8
8
|
Object.defineProperty(exports, "MessageTypes", { enumerable: true, get: function () { return CSpellReporter_js_1.MessageTypes; } });
|
|
9
|
+
var defaultConfigSettings_js_1 = require("./defaultConfigSettings.js");
|
|
10
|
+
Object.defineProperty(exports, "defaultCSpellSettings", { enumerable: true, get: function () { return defaultConfigSettings_js_1.defaultCSpellSettings; } });
|
|
9
11
|
var defineConfig_js_1 = require("./defineConfig.js");
|
|
10
12
|
Object.defineProperty(exports, "defineConfig", { enumerable: true, get: function () { return defineConfig_js_1.defineConfig; } });
|
|
11
13
|
//# sourceMappingURL=index.js.map
|
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": "Types for cspell and cspell-lib",
|
|
9
9
|
"type": "commonjs",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"node": ">=18"
|
|
89
89
|
},
|
|
90
90
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "cac17fe7b993db5965aa441648b1c22cb5486929"
|
|
92
92
|
}
|