@cspell/eslint-plugin 9.0.1 → 9.0.2
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/dist/common/options.cjs +16 -0
- package/dist/common/options.d.cts +25 -3
- package/dist/generated/schema.cjs +88 -58
- package/dist/generated/schema.d.cts +84 -49
- package/dist/plugin/index.cjs +5 -1
- package/dist/plugin/index.d.cts +1 -0
- package/dist/spellCheckAST/spellCheckAST.cjs +2 -2
- package/package.json +15 -15
- package/dist/synckit/index.cjs +0 -9
- package/dist/synckit/index.d.cts +0 -6
package/dist/common/options.cjs
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultOptions = void 0;
|
|
4
|
+
exports.defineCSpellPluginOptions = defineCSpellPluginOptions;
|
|
5
|
+
exports.defineCSpellConfig = defineCSpellConfig;
|
|
4
6
|
exports.defaultOptions = {
|
|
5
7
|
numSuggestions: 8,
|
|
6
8
|
generateSuggestions: true,
|
|
7
9
|
autoFix: false,
|
|
8
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Helper to define the options for the cspell-eslint-plugin.
|
|
13
|
+
* @param options - The options to define.
|
|
14
|
+
*/
|
|
15
|
+
function defineCSpellPluginOptions(options) {
|
|
16
|
+
return options;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Helper to define the CSpell config section of the cspell-eslint-plugin.
|
|
20
|
+
* @param cfg - The CSpell config to define.
|
|
21
|
+
*/
|
|
22
|
+
function defineCSpellConfig(cfg) {
|
|
23
|
+
return cfg;
|
|
24
|
+
}
|
|
9
25
|
//# sourceMappingURL=options.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CSpellSettings, DictionaryDefinitionPreferred } from '@cspell/cspell-types';
|
|
1
|
+
import type { CSpellSettings, DictionaryDefinitionInline, DictionaryDefinitionPreferred, DictionaryDefinitionSimple } from '@cspell/cspell-types';
|
|
2
2
|
export interface Options extends Check {
|
|
3
3
|
/**
|
|
4
4
|
* Number of spelling suggestions to make.
|
|
@@ -22,8 +22,20 @@ export interface Options extends Check {
|
|
|
22
22
|
*/
|
|
23
23
|
debugMode?: boolean;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
interface DictOptions {
|
|
26
|
+
/**
|
|
27
|
+
* Strip case and accents to allow for case insensitive searches and
|
|
28
|
+
* words without accents.
|
|
29
|
+
*
|
|
30
|
+
* Note: this setting only applies to word lists. It has no-impact on trie
|
|
31
|
+
* dictionaries.
|
|
32
|
+
*/
|
|
33
|
+
supportNonStrictSearches?: boolean | undefined;
|
|
34
|
+
}
|
|
35
|
+
type DictBase = Pick<DictionaryDefinitionSimple, 'name' | 'description'> & DictOptions;
|
|
36
|
+
type SimpleInlineDefinition = DictBase & Partial<Pick<DictionaryDefinitionInline, 'words' | 'flagWords' | 'ignoreWords' | 'suggestWords'>>;
|
|
37
|
+
type DictionaryDefinition = (DictBase & Pick<DictionaryDefinitionPreferred, 'path'>) | SimpleInlineDefinition;
|
|
38
|
+
export type CSpellOptions = Pick<CSpellSettings, 'allowCompoundWords' | 'caseSensitive' | 'dictionaries' | 'enabled' | 'flagWords' | 'ignoreWords' | 'ignoreRegExpList' | 'includeRegExpList' | 'import' | 'language' | 'words'> & {
|
|
27
39
|
dictionaryDefinitions?: DictionaryDefinition[];
|
|
28
40
|
};
|
|
29
41
|
export type RequiredOptions = Required<Pick<Options, Exclude<keyof Options, 'debugMode'>>> & Pick<Options, 'debugMode'>;
|
|
@@ -152,5 +164,15 @@ export type ScopeSelectorEntry = [ScopeSelector, boolean];
|
|
|
152
164
|
* A list of scope selectors.
|
|
153
165
|
*/
|
|
154
166
|
export type ScopeSelectorList = ScopeSelectorEntry[];
|
|
167
|
+
/**
|
|
168
|
+
* Helper to define the options for the cspell-eslint-plugin.
|
|
169
|
+
* @param options - The options to define.
|
|
170
|
+
*/
|
|
171
|
+
export declare function defineCSpellPluginOptions(options: Partial<Options>): Partial<Options>;
|
|
172
|
+
/**
|
|
173
|
+
* Helper to define the CSpell config section of the cspell-eslint-plugin.
|
|
174
|
+
* @param cfg - The CSpell config to define.
|
|
175
|
+
*/
|
|
176
|
+
export declare function defineCSpellConfig(cfg: CSpellOptions): CSpellOptions;
|
|
155
177
|
export {};
|
|
156
178
|
//# sourceMappingURL=options.d.cts.map
|
|
@@ -81,6 +81,12 @@ exports.optionsSchema = {
|
|
|
81
81
|
"markdownDescription": "True to enable compound word checking.",
|
|
82
82
|
"type": "boolean"
|
|
83
83
|
},
|
|
84
|
+
"caseSensitive": {
|
|
85
|
+
"default": false,
|
|
86
|
+
"description": "Determines if words must match case and accent rules.\n\nSee [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.\n\n- `false` - Case is ignored and accents can be missing on the entire word. Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
|
|
87
|
+
"markdownDescription": "Determines if words must match case and accent rules.\n\nSee [Case Sensitivity](https://cspell.org/docs/case-sensitive/) for more details.\n\n- `false` - Case is ignored and accents can be missing on the entire word.\n Incorrect accents or partially missing accents will be marked as incorrect.\n- `true` - Case and accents are enforced.",
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
},
|
|
84
90
|
"dictionaries": {
|
|
85
91
|
"description": "Optional list of dictionaries to use. Each entry should match the name of the dictionary.\n\nTo remove a dictionary from the list, add `!` before the name.\n\nFor example, `!typescript` will turn off the dictionary with the name `typescript`.\n\nSee the [Dictionaries](https://cspell.org/docs/dictionaries/) and [Custom Dictionaries](https://cspell.org/docs/dictionaries-custom/) for more details.",
|
|
86
92
|
"items": {
|
|
@@ -106,70 +112,94 @@ exports.optionsSchema = {
|
|
|
106
112
|
},
|
|
107
113
|
"dictionaryDefinitions": {
|
|
108
114
|
"items": {
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
"noSuggest": {
|
|
128
|
-
"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.",
|
|
129
|
-
"markdownDescription": "Indicate that suggestions should not come from this dictionary.\nWords in this dictionary are considered correct, but will not be\nused when making spell correction suggestions.\n\nNote: if a word is suggested by another dictionary, but found in\nthis dictionary, it will be removed from the set of\npossible suggestions.",
|
|
130
|
-
"type": "boolean"
|
|
131
|
-
},
|
|
132
|
-
"path": {
|
|
133
|
-
"description": "Path to the file.",
|
|
134
|
-
"markdownDescription": "Path to the file.",
|
|
135
|
-
"type": "string"
|
|
136
|
-
},
|
|
137
|
-
"repMap": {
|
|
138
|
-
"description": "Replacement pairs.",
|
|
139
|
-
"items": {
|
|
140
|
-
"items": {
|
|
115
|
+
"anyOf": [
|
|
116
|
+
{
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"properties": {
|
|
119
|
+
"description": {
|
|
120
|
+
"description": "Optional description of the contents / purpose of the dictionary.",
|
|
121
|
+
"markdownDescription": "Optional description of the contents / purpose of the dictionary.",
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"name": {
|
|
125
|
+
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
126
|
+
"markdownDescription": "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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"path": {
|
|
130
|
+
"description": "Path to the file.",
|
|
131
|
+
"markdownDescription": "Path to the file.",
|
|
141
132
|
"type": "string"
|
|
142
133
|
},
|
|
143
|
-
"
|
|
144
|
-
|
|
145
|
-
|
|
134
|
+
"supportNonStrictSearches": {
|
|
135
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
136
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
137
|
+
"type": "boolean"
|
|
138
|
+
}
|
|
146
139
|
},
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
"type": {
|
|
151
|
-
"default": "S",
|
|
152
|
-
"description": "Type of file:\n- S - single word per line,\n- W - each line can contain one or more words separated by space,\n- C - each line is treated like code (Camel Case is allowed).\n\nDefault is S.\n\nC is the slowest to load due to the need to split each line based upon code splitting rules.\n\nNote: this settings does not apply to inline dictionaries or `.trie` files.",
|
|
153
|
-
"enum": [
|
|
154
|
-
"S",
|
|
155
|
-
"W",
|
|
156
|
-
"C",
|
|
157
|
-
"T"
|
|
140
|
+
"required": [
|
|
141
|
+
"name",
|
|
142
|
+
"path"
|
|
158
143
|
],
|
|
159
|
-
"
|
|
160
|
-
"type": "string"
|
|
144
|
+
"type": "object"
|
|
161
145
|
},
|
|
162
|
-
|
|
163
|
-
"
|
|
164
|
-
"
|
|
165
|
-
|
|
146
|
+
{
|
|
147
|
+
"additionalProperties": false,
|
|
148
|
+
"properties": {
|
|
149
|
+
"description": {
|
|
150
|
+
"description": "Optional description of the contents / purpose of the dictionary.",
|
|
151
|
+
"markdownDescription": "Optional description of the contents / purpose of the dictionary.",
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"flagWords": {
|
|
155
|
+
"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\" ] ```",
|
|
156
|
+
"items": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
},
|
|
159
|
+
"markdownDescription": "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:\n```ts\n\"flagWords\": [\n \"color: colour\",\n \"incase: in case, encase\",\n \"canot->cannot\",\n \"cancelled->canceled\"\n]\n```",
|
|
160
|
+
"type": "array"
|
|
161
|
+
},
|
|
162
|
+
"ignoreWords": {
|
|
163
|
+
"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`.",
|
|
164
|
+
"items": {
|
|
165
|
+
"type": "string"
|
|
166
|
+
},
|
|
167
|
+
"markdownDescription": "List of words to be ignored. An ignored word will not show up as an error, even if it is\nalso in the `flagWords`.",
|
|
168
|
+
"type": "array"
|
|
169
|
+
},
|
|
170
|
+
"name": {
|
|
171
|
+
"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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
172
|
+
"markdownDescription": "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 `*`, `!`, `;`, `,`, `{`, `}`, `[`, `]`, `~`.",
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"suggestWords": {
|
|
176
|
+
"description": "A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix) - `word: suggestion` - `word->suggestion`\n- Multiple suggestions (not auto fixable) - `word: first, second, third` - `word->first, second, third`",
|
|
177
|
+
"items": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"markdownDescription": "A list of suggested replacements for words.\nSuggested words provide a way to make preferred suggestions on word replacements.\nTo hint at a preferred change, but not to require it.\n\nFormat of `suggestWords`\n- Single suggestion (possible auto fix)\n - `word: suggestion`\n - `word->suggestion`\n- Multiple suggestions (not auto fixable)\n - `word: first, second, third`\n - `word->first, second, third`",
|
|
181
|
+
"type": "array"
|
|
182
|
+
},
|
|
183
|
+
"supportNonStrictSearches": {
|
|
184
|
+
"description": "Strip case and accents to allow for case insensitive searches and words without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie dictionaries.",
|
|
185
|
+
"markdownDescription": "Strip case and accents to allow for case insensitive searches and\nwords without accents.\n\nNote: this setting only applies to word lists. It has no-impact on trie\ndictionaries.",
|
|
186
|
+
"type": "boolean"
|
|
187
|
+
},
|
|
188
|
+
"words": {
|
|
189
|
+
"description": "List of words to be considered correct.",
|
|
190
|
+
"items": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"markdownDescription": "List of words to be considered correct.",
|
|
194
|
+
"type": "array"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": [
|
|
198
|
+
"name"
|
|
199
|
+
],
|
|
200
|
+
"type": "object"
|
|
166
201
|
}
|
|
167
|
-
|
|
168
|
-
"required": [
|
|
169
|
-
"name",
|
|
170
|
-
"path"
|
|
171
|
-
],
|
|
172
|
-
"type": "object"
|
|
202
|
+
]
|
|
173
203
|
},
|
|
174
204
|
"type": "array"
|
|
175
205
|
},
|
|
@@ -76,6 +76,12 @@ export declare const optionsSchema: {
|
|
|
76
76
|
markdownDescription: string;
|
|
77
77
|
type: string;
|
|
78
78
|
};
|
|
79
|
+
caseSensitive: {
|
|
80
|
+
default: boolean;
|
|
81
|
+
description: string;
|
|
82
|
+
markdownDescription: string;
|
|
83
|
+
type: string;
|
|
84
|
+
};
|
|
79
85
|
dictionaries: {
|
|
80
86
|
description: string;
|
|
81
87
|
items: {
|
|
@@ -93,62 +99,91 @@ export declare const optionsSchema: {
|
|
|
93
99
|
};
|
|
94
100
|
dictionaryDefinitions: {
|
|
95
101
|
items: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
description:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
102
|
+
anyOf: ({
|
|
103
|
+
additionalProperties: boolean;
|
|
104
|
+
properties: {
|
|
105
|
+
description: {
|
|
106
|
+
description: string;
|
|
107
|
+
markdownDescription: string;
|
|
108
|
+
type: string;
|
|
109
|
+
};
|
|
110
|
+
name: {
|
|
111
|
+
description: string;
|
|
112
|
+
markdownDescription: string;
|
|
113
|
+
type: string;
|
|
114
|
+
};
|
|
115
|
+
path: {
|
|
116
|
+
description: string;
|
|
117
|
+
markdownDescription: string;
|
|
118
|
+
type: string;
|
|
119
|
+
};
|
|
120
|
+
supportNonStrictSearches: {
|
|
121
|
+
description: string;
|
|
122
|
+
markdownDescription: string;
|
|
123
|
+
type: string;
|
|
124
|
+
};
|
|
125
|
+
flagWords?: never;
|
|
126
|
+
ignoreWords?: never;
|
|
127
|
+
suggestWords?: never;
|
|
128
|
+
words?: never;
|
|
123
129
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
130
|
+
required: string[];
|
|
131
|
+
type: string;
|
|
132
|
+
} | {
|
|
133
|
+
additionalProperties: boolean;
|
|
134
|
+
properties: {
|
|
135
|
+
description: {
|
|
136
|
+
description: string;
|
|
137
|
+
markdownDescription: string;
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
flagWords: {
|
|
141
|
+
description: string;
|
|
127
142
|
items: {
|
|
128
143
|
type: string;
|
|
129
144
|
};
|
|
130
|
-
|
|
131
|
-
minItems: number;
|
|
145
|
+
markdownDescription: string;
|
|
132
146
|
type: string;
|
|
133
147
|
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
ignoreWords: {
|
|
149
|
+
description: string;
|
|
150
|
+
items: {
|
|
151
|
+
type: string;
|
|
152
|
+
};
|
|
153
|
+
markdownDescription: string;
|
|
154
|
+
type: string;
|
|
155
|
+
};
|
|
156
|
+
name: {
|
|
157
|
+
description: string;
|
|
158
|
+
markdownDescription: string;
|
|
159
|
+
type: string;
|
|
160
|
+
};
|
|
161
|
+
suggestWords: {
|
|
162
|
+
description: string;
|
|
163
|
+
items: {
|
|
164
|
+
type: string;
|
|
165
|
+
};
|
|
166
|
+
markdownDescription: string;
|
|
167
|
+
type: string;
|
|
168
|
+
};
|
|
169
|
+
supportNonStrictSearches: {
|
|
170
|
+
description: string;
|
|
171
|
+
markdownDescription: string;
|
|
172
|
+
type: string;
|
|
173
|
+
};
|
|
174
|
+
words: {
|
|
175
|
+
description: string;
|
|
176
|
+
items: {
|
|
177
|
+
type: string;
|
|
178
|
+
};
|
|
179
|
+
markdownDescription: string;
|
|
180
|
+
type: string;
|
|
181
|
+
};
|
|
182
|
+
path?: never;
|
|
148
183
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
184
|
+
required: string[];
|
|
185
|
+
type: string;
|
|
186
|
+
})[];
|
|
152
187
|
};
|
|
153
188
|
type: string;
|
|
154
189
|
};
|
package/dist/plugin/index.cjs
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rules = exports.meta = exports.default = exports.configs = void 0;
|
|
3
|
+
exports.rules = exports.meta = exports.default = exports.configs = exports.defineCSpellPluginOptions = exports.defineCSpellConfig = exports.defaultOptions = void 0;
|
|
4
|
+
var options_cjs_1 = require("../common/options.cjs");
|
|
5
|
+
Object.defineProperty(exports, "defaultOptions", { enumerable: true, get: function () { return options_cjs_1.defaultOptions; } });
|
|
6
|
+
Object.defineProperty(exports, "defineCSpellConfig", { enumerable: true, get: function () { return options_cjs_1.defineCSpellConfig; } });
|
|
7
|
+
Object.defineProperty(exports, "defineCSpellPluginOptions", { enumerable: true, get: function () { return options_cjs_1.defineCSpellPluginOptions; } });
|
|
4
8
|
var cspell_eslint_plugin_cjs_1 = require("./cspell-eslint-plugin.cjs");
|
|
5
9
|
Object.defineProperty(exports, "configs", { enumerable: true, get: function () { return cspell_eslint_plugin_cjs_1.configs; } });
|
|
6
10
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return cspell_eslint_plugin_cjs_1.plugin; } });
|
package/dist/plugin/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type { Options } from '../common/options.cjs';
|
|
2
|
+
export { defaultOptions, defineCSpellConfig, defineCSpellPluginOptions } from '../common/options.cjs';
|
|
2
3
|
export { configs, plugin as default, meta, rules } from './cspell-eslint-plugin.cjs';
|
|
3
4
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.spellCheckAST = spellCheckAST;
|
|
7
7
|
// cspell:ignore TSESTree
|
|
8
8
|
const node_assert_1 = __importDefault(require("node:assert"));
|
|
9
|
+
const synckit_1 = require("synckit");
|
|
9
10
|
const logger_cjs_1 = require("../common/logger.cjs");
|
|
10
|
-
const index_cjs_1 = require("../synckit/index.cjs");
|
|
11
11
|
const customScopes_cjs_1 = require("./customScopes.cjs");
|
|
12
12
|
const scope_cjs_1 = require("./scope.cjs");
|
|
13
13
|
const walkTree_cjs_1 = require("./walkTree.cjs");
|
|
14
|
-
const spellCheck = (0,
|
|
14
|
+
const spellCheck = (0, synckit_1.createSyncFn)(require.resolve('./worker.mjs'));
|
|
15
15
|
const isDebugModeExtended = false;
|
|
16
16
|
const forceLogging = false;
|
|
17
17
|
const skipCheck = process.env.CSPELL_ESLINT_SKIP_CHECK || false;
|
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.0.2",
|
|
8
8
|
"description": "CSpell ESLint plugin",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"cspell",
|
|
@@ -79,35 +79,35 @@
|
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@eslint/eslintrc": "^3.3.1",
|
|
82
|
-
"@eslint/js": "^9.
|
|
82
|
+
"@eslint/js": "^9.27.0",
|
|
83
83
|
"@internal/cspell-eslint-plugin-scripts": "",
|
|
84
84
|
"@types/estree": "^1.0.7",
|
|
85
85
|
"@types/mocha": "^10.0.10",
|
|
86
|
-
"@typescript-eslint/parser": "^8.32.
|
|
87
|
-
"@typescript-eslint/types": "^8.32.
|
|
88
|
-
"eslint": "^9.
|
|
89
|
-
"eslint-plugin-jsonc": "^2.20.
|
|
90
|
-
"eslint-plugin-mdx": "^3.4.
|
|
91
|
-
"eslint-plugin-n": "^17.
|
|
86
|
+
"@typescript-eslint/parser": "^8.32.1",
|
|
87
|
+
"@typescript-eslint/types": "^8.32.1",
|
|
88
|
+
"eslint": "^9.27.0",
|
|
89
|
+
"eslint-plugin-jsonc": "^2.20.1",
|
|
90
|
+
"eslint-plugin-mdx": "^3.4.2",
|
|
91
|
+
"eslint-plugin-n": "^17.18.0",
|
|
92
92
|
"eslint-plugin-react": "^7.37.5",
|
|
93
93
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
94
94
|
"eslint-plugin-yml": "^1.18.0",
|
|
95
95
|
"globals": "^16.1.0",
|
|
96
96
|
"jsonc-eslint-parser": "^2.4.0",
|
|
97
|
-
"mocha": "^11.
|
|
97
|
+
"mocha": "^11.4.0",
|
|
98
98
|
"ts-json-schema-generator": "^2.4.0",
|
|
99
99
|
"typescript": "~5.8.3",
|
|
100
|
-
"typescript-eslint": "^8.32.
|
|
100
|
+
"typescript-eslint": "^8.32.1",
|
|
101
101
|
"yaml-eslint-parser": "^1.3.0"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
-
"@cspell/cspell-types": "9.0.
|
|
105
|
-
"@cspell/url": "9.0.
|
|
106
|
-
"cspell-lib": "9.0.
|
|
107
|
-
"synckit": "^0.11.
|
|
104
|
+
"@cspell/cspell-types": "9.0.2",
|
|
105
|
+
"@cspell/url": "9.0.2",
|
|
106
|
+
"cspell-lib": "9.0.2",
|
|
107
|
+
"synckit": "^0.11.6"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"eslint": "^7 || ^8 || ^9"
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "39dbd9ab9b8943a023d9eda7f65f81e822f939b5"
|
|
113
113
|
}
|
package/dist/synckit/index.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createSyncFn = createSyncFn;
|
|
4
|
-
const synckit_1 = require("synckit");
|
|
5
|
-
function createSyncFn(workerPath, timeoutOrOptions) {
|
|
6
|
-
return (0, synckit_1.createSyncFn)(workerPath, timeoutOrOptions);
|
|
7
|
-
}
|
|
8
|
-
// cspell:ignore Syncify
|
|
9
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/synckit/index.d.cts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
type AnyFn = (...args: any[]) => any;
|
|
2
|
-
type Syncify<T extends AnyFn> = (...args: Parameters<T>) => Awaited<ReturnType<T>>;
|
|
3
|
-
export type CreateSyncFn<T extends AnyFn> = (workerPath: URL | string, timeoutOrOptions?: number) => Syncify<T>;
|
|
4
|
-
export declare function createSyncFn<T extends AnyFn>(workerPath: URL | string, timeoutOrOptions?: number): Syncify<T>;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=index.d.cts.map
|