@cspell/cspell-types 9.0.1 → 9.1.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 +108 -98
- package/dist/Parser/index.d.mts +2 -127
- package/dist/Parser/index.d.ts +2 -127
- package/dist/Parser/index.js +0 -18
- package/dist/index-B8R3-rR5.d.mts +129 -0
- package/dist/index-CY-3Hv0u.d.ts +129 -0
- package/dist/index.d.mts +1581 -1397
- package/dist/index.d.ts +1581 -1397
- package/dist/index.js +87 -107
- package/dist/index.mjs +83 -77
- package/package.json +4 -7
package/dist/index.js
CHANGED
|
@@ -1,116 +1,96 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
ConfigFields: () => ConfigFields,
|
|
24
|
-
IssueType: () => IssueType,
|
|
25
|
-
MessageTypes: () => MessageTypes,
|
|
26
|
-
defaultCSpellSettings: () => defaultCSpellSettings,
|
|
27
|
-
defineConfig: () => defineConfig
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(index_exports);
|
|
30
1
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
2
|
+
//#region src/configFields.ts
|
|
3
|
+
const ConfigFields = {
|
|
4
|
+
allowCompoundWords: "allowCompoundWords",
|
|
5
|
+
cache: "cache",
|
|
6
|
+
caseSensitive: "caseSensitive",
|
|
7
|
+
description: "description",
|
|
8
|
+
dictionaries: "dictionaries",
|
|
9
|
+
dictionaryDefinitions: "dictionaryDefinitions",
|
|
10
|
+
enabled: "enabled",
|
|
11
|
+
enabledLanguageIds: "enabledLanguageIds",
|
|
12
|
+
enableFiletypes: "enableFiletypes",
|
|
13
|
+
enabledFileTypes: "enabledFileTypes",
|
|
14
|
+
enableGlobDot: "enableGlobDot",
|
|
15
|
+
failFast: "failFast",
|
|
16
|
+
features: "features",
|
|
17
|
+
files: "files",
|
|
18
|
+
flagWords: "flagWords",
|
|
19
|
+
gitignoreRoot: "gitignoreRoot",
|
|
20
|
+
globRoot: "globRoot",
|
|
21
|
+
ignorePaths: "ignorePaths",
|
|
22
|
+
ignoreRegExpList: "ignoreRegExpList",
|
|
23
|
+
ignoreWords: "ignoreWords",
|
|
24
|
+
ignoreRandomStrings: "ignoreRandomStrings",
|
|
25
|
+
import: "import",
|
|
26
|
+
includeRegExpList: "includeRegExpList",
|
|
27
|
+
language: "language",
|
|
28
|
+
languageId: "languageId",
|
|
29
|
+
languageSettings: "languageSettings",
|
|
30
|
+
loadDefaultConfiguration: "loadDefaultConfiguration",
|
|
31
|
+
maxDuplicateProblems: "maxDuplicateProblems",
|
|
32
|
+
maxNumberOfProblems: "maxNumberOfProblems",
|
|
33
|
+
minWordLength: "minWordLength",
|
|
34
|
+
minRandomLength: "minRandomLength",
|
|
35
|
+
name: "name",
|
|
36
|
+
noConfigSearch: "noConfigSearch",
|
|
37
|
+
noSuggestDictionaries: "noSuggestDictionaries",
|
|
38
|
+
numSuggestions: "numSuggestions",
|
|
39
|
+
overrides: "overrides",
|
|
40
|
+
patterns: "patterns",
|
|
41
|
+
pnpFiles: "pnpFiles",
|
|
42
|
+
readonly: "readonly",
|
|
43
|
+
reporters: "reporters",
|
|
44
|
+
showStatus: "showStatus",
|
|
45
|
+
spellCheckDelayMs: "spellCheckDelayMs",
|
|
46
|
+
suggestionNumChanges: "suggestionNumChanges",
|
|
47
|
+
suggestionsTimeout: "suggestionsTimeout",
|
|
48
|
+
suggestWords: "suggestWords",
|
|
49
|
+
unknownWords: "unknownWords",
|
|
50
|
+
useGitignore: "useGitignore",
|
|
51
|
+
usePnP: "usePnP",
|
|
52
|
+
userWords: "userWords",
|
|
53
|
+
validateDirectives: "validateDirectives",
|
|
54
|
+
words: "words",
|
|
55
|
+
parser: "parser"
|
|
85
56
|
};
|
|
86
57
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/CSpellReporter.ts
|
|
60
|
+
let IssueType = /* @__PURE__ */ function(IssueType$1) {
|
|
61
|
+
IssueType$1[IssueType$1["spelling"] = 0] = "spelling";
|
|
62
|
+
IssueType$1[IssueType$1["directive"] = 1] = "directive";
|
|
63
|
+
return IssueType$1;
|
|
64
|
+
}({});
|
|
65
|
+
const MessageTypes = {
|
|
66
|
+
Debug: "Debug",
|
|
67
|
+
Info: "Info",
|
|
68
|
+
Warning: "Warning"
|
|
69
|
+
};
|
|
70
|
+
const unknownWordsChoices = {
|
|
71
|
+
ReportAll: "report-all",
|
|
72
|
+
ReportSimple: "report-simple",
|
|
73
|
+
ReportCommonTypos: "report-common-typos",
|
|
74
|
+
ReportFlagged: "report-flagged"
|
|
97
75
|
};
|
|
98
76
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/defaultConfigSettings.ts
|
|
79
|
+
const defaultCSpellSettings = {
|
|
80
|
+
ignoreRandomStrings: true,
|
|
81
|
+
minRandomLength: 40
|
|
103
82
|
};
|
|
104
83
|
|
|
105
|
-
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/defineConfig.ts
|
|
106
86
|
function defineConfig(config) {
|
|
107
|
-
|
|
87
|
+
return config;
|
|
108
88
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
89
|
+
|
|
90
|
+
//#endregion
|
|
91
|
+
exports.ConfigFields = ConfigFields;
|
|
92
|
+
exports.IssueType = IssueType;
|
|
93
|
+
exports.MessageTypes = MessageTypes;
|
|
94
|
+
exports.defaultCSpellSettings = defaultCSpellSettings;
|
|
95
|
+
exports.defineConfig = defineConfig;
|
|
96
|
+
exports.unknownWordsChoices = unknownWordsChoices;
|
package/dist/index.mjs
CHANGED
|
@@ -1,85 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
//#region src/configFields.ts
|
|
2
|
+
const ConfigFields = {
|
|
3
|
+
allowCompoundWords: "allowCompoundWords",
|
|
4
|
+
cache: "cache",
|
|
5
|
+
caseSensitive: "caseSensitive",
|
|
6
|
+
description: "description",
|
|
7
|
+
dictionaries: "dictionaries",
|
|
8
|
+
dictionaryDefinitions: "dictionaryDefinitions",
|
|
9
|
+
enabled: "enabled",
|
|
10
|
+
enabledLanguageIds: "enabledLanguageIds",
|
|
11
|
+
enableFiletypes: "enableFiletypes",
|
|
12
|
+
enabledFileTypes: "enabledFileTypes",
|
|
13
|
+
enableGlobDot: "enableGlobDot",
|
|
14
|
+
failFast: "failFast",
|
|
15
|
+
features: "features",
|
|
16
|
+
files: "files",
|
|
17
|
+
flagWords: "flagWords",
|
|
18
|
+
gitignoreRoot: "gitignoreRoot",
|
|
19
|
+
globRoot: "globRoot",
|
|
20
|
+
ignorePaths: "ignorePaths",
|
|
21
|
+
ignoreRegExpList: "ignoreRegExpList",
|
|
22
|
+
ignoreWords: "ignoreWords",
|
|
23
|
+
ignoreRandomStrings: "ignoreRandomStrings",
|
|
24
|
+
import: "import",
|
|
25
|
+
includeRegExpList: "includeRegExpList",
|
|
26
|
+
language: "language",
|
|
27
|
+
languageId: "languageId",
|
|
28
|
+
languageSettings: "languageSettings",
|
|
29
|
+
loadDefaultConfiguration: "loadDefaultConfiguration",
|
|
30
|
+
maxDuplicateProblems: "maxDuplicateProblems",
|
|
31
|
+
maxNumberOfProblems: "maxNumberOfProblems",
|
|
32
|
+
minWordLength: "minWordLength",
|
|
33
|
+
minRandomLength: "minRandomLength",
|
|
34
|
+
name: "name",
|
|
35
|
+
noConfigSearch: "noConfigSearch",
|
|
36
|
+
noSuggestDictionaries: "noSuggestDictionaries",
|
|
37
|
+
numSuggestions: "numSuggestions",
|
|
38
|
+
overrides: "overrides",
|
|
39
|
+
patterns: "patterns",
|
|
40
|
+
pnpFiles: "pnpFiles",
|
|
41
|
+
readonly: "readonly",
|
|
42
|
+
reporters: "reporters",
|
|
43
|
+
showStatus: "showStatus",
|
|
44
|
+
spellCheckDelayMs: "spellCheckDelayMs",
|
|
45
|
+
suggestionNumChanges: "suggestionNumChanges",
|
|
46
|
+
suggestionsTimeout: "suggestionsTimeout",
|
|
47
|
+
suggestWords: "suggestWords",
|
|
48
|
+
unknownWords: "unknownWords",
|
|
49
|
+
useGitignore: "useGitignore",
|
|
50
|
+
usePnP: "usePnP",
|
|
51
|
+
userWords: "userWords",
|
|
52
|
+
validateDirectives: "validateDirectives",
|
|
53
|
+
words: "words",
|
|
54
|
+
parser: "parser"
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/CSpellReporter.ts
|
|
59
|
+
let IssueType = /* @__PURE__ */ function(IssueType$1) {
|
|
60
|
+
IssueType$1[IssueType$1["spelling"] = 0] = "spelling";
|
|
61
|
+
IssueType$1[IssueType$1["directive"] = 1] = "directive";
|
|
62
|
+
return IssueType$1;
|
|
63
|
+
}({});
|
|
64
|
+
const MessageTypes = {
|
|
65
|
+
Debug: "Debug",
|
|
66
|
+
Info: "Info",
|
|
67
|
+
Warning: "Warning"
|
|
68
|
+
};
|
|
69
|
+
const unknownWordsChoices = {
|
|
70
|
+
ReportAll: "report-all",
|
|
71
|
+
ReportSimple: "report-simple",
|
|
72
|
+
ReportCommonTypos: "report-common-typos",
|
|
73
|
+
ReportFlagged: "report-flagged"
|
|
67
74
|
};
|
|
68
75
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/defaultConfigSettings.ts
|
|
78
|
+
const defaultCSpellSettings = {
|
|
79
|
+
ignoreRandomStrings: true,
|
|
80
|
+
minRandomLength: 40
|
|
73
81
|
};
|
|
74
82
|
|
|
75
|
-
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/defineConfig.ts
|
|
76
85
|
function defineConfig(config) {
|
|
77
|
-
|
|
86
|
+
return config;
|
|
78
87
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
defaultCSpellSettings,
|
|
84
|
-
defineConfig
|
|
85
|
-
};
|
|
88
|
+
|
|
89
|
+
//#endregion
|
|
90
|
+
export { ConfigFields, IssueType, MessageTypes, defaultCSpellSettings, defineConfig, unknownWordsChoices };
|
|
91
|
+
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "9.0
|
|
7
|
+
"version": "9.1.0",
|
|
8
8
|
"description": "Types for cspell and cspell-lib",
|
|
9
9
|
"type": "commonjs",
|
|
10
10
|
"sideEffects": false,
|
|
@@ -22,9 +22,6 @@
|
|
|
22
22
|
"./cspell.schema.json": {
|
|
23
23
|
"import": "./cspell.schema.json",
|
|
24
24
|
"require": "./cspell.schema.json"
|
|
25
|
-
},
|
|
26
|
-
"./ajv.config.js": {
|
|
27
|
-
"require": "./ajv.config.js"
|
|
28
25
|
}
|
|
29
26
|
},
|
|
30
27
|
"types": "index.d.ts",
|
|
@@ -53,9 +50,9 @@
|
|
|
53
50
|
},
|
|
54
51
|
"scripts": {
|
|
55
52
|
"clean": "shx rm -rf dist temp coverage \"*.tsbuildInfo\"",
|
|
56
|
-
"build": "pnpm build:tsc && pnpm build:
|
|
53
|
+
"build": "pnpm build:tsc && pnpm build:tsdown && pnpm run build-schema",
|
|
57
54
|
"build:tsc": "tsc -p tsconfig.json",
|
|
58
|
-
"build:
|
|
55
|
+
"build:tsdown": "tsdown --entry src/index.ts --entry src/Parser/index.ts --format cjs,esm --dts --out-dir dist",
|
|
59
56
|
"build-schema": "pnpm build-cspell-schema",
|
|
60
57
|
"clean-build": "pnpm run clean && pnpm run build",
|
|
61
58
|
"coverage": "vitest run --coverage",
|
|
@@ -89,5 +86,5 @@
|
|
|
89
86
|
"node": ">=20"
|
|
90
87
|
},
|
|
91
88
|
"homepage": "https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-types#readme",
|
|
92
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "a7ed42a31debbc86faa4a4ac2c686bdffe5b26b6"
|
|
93
90
|
}
|