@cspell/eslint-plugin 9.0.2 → 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.
@@ -7,6 +7,7 @@ export interface LoggerOptions {
7
7
  enabled?: boolean;
8
8
  useAsync?: boolean;
9
9
  }
10
+ type Log = (...p: Parameters<typeof console.log>) => void;
10
11
  export declare class Logger {
11
12
  readonly options: LoggerOptions;
12
13
  readonly logFile: string;
@@ -16,7 +17,8 @@ export declare class Logger {
16
17
  useAsync: boolean;
17
18
  constructor(options: LoggerOptions);
18
19
  private _log;
19
- log: (message?: any, ...optionalParams: any[]) => void;
20
+ log: Log;
20
21
  }
21
22
  export declare function getDefaultLogger(): Logger;
23
+ export {};
22
24
  //# sourceMappingURL=logger.d.cts.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
+ // NOTICE: This file is autogenerated.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.optionsSchema = void 0;
4
- // NOTICE: This file is autogenerated.
5
5
  exports.optionsSchema = {
6
6
  "$schema": "http://json-schema.org/draft-07/schema#",
7
7
  "additionalProperties": false,
@@ -1,367 +1,3 @@
1
- export declare const optionsSchema: {
2
- $schema: string;
3
- additionalProperties: boolean;
4
- definitions: {};
5
- properties: {
6
- autoFix: {
7
- default: boolean;
8
- description: string;
9
- markdownDescription: string;
10
- type: string;
11
- };
12
- checkComments: {
13
- default: boolean;
14
- description: string;
15
- markdownDescription: string;
16
- type: string;
17
- };
18
- checkIdentifiers: {
19
- default: boolean;
20
- description: string;
21
- markdownDescription: string;
22
- type: string;
23
- };
24
- checkJSXText: {
25
- default: boolean;
26
- description: string;
27
- markdownDescription: string;
28
- type: string;
29
- };
30
- checkScope: {
31
- description: string;
32
- items: {
33
- description: string;
34
- items: ({
35
- description: string;
36
- markdownDescription: string;
37
- type: string;
38
- } | {
39
- type: string;
40
- description?: never;
41
- markdownDescription?: never;
42
- })[];
43
- markdownDescription: string;
44
- maxItems: number;
45
- minItems: number;
46
- type: string;
47
- };
48
- markdownDescription: string;
49
- type: string;
50
- };
51
- checkStringTemplates: {
52
- default: boolean;
53
- description: string;
54
- markdownDescription: string;
55
- type: string;
56
- };
57
- checkStrings: {
58
- default: boolean;
59
- description: string;
60
- markdownDescription: string;
61
- type: string;
62
- };
63
- configFile: {
64
- description: string;
65
- markdownDescription: string;
66
- type: string;
67
- };
68
- cspell: {
69
- additionalProperties: boolean;
70
- description: string;
71
- markdownDescription: string;
72
- properties: {
73
- allowCompoundWords: {
74
- default: boolean;
75
- description: string;
76
- markdownDescription: string;
77
- type: string;
78
- };
79
- caseSensitive: {
80
- default: boolean;
81
- description: string;
82
- markdownDescription: string;
83
- type: string;
84
- };
85
- dictionaries: {
86
- description: string;
87
- items: {
88
- anyOf: {
89
- description: string;
90
- markdownDescription: string;
91
- pattern: string;
92
- type: string;
93
- }[];
94
- description: string;
95
- markdownDescription: string;
96
- };
97
- markdownDescription: string;
98
- type: string;
99
- };
100
- dictionaryDefinitions: {
101
- items: {
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;
129
- };
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;
142
- items: {
143
- type: string;
144
- };
145
- markdownDescription: string;
146
- type: string;
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;
183
- };
184
- required: string[];
185
- type: string;
186
- })[];
187
- };
188
- type: string;
189
- };
190
- enabled: {
191
- default: boolean;
192
- description: string;
193
- markdownDescription: string;
194
- type: string;
195
- };
196
- flagWords: {
197
- description: string;
198
- items: {
199
- type: string;
200
- };
201
- markdownDescription: string;
202
- type: string;
203
- };
204
- ignoreRegExpList: {
205
- description: string;
206
- items: {
207
- anyOf: ({
208
- type: string;
209
- description?: never;
210
- markdownDescription?: never;
211
- enum?: never;
212
- } | {
213
- description: string;
214
- markdownDescription: string;
215
- type: string;
216
- enum?: never;
217
- } | {
218
- enum: string[];
219
- type: string;
220
- description?: never;
221
- markdownDescription?: never;
222
- })[];
223
- description: string;
224
- markdownDescription: string;
225
- };
226
- markdownDescription: string;
227
- type: string;
228
- };
229
- ignoreWords: {
230
- description: string;
231
- items: {
232
- type: string;
233
- };
234
- markdownDescription: string;
235
- type: string;
236
- };
237
- import: {
238
- anyOf: ({
239
- description: string;
240
- markdownDescription: string;
241
- type: string;
242
- items?: never;
243
- } | {
244
- items: {
245
- description: string;
246
- markdownDescription: string;
247
- type: string;
248
- };
249
- type: string;
250
- description?: never;
251
- markdownDescription?: never;
252
- })[];
253
- description: string;
254
- markdownDescription: string;
255
- };
256
- includeRegExpList: {
257
- description: string;
258
- items: {
259
- anyOf: ({
260
- type: string;
261
- description?: never;
262
- markdownDescription?: never;
263
- enum?: never;
264
- } | {
265
- description: string;
266
- markdownDescription: string;
267
- type: string;
268
- enum?: never;
269
- } | {
270
- enum: string[];
271
- type: string;
272
- description?: never;
273
- markdownDescription?: never;
274
- })[];
275
- description: string;
276
- markdownDescription: string;
277
- };
278
- markdownDescription: string;
279
- type: string;
280
- };
281
- language: {
282
- default: string;
283
- description: string;
284
- markdownDescription: string;
285
- type: string;
286
- };
287
- words: {
288
- description: string;
289
- items: {
290
- type: string;
291
- };
292
- markdownDescription: string;
293
- type: string;
294
- };
295
- };
296
- type: string;
297
- };
298
- cspellOptionsRoot: {
299
- anyOf: ({
300
- type: string;
301
- format?: never;
302
- } | {
303
- format: string;
304
- type: string;
305
- })[];
306
- description: string;
307
- markdownDescription: string;
308
- };
309
- customWordListFile: {
310
- anyOf: ({
311
- description: string;
312
- markdownDescription: string;
313
- type: string;
314
- additionalProperties?: never;
315
- properties?: never;
316
- required?: never;
317
- } | {
318
- additionalProperties: boolean;
319
- properties: {
320
- path: {
321
- description: string;
322
- markdownDescription: string;
323
- type: string;
324
- };
325
- };
326
- required: string[];
327
- type: string;
328
- description?: never;
329
- markdownDescription?: never;
330
- })[];
331
- description: string;
332
- markdownDescription: string;
333
- };
334
- debugMode: {
335
- description: string;
336
- markdownDescription: string;
337
- type: string;
338
- };
339
- generateSuggestions: {
340
- default: boolean;
341
- description: string;
342
- markdownDescription: string;
343
- type: string;
344
- };
345
- ignoreImportProperties: {
346
- default: boolean;
347
- description: string;
348
- markdownDescription: string;
349
- type: string;
350
- };
351
- ignoreImports: {
352
- default: boolean;
353
- description: string;
354
- markdownDescription: string;
355
- type: string;
356
- };
357
- numSuggestions: {
358
- default: number;
359
- description: string;
360
- markdownDescription: string;
361
- type: string;
362
- };
363
- };
364
- required: string[];
365
- type: string;
366
- };
1
+ import type { Rule } from 'eslint';
2
+ export declare const optionsSchema: Rule.RuleMetaData['schema'];
367
3
  //# sourceMappingURL=schema.d.cts.map
@@ -7,14 +7,6 @@ export declare const meta: {
7
7
  readonly name: "@cspell";
8
8
  };
9
9
  export declare const configs: ESlintPlugin['configs'];
10
- export declare const plugin: {
11
- rules: {
12
- spellchecker: Rule.RuleModule;
13
- };
14
- configs: Record<string, import("eslint").Linter.LegacyConfig<import("eslint").Linter.RulesRecord, import("eslint").Linter.RulesRecord> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord> | import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[]>;
15
- meta: {
16
- readonly name: "@cspell";
17
- };
18
- };
10
+ export declare const plugin: ESlintPlugin;
19
11
  export {};
20
12
  //# sourceMappingURL=cspell-eslint-plugin.d.cts.map
@@ -1,4 +1,4 @@
1
1
  import type { Linter } from 'eslint';
2
- export declare const plugins: Record<string, import("eslint").ESLint.Plugin> | undefined;
3
- export declare const rules: Partial<Linter.RulesRecord> | undefined;
2
+ export declare const plugins: Linter.Config['plugins'];
3
+ export declare const rules: Linter.Config['rules'];
4
4
  //# sourceMappingURL=recommended.d.cts.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public",
5
5
  "provenance": true
6
6
  },
7
- "version": "9.0.2",
7
+ "version": "9.1.0",
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.27.0",
82
+ "@eslint/js": "^9.29.0",
83
83
  "@internal/cspell-eslint-plugin-scripts": "",
84
- "@types/estree": "^1.0.7",
84
+ "@types/estree": "^1.0.8",
85
85
  "@types/mocha": "^10.0.10",
86
- "@typescript-eslint/parser": "^8.32.1",
87
- "@typescript-eslint/types": "^8.32.1",
88
- "eslint": "^9.27.0",
86
+ "@typescript-eslint/parser": "^8.34.0",
87
+ "@typescript-eslint/types": "^8.34.0",
88
+ "eslint": "^9.29.0",
89
89
  "eslint-plugin-jsonc": "^2.20.1",
90
- "eslint-plugin-mdx": "^3.4.2",
91
- "eslint-plugin-n": "^17.18.0",
90
+ "eslint-plugin-mdx": "^3.5.0",
91
+ "eslint-plugin-n": "^17.20.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
- "globals": "^16.1.0",
95
+ "globals": "^16.2.0",
96
96
  "jsonc-eslint-parser": "^2.4.0",
97
- "mocha": "^11.4.0",
97
+ "mocha": "^11.6.0",
98
98
  "ts-json-schema-generator": "^2.4.0",
99
99
  "typescript": "~5.8.3",
100
- "typescript-eslint": "^8.32.1",
100
+ "typescript-eslint": "^8.34.0",
101
101
  "yaml-eslint-parser": "^1.3.0"
102
102
  },
103
103
  "dependencies": {
104
- "@cspell/cspell-types": "9.0.2",
105
- "@cspell/url": "9.0.2",
106
- "cspell-lib": "9.0.2",
107
- "synckit": "^0.11.6"
104
+ "@cspell/cspell-types": "9.1.0",
105
+ "@cspell/url": "9.1.0",
106
+ "cspell-lib": "9.1.0",
107
+ "synckit": "^0.11.8"
108
108
  },
109
109
  "peerDependencies": {
110
110
  "eslint": "^7 || ^8 || ^9"
111
111
  },
112
- "gitHead": "39dbd9ab9b8943a023d9eda7f65f81e822f939b5"
112
+ "gitHead": "a7ed42a31debbc86faa4a4ac2c686bdffe5b26b6"
113
113
  }