linted 25.1.0 → 25.2.0-rc.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/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { type Input } from "@eslinted/core";
2
- export default function (extensions?: Input["extensions"]): readonly [import("@eslinted/core/dist/interface/output/common").CommonPlugins<import("@eslinted/core").Plugins>, import("@eslinted/core/dist/interface/output/common").CommonSettings, import("@eslinted/core/dist/interface/output/common").CommonIgnores, ...(import("@eslinted/core/dist/interface/output/scoped").ScopedSettings<"ts" | "svelte" | "html" | "jsonc" | "yml" | "js" | "mocha" | "json"> | import("@eslinted/core/dist/interface/output/scoped").ScopedRules<"ts" | "svelte" | "html" | "jsonc" | "yml" | "js" | "mocha" | "json">)[]];
2
+ export default function (extensions?: Input["extensions"]): readonly unknown[];
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAKlD,MAAM,CAAC,OAAO,WAAW,UAAU,GAAE,KAAK,CAAC,YAAY,CAAM,4hBAW5D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAMlD,MAAM,CAAC,OAAO,WAAW,UAAU,GAAE,KAAK,CAAC,YAAY,CAAM,GAAG,SAAS,OAAO,EAAE,CAWjF"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAc,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,aAAkC,EAAE;IAC3D,IAAI,CAAC;QACH,OAAO,IAAI,CAAC;YACV,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;YAC7B,QAAQ;YACR,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAc,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,CAAC,OAAO,WAAW,aAAkC,EAAE;IAC3D,IAAI,CAAC;QACH,OAAO,IAAI,CAAC;YACV,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;YAC7B,QAAQ;YACR,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;AACH,CAAC"}
package/dist/plugins.d.ts CHANGED
@@ -1,651 +1,2 @@
1
- import mocha from "eslint-plugin-mocha";
2
- import chai_friendly from "eslint-plugin-chai-friendly";
3
- import chai_expect from "eslint-plugin-chai-expect";
4
- export declare const plugins: {
5
- "@stylistic": {
6
- rules: import("@stylistic/eslint-plugin").Rules;
7
- configs: import("eslint").ESLint.Plugin["configs"] & import("@stylistic/eslint-plugin").Configs;
8
- };
9
- "@typescript-eslint": {
10
- readonly config: Record<string, unknown>;
11
- };
12
- svelte: {
13
- meta: typeof import("eslint-plugin-svelte/lib/meta");
14
- configs: {
15
- base: import("eslint").Linter.LegacyConfig<import("eslint").Linter.RulesRecord, import("eslint").Linter.RulesRecord>;
16
- recommended: import("eslint").Linter.LegacyConfig<import("eslint").Linter.RulesRecord, import("eslint").Linter.RulesRecord>;
17
- prettier: import("eslint").Linter.LegacyConfig<import("eslint").Linter.RulesRecord, import("eslint").Linter.RulesRecord>;
18
- all: import("eslint").Linter.LegacyConfig<import("eslint").Linter.RulesRecord, import("eslint").Linter.RulesRecord>;
19
- "flat/base": import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
20
- "flat/recommended": import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
21
- "flat/prettier": import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
22
- "flat/all": import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>[];
23
- };
24
- rules: {
25
- [key: string]: import("eslint-plugin-svelte/lib/types").RuleModule;
26
- };
27
- processors: {
28
- ".svelte": typeof import("eslint-plugin-svelte/lib/processor");
29
- svelte: typeof import("eslint-plugin-svelte/lib/processor");
30
- };
31
- };
32
- mocha: typeof mocha;
33
- "chai-friendly": typeof chai_friendly;
34
- "chai-expect": typeof chai_expect;
35
- "@html-eslint": {
36
- configs: {
37
- recommended: typeof import("@html-eslint/eslint-plugin/types/configs/recommended");
38
- "flat/recommended": import("eslint").Linter.FlatConfig;
39
- rules: {
40
- "require-lang": import("../types").RuleModule;
41
- "require-img-alt": import("../types").RuleModule;
42
- "require-doctype": import("../types").RuleModule;
43
- "require-title": import("../types").RuleModule;
44
- "no-duplicate-id": import("../types").RuleModule;
45
- "no-inline-styles": import("../types").RuleModule;
46
- "no-multiple-h1": import("../types").RuleModule;
47
- "no-extra-spacing-attrs": import("../types").RuleModule;
48
- "no-extra-spacing-text": import("../types").RuleModule;
49
- "attrs-newline": import("../types").RuleModule;
50
- "element-newline": import("../types").RuleModule;
51
- "no-skip-heading-levels": import("../types").RuleModule;
52
- "require-li-container": import("../types").RuleModule;
53
- indent: import("../types").RuleModule;
54
- quotes: import("../types").RuleModule;
55
- "id-naming-convention": import("../types").RuleModule;
56
- "no-obsolete-tags": import("../types").RuleModule;
57
- "require-attrs": import("../types").RuleModule;
58
- "require-closing-tags": import("../types").RuleModule;
59
- "require-meta-description": import("../types").RuleModule;
60
- "require-frame-title": import("../types").RuleModule;
61
- "no-non-scalable-viewport": import("../types").RuleModule;
62
- "no-positive-tabindex": import("../types").RuleModule;
63
- "require-meta-viewport": import("../types").RuleModule;
64
- "require-meta-charset": import("../types").RuleModule;
65
- "no-target-blank": import("../types").RuleModule;
66
- "no-duplicate-attrs": import("../types").RuleModule;
67
- "no-abstract-roles": import("../types").RuleModule;
68
- "require-button-type": import("../types").RuleModule;
69
- "no-aria-hidden-body": import("../types").RuleModule;
70
- "no-multiple-empty-lines": import("../types").RuleModule;
71
- "no-accesskey-attrs": import("../types").RuleModule;
72
- "no-restricted-attrs": import("../types").RuleModule;
73
- "no-trailing-spaces": import("../types").RuleModule;
74
- "no-restricted-attr-values": import("../types").RuleModule;
75
- "no-script-style-type": import("../types").RuleModule;
76
- "no-heading-inside-button": import("../types").RuleModule;
77
- "no-invalid-role": import("../types").RuleModule;
78
- "no-nested-interactive": import("../types").RuleModule;
79
- lowercase: import("../types").RuleModule;
80
- "require-open-graph-protocol": import("../types").RuleModule;
81
- "require-form-method": import("../types").RuleModule;
82
- "sort-attrs": import("../types").RuleModule;
83
- "prefer-https": import("../types").RuleModule;
84
- "require-input-label": import("../types").RuleModule;
85
- "max-element-depth": import("../types").RuleModule;
86
- "require-explicit-size": import("../types").RuleModule;
87
- };
88
- };
89
- };
90
- jsonc: {
91
- meta: typeof import("eslint-plugin-jsonc/meta");
92
- configs: {
93
- base: {
94
- plugins: string[];
95
- overrides: {
96
- files: string[];
97
- parser: string;
98
- rules: {
99
- strict: string;
100
- "no-unused-expressions": string;
101
- "no-unused-vars": string;
102
- };
103
- }[];
104
- };
105
- "auto-config": {
106
- extends: string[];
107
- rules: {
108
- "jsonc/auto": string;
109
- };
110
- };
111
- "recommended-with-json": {
112
- extends: string[];
113
- rules: {
114
- "jsonc/comma-dangle": string;
115
- "jsonc/no-bigint-literals": string;
116
- "jsonc/no-binary-expression": string;
117
- "jsonc/no-binary-numeric-literals": string;
118
- "jsonc/no-comments": string;
119
- "jsonc/no-dupe-keys": string;
120
- "jsonc/no-escape-sequence-in-identifier": string;
121
- "jsonc/no-floating-decimal": string;
122
- "jsonc/no-hexadecimal-numeric-literals": string;
123
- "jsonc/no-infinity": string;
124
- "jsonc/no-multi-str": string;
125
- "jsonc/no-nan": string;
126
- "jsonc/no-number-props": string;
127
- "jsonc/no-numeric-separators": string;
128
- "jsonc/no-octal-numeric-literals": string;
129
- "jsonc/no-octal": string;
130
- "jsonc/no-parenthesized": string;
131
- "jsonc/no-plus-sign": string;
132
- "jsonc/no-regexp-literals": string;
133
- "jsonc/no-sparse-arrays": string;
134
- "jsonc/no-template-literals": string;
135
- "jsonc/no-undefined-value": string;
136
- "jsonc/no-unicode-codepoint-escapes": string;
137
- "jsonc/no-useless-escape": string;
138
- "jsonc/quote-props": string;
139
- "jsonc/quotes": string;
140
- "jsonc/space-unary-ops": string;
141
- "jsonc/valid-json-number": string;
142
- "jsonc/vue-custom-block/no-parsing-error": string;
143
- };
144
- };
145
- "recommended-with-jsonc": {
146
- extends: string[];
147
- rules: {
148
- "jsonc/no-bigint-literals": string;
149
- "jsonc/no-binary-expression": string;
150
- "jsonc/no-binary-numeric-literals": string;
151
- "jsonc/no-dupe-keys": string;
152
- "jsonc/no-escape-sequence-in-identifier": string;
153
- "jsonc/no-floating-decimal": string;
154
- "jsonc/no-hexadecimal-numeric-literals": string;
155
- "jsonc/no-infinity": string;
156
- "jsonc/no-multi-str": string;
157
- "jsonc/no-nan": string;
158
- "jsonc/no-number-props": string;
159
- "jsonc/no-numeric-separators": string;
160
- "jsonc/no-octal-numeric-literals": string;
161
- "jsonc/no-octal": string;
162
- "jsonc/no-parenthesized": string;
163
- "jsonc/no-plus-sign": string;
164
- "jsonc/no-regexp-literals": string;
165
- "jsonc/no-sparse-arrays": string;
166
- "jsonc/no-template-literals": string;
167
- "jsonc/no-undefined-value": string;
168
- "jsonc/no-unicode-codepoint-escapes": string;
169
- "jsonc/no-useless-escape": string;
170
- "jsonc/quote-props": string;
171
- "jsonc/quotes": string;
172
- "jsonc/space-unary-ops": string;
173
- "jsonc/valid-json-number": string;
174
- "jsonc/vue-custom-block/no-parsing-error": string;
175
- };
176
- };
177
- "recommended-with-json5": {
178
- extends: string[];
179
- rules: {
180
- "jsonc/no-bigint-literals": string;
181
- "jsonc/no-binary-expression": string;
182
- "jsonc/no-binary-numeric-literals": string;
183
- "jsonc/no-dupe-keys": string;
184
- "jsonc/no-escape-sequence-in-identifier": string;
185
- "jsonc/no-number-props": string;
186
- "jsonc/no-numeric-separators": string;
187
- "jsonc/no-octal-numeric-literals": string;
188
- "jsonc/no-octal": string;
189
- "jsonc/no-parenthesized": string;
190
- "jsonc/no-regexp-literals": string;
191
- "jsonc/no-sparse-arrays": string;
192
- "jsonc/no-template-literals": string;
193
- "jsonc/no-undefined-value": string;
194
- "jsonc/no-unicode-codepoint-escapes": string;
195
- "jsonc/no-useless-escape": string;
196
- "jsonc/space-unary-ops": string;
197
- "jsonc/vue-custom-block/no-parsing-error": string;
198
- };
199
- };
200
- prettier: {
201
- extends: string[];
202
- rules: {
203
- "jsonc/array-bracket-newline": string;
204
- "jsonc/array-bracket-spacing": string;
205
- "jsonc/array-element-newline": string;
206
- "jsonc/comma-dangle": string;
207
- "jsonc/comma-style": string;
208
- "jsonc/indent": string;
209
- "jsonc/key-spacing": string;
210
- "jsonc/no-floating-decimal": string;
211
- "jsonc/object-curly-newline": string;
212
- "jsonc/object-curly-spacing": string;
213
- "jsonc/object-property-newline": string;
214
- "jsonc/quote-props": string;
215
- "jsonc/quotes": string;
216
- "jsonc/space-unary-ops": string;
217
- };
218
- };
219
- all: {
220
- extends: string[];
221
- rules: {
222
- [x: string]: string;
223
- };
224
- };
225
- "flat/base": ({
226
- plugins: {
227
- readonly jsonc: import("eslint").ESLint.Plugin;
228
- };
229
- files?: undefined;
230
- languageOptions?: undefined;
231
- rules?: undefined;
232
- } | {
233
- files: string[];
234
- languageOptions: {
235
- parser: typeof import("jsonc-eslint-parser");
236
- };
237
- rules: {
238
- strict: "off";
239
- "no-unused-expressions": "off";
240
- "no-unused-vars": "off";
241
- };
242
- plugins?: undefined;
243
- })[];
244
- "flat/recommended-with-json": ({
245
- plugins: {
246
- readonly jsonc: import("eslint").ESLint.Plugin;
247
- };
248
- files?: undefined;
249
- languageOptions?: undefined;
250
- rules?: undefined;
251
- } | {
252
- files: string[];
253
- languageOptions: {
254
- parser: typeof import("jsonc-eslint-parser");
255
- };
256
- rules: {
257
- strict: "off";
258
- "no-unused-expressions": "off";
259
- "no-unused-vars": "off";
260
- };
261
- plugins?: undefined;
262
- } | {
263
- rules: {
264
- "jsonc/comma-dangle": "error";
265
- "jsonc/no-bigint-literals": "error";
266
- "jsonc/no-binary-expression": "error";
267
- "jsonc/no-binary-numeric-literals": "error";
268
- "jsonc/no-comments": "error";
269
- "jsonc/no-dupe-keys": "error";
270
- "jsonc/no-escape-sequence-in-identifier": "error";
271
- "jsonc/no-floating-decimal": "error";
272
- "jsonc/no-hexadecimal-numeric-literals": "error";
273
- "jsonc/no-infinity": "error";
274
- "jsonc/no-multi-str": "error";
275
- "jsonc/no-nan": "error";
276
- "jsonc/no-number-props": "error";
277
- "jsonc/no-numeric-separators": "error";
278
- "jsonc/no-octal-numeric-literals": "error";
279
- "jsonc/no-octal": "error";
280
- "jsonc/no-parenthesized": "error";
281
- "jsonc/no-plus-sign": "error";
282
- "jsonc/no-regexp-literals": "error";
283
- "jsonc/no-sparse-arrays": "error";
284
- "jsonc/no-template-literals": "error";
285
- "jsonc/no-undefined-value": "error";
286
- "jsonc/no-unicode-codepoint-escapes": "error";
287
- "jsonc/no-useless-escape": "error";
288
- "jsonc/quote-props": "error";
289
- "jsonc/quotes": "error";
290
- "jsonc/space-unary-ops": "error";
291
- "jsonc/valid-json-number": "error";
292
- "jsonc/vue-custom-block/no-parsing-error": "error";
293
- };
294
- })[];
295
- "flat/recommended-with-jsonc": ({
296
- plugins: {
297
- readonly jsonc: import("eslint").ESLint.Plugin;
298
- };
299
- files?: undefined;
300
- languageOptions?: undefined;
301
- rules?: undefined;
302
- } | {
303
- files: string[];
304
- languageOptions: {
305
- parser: typeof import("jsonc-eslint-parser");
306
- };
307
- rules: {
308
- strict: "off";
309
- "no-unused-expressions": "off";
310
- "no-unused-vars": "off";
311
- };
312
- plugins?: undefined;
313
- } | {
314
- rules: {
315
- "jsonc/no-bigint-literals": "error";
316
- "jsonc/no-binary-expression": "error";
317
- "jsonc/no-binary-numeric-literals": "error";
318
- "jsonc/no-dupe-keys": "error";
319
- "jsonc/no-escape-sequence-in-identifier": "error";
320
- "jsonc/no-floating-decimal": "error";
321
- "jsonc/no-hexadecimal-numeric-literals": "error";
322
- "jsonc/no-infinity": "error";
323
- "jsonc/no-multi-str": "error";
324
- "jsonc/no-nan": "error";
325
- "jsonc/no-number-props": "error";
326
- "jsonc/no-numeric-separators": "error";
327
- "jsonc/no-octal-numeric-literals": "error";
328
- "jsonc/no-octal": "error";
329
- "jsonc/no-parenthesized": "error";
330
- "jsonc/no-plus-sign": "error";
331
- "jsonc/no-regexp-literals": "error";
332
- "jsonc/no-sparse-arrays": "error";
333
- "jsonc/no-template-literals": "error";
334
- "jsonc/no-undefined-value": "error";
335
- "jsonc/no-unicode-codepoint-escapes": "error";
336
- "jsonc/no-useless-escape": "error";
337
- "jsonc/quote-props": "error";
338
- "jsonc/quotes": "error";
339
- "jsonc/space-unary-ops": "error";
340
- "jsonc/valid-json-number": "error";
341
- "jsonc/vue-custom-block/no-parsing-error": "error";
342
- };
343
- })[];
344
- "flat/recommended-with-json5": ({
345
- plugins: {
346
- readonly jsonc: import("eslint").ESLint.Plugin;
347
- };
348
- files?: undefined;
349
- languageOptions?: undefined;
350
- rules?: undefined;
351
- } | {
352
- files: string[];
353
- languageOptions: {
354
- parser: typeof import("jsonc-eslint-parser");
355
- };
356
- rules: {
357
- strict: "off";
358
- "no-unused-expressions": "off";
359
- "no-unused-vars": "off";
360
- };
361
- plugins?: undefined;
362
- } | {
363
- rules: {
364
- "jsonc/no-bigint-literals": "error";
365
- "jsonc/no-binary-expression": "error";
366
- "jsonc/no-binary-numeric-literals": "error";
367
- "jsonc/no-dupe-keys": "error";
368
- "jsonc/no-escape-sequence-in-identifier": "error";
369
- "jsonc/no-number-props": "error";
370
- "jsonc/no-numeric-separators": "error";
371
- "jsonc/no-octal-numeric-literals": "error";
372
- "jsonc/no-octal": "error";
373
- "jsonc/no-parenthesized": "error";
374
- "jsonc/no-regexp-literals": "error";
375
- "jsonc/no-sparse-arrays": "error";
376
- "jsonc/no-template-literals": "error";
377
- "jsonc/no-undefined-value": "error";
378
- "jsonc/no-unicode-codepoint-escapes": "error";
379
- "jsonc/no-useless-escape": "error";
380
- "jsonc/space-unary-ops": "error";
381
- "jsonc/vue-custom-block/no-parsing-error": "error";
382
- };
383
- })[];
384
- "flat/prettier": ({
385
- plugins: {
386
- readonly jsonc: import("eslint").ESLint.Plugin;
387
- };
388
- files?: undefined;
389
- languageOptions?: undefined;
390
- rules?: undefined;
391
- } | {
392
- files: string[];
393
- languageOptions: {
394
- parser: typeof import("jsonc-eslint-parser");
395
- };
396
- rules: {
397
- strict: "off";
398
- "no-unused-expressions": "off";
399
- "no-unused-vars": "off";
400
- };
401
- plugins?: undefined;
402
- } | {
403
- rules: {
404
- "jsonc/array-bracket-newline": "off";
405
- "jsonc/array-bracket-spacing": "off";
406
- "jsonc/array-element-newline": "off";
407
- "jsonc/comma-dangle": "off";
408
- "jsonc/comma-style": "off";
409
- "jsonc/indent": "off";
410
- "jsonc/key-spacing": "off";
411
- "jsonc/no-floating-decimal": "off";
412
- "jsonc/object-curly-newline": "off";
413
- "jsonc/object-curly-spacing": "off";
414
- "jsonc/object-property-newline": "off";
415
- "jsonc/quote-props": "off";
416
- "jsonc/quotes": "off";
417
- "jsonc/space-unary-ops": "off";
418
- };
419
- })[];
420
- "flat/all": ({
421
- plugins: {
422
- readonly jsonc: import("eslint").ESLint.Plugin;
423
- };
424
- files?: undefined;
425
- languageOptions?: undefined;
426
- rules?: undefined;
427
- } | {
428
- files: string[];
429
- languageOptions: {
430
- parser: typeof import("jsonc-eslint-parser");
431
- };
432
- rules: {
433
- strict: "off";
434
- "no-unused-expressions": "off";
435
- "no-unused-vars": "off";
436
- };
437
- plugins?: undefined;
438
- } | {
439
- rules: {
440
- [x: string]: import("eslint").Linter.RuleEntry<any[]>;
441
- };
442
- })[];
443
- };
444
- rules: {
445
- [key: string]: import("eslint-plugin-jsonc/types").RuleModule;
446
- };
447
- parseForESLint: typeof import("eslint-plugin-jsonc").parseForESLint;
448
- parseJSON: typeof import("jsonc-eslint-parser").parseJSON;
449
- traverseNodes: typeof import("eslint-plugin-jsonc").traverseNodes;
450
- getStaticJSONValue: typeof import("eslint-plugin-jsonc").getStaticJSONValue;
451
- };
452
- yml: {
453
- meta: typeof import("eslint-plugin-yml/lib/meta");
454
- configs: {
455
- base: {
456
- plugins: string[];
457
- overrides: {
458
- files: string[];
459
- parser: string;
460
- rules: {
461
- "no-irregular-whitespace": string;
462
- "no-unused-vars": string;
463
- "spaced-comment": string;
464
- };
465
- }[];
466
- };
467
- recommended: {
468
- extends: string[];
469
- rules: {
470
- "yml/no-empty-document": string;
471
- "yml/no-empty-key": string;
472
- "yml/no-empty-mapping-value": string;
473
- "yml/no-empty-sequence-entry": string;
474
- "yml/no-irregular-whitespace": string;
475
- "yml/no-tab-indent": string;
476
- "yml/vue-custom-block/no-parsing-error": string;
477
- };
478
- };
479
- standard: {
480
- extends: string[];
481
- rules: {
482
- "yml/block-mapping-question-indicator-newline": string;
483
- "yml/block-mapping": string;
484
- "yml/block-sequence-hyphen-indicator-newline": string;
485
- "yml/block-sequence": string;
486
- "yml/flow-mapping-curly-newline": string;
487
- "yml/flow-mapping-curly-spacing": string;
488
- "yml/flow-sequence-bracket-newline": string;
489
- "yml/flow-sequence-bracket-spacing": string;
490
- "yml/indent": string;
491
- "yml/key-spacing": string;
492
- "yml/no-empty-document": string;
493
- "yml/no-empty-key": string;
494
- "yml/no-empty-mapping-value": string;
495
- "yml/no-empty-sequence-entry": string;
496
- "yml/no-irregular-whitespace": string;
497
- "yml/no-tab-indent": string;
498
- "yml/plain-scalar": string;
499
- "yml/quotes": string;
500
- "yml/spaced-comment": string;
501
- "yml/vue-custom-block/no-parsing-error": string;
502
- };
503
- };
504
- prettier: {
505
- extends: string[];
506
- rules: {
507
- "yml/block-mapping-colon-indicator-newline": string;
508
- "yml/block-mapping-question-indicator-newline": string;
509
- "yml/block-sequence-hyphen-indicator-newline": string;
510
- "yml/flow-mapping-curly-newline": string;
511
- "yml/flow-mapping-curly-spacing": string;
512
- "yml/flow-sequence-bracket-newline": string;
513
- "yml/flow-sequence-bracket-spacing": string;
514
- "yml/indent": string;
515
- "yml/key-spacing": string;
516
- "yml/no-multiple-empty-lines": string;
517
- "yml/no-trailing-zeros": string;
518
- "yml/quotes": string;
519
- };
520
- };
521
- "flat/base": ({
522
- plugins: {
523
- readonly yml: import("eslint").ESLint.Plugin;
524
- };
525
- files?: undefined;
526
- languageOptions?: undefined;
527
- rules?: undefined;
528
- } | {
529
- files: string[];
530
- languageOptions: {
531
- parser: typeof import("yaml-eslint-parser");
532
- };
533
- rules: {
534
- "no-irregular-whitespace": "off";
535
- "no-unused-vars": "off";
536
- "spaced-comment": "off";
537
- };
538
- plugins?: undefined;
539
- })[];
540
- "flat/recommended": ({
541
- plugins: {
542
- readonly yml: import("eslint").ESLint.Plugin;
543
- };
544
- files?: undefined;
545
- languageOptions?: undefined;
546
- rules?: undefined;
547
- } | {
548
- files: string[];
549
- languageOptions: {
550
- parser: typeof import("yaml-eslint-parser");
551
- };
552
- rules: {
553
- "no-irregular-whitespace": "off";
554
- "no-unused-vars": "off";
555
- "spaced-comment": "off";
556
- };
557
- plugins?: undefined;
558
- } | {
559
- rules: {
560
- "yml/no-empty-document": "error";
561
- "yml/no-empty-key": "error";
562
- "yml/no-empty-mapping-value": "error";
563
- "yml/no-empty-sequence-entry": "error";
564
- "yml/no-irregular-whitespace": "error";
565
- "yml/no-tab-indent": "error";
566
- "yml/vue-custom-block/no-parsing-error": "error";
567
- };
568
- })[];
569
- "flat/standard": ({
570
- plugins: {
571
- readonly yml: import("eslint").ESLint.Plugin;
572
- };
573
- files?: undefined;
574
- languageOptions?: undefined;
575
- rules?: undefined;
576
- } | {
577
- files: string[];
578
- languageOptions: {
579
- parser: typeof import("yaml-eslint-parser");
580
- };
581
- rules: {
582
- "no-irregular-whitespace": "off";
583
- "no-unused-vars": "off";
584
- "spaced-comment": "off";
585
- };
586
- plugins?: undefined;
587
- } | {
588
- rules: {
589
- "yml/block-mapping-question-indicator-newline": "error";
590
- "yml/block-mapping": "error";
591
- "yml/block-sequence-hyphen-indicator-newline": "error";
592
- "yml/block-sequence": "error";
593
- "yml/flow-mapping-curly-newline": "error";
594
- "yml/flow-mapping-curly-spacing": "error";
595
- "yml/flow-sequence-bracket-newline": "error";
596
- "yml/flow-sequence-bracket-spacing": "error";
597
- "yml/indent": "error";
598
- "yml/key-spacing": "error";
599
- "yml/no-empty-document": "error";
600
- "yml/no-empty-key": "error";
601
- "yml/no-empty-mapping-value": "error";
602
- "yml/no-empty-sequence-entry": "error";
603
- "yml/no-irregular-whitespace": "error";
604
- "yml/no-tab-indent": "error";
605
- "yml/plain-scalar": "error";
606
- "yml/quotes": "error";
607
- "yml/spaced-comment": "error";
608
- "yml/vue-custom-block/no-parsing-error": "error";
609
- };
610
- })[];
611
- "flat/prettier": ({
612
- plugins: {
613
- readonly yml: import("eslint").ESLint.Plugin;
614
- };
615
- files?: undefined;
616
- languageOptions?: undefined;
617
- rules?: undefined;
618
- } | {
619
- files: string[];
620
- languageOptions: {
621
- parser: typeof import("yaml-eslint-parser");
622
- };
623
- rules: {
624
- "no-irregular-whitespace": "off";
625
- "no-unused-vars": "off";
626
- "spaced-comment": "off";
627
- };
628
- plugins?: undefined;
629
- } | {
630
- rules: {
631
- "yml/block-mapping-colon-indicator-newline": "off";
632
- "yml/block-mapping-question-indicator-newline": "off";
633
- "yml/block-sequence-hyphen-indicator-newline": "off";
634
- "yml/flow-mapping-curly-newline": "off";
635
- "yml/flow-mapping-curly-spacing": "off";
636
- "yml/flow-sequence-bracket-newline": "off";
637
- "yml/flow-sequence-bracket-spacing": "off";
638
- "yml/indent": "off";
639
- "yml/key-spacing": "off";
640
- "yml/no-multiple-empty-lines": "off";
641
- "yml/no-trailing-zeros": "off";
642
- "yml/quotes": "off";
643
- };
644
- })[];
645
- };
646
- rules: {
647
- [key: string]: import("eslint-plugin-yml/lib/types").RuleModule;
648
- };
649
- };
650
- };
1
+ export declare const plugins: Readonly<Record<string, Partial<Record<"configs", unknown>>>>;
651
2
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AAKpD,eAAO,MAAM,OAAO;;;;;0BAEyB;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE;;;;yBARrF,QAAQ,6BAA6B,QAAQ,6BAC5B,QAAQ;gCACF,QAAQ,6BACzB,QAAQ,6BACX,QAAO;6BAGZ,QAAK,6BACE,QAAQ,6BAA8B,QAAO;wBAChD,QACF,6BACoB,QAAQ,6BACL,QACtB;gCAIC,QAAQ,uBAAuB,QAAQ;uCAA4D,QAAQ,uBAAuB,QAAQ;o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AS,EAAE,OAAO,CAAC,CAAC,CAAC,CAUjF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,iBAAiE;IACvF,MAAM;IACN,KAAK;IACL,eAAe,EAAE,aAAa;IAC9B,aAAa,EAAE,WAAW;IAC1B,cAAc,EAAE,WAAW;IAC3B,KAAK;IACL,GAAG;CACJ,CAAC"}
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAC1C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,GAAG,MAAM,mBAAmB,CAAC;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAkE;IACpF,YAAY,EAAE,SAAS;IACvB,oBAAoB,EAAE,iBAAiB;IACvC,MAAM;IACN,KAAK;IACL,eAAe,EAAE,aAAa;IAC9B,aAAa,EAAE,WAAW;IAC1B,cAAc,EAAE,WAAW;IAC3B,KAAK;IACL,GAAG;CACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$template": "22.13.5",
3
3
  "name": "linted",
4
- "version": "25.1.0",
4
+ "version": "25.2.0-rc.0",
5
5
  "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
6
6
  "repository": "github:jimmy-zhening-luo/linted",
7
7
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "peerDependencies": {
15
15
  "eslint": "~9.19.0",
16
16
  "mocha": "^11.1.0",
17
- "svelte": "^5.19.4",
17
+ "svelte": "^5.19.5",
18
18
  "typescript": ">=5.7.3"
19
19
  },
20
20
  "peerDependenciesMeta": {
@@ -33,7 +33,7 @@
33
33
  "@eslinted/defaults": "4.11.2",
34
34
  "@html-eslint/eslint-plugin": "0.33.1",
35
35
  "@html-eslint/parser": "0.33.0",
36
- "@stylistic/eslint-plugin": "3.0.0",
36
+ "@stylistic/eslint-plugin": "3.0.1",
37
37
  "eslint-plugin-chai-expect": "3.1.0",
38
38
  "eslint-plugin-chai-friendly": "1.0.1",
39
39
  "eslint-plugin-jsonc": "2.19.1",
@@ -41,7 +41,7 @@
41
41
  "eslint-plugin-svelte": "2.46.1",
42
42
  "eslint-plugin-yml": "1.16.0",
43
43
  "jsonc-eslint-parser": "2.4.0",
44
- "svelte": "^5.19.4",
44
+ "svelte": "^5.19.5",
45
45
  "svelte-eslint-parser": "0.43.0",
46
46
  "typescript-eslint": "8.22.0",
47
47
  "yaml-eslint-parser": "1.2.3"
package/src/index.ts CHANGED
@@ -2,8 +2,9 @@ import Core, { type Input } from "@eslinted/core";
2
2
  import * as defaults from "@eslinted/defaults";
3
3
  import { plugins } from "./plugins";
4
4
  import { parsers } from "./parsers";
5
+ // import type { Config } from "typescript-eslint";
5
6
 
6
- export default function (extensions: Input["extensions"] = {}) {
7
+ export default function (extensions: Input["extensions"] = {}): readonly unknown[] {
7
8
  try {
8
9
  return Core({
9
10
  imports: { plugins, parsers },
package/src/plugins.ts CHANGED
@@ -8,9 +8,9 @@ import html_eslint from "@html-eslint/eslint-plugin";
8
8
  import jsonc from "eslint-plugin-jsonc";
9
9
  import yml from "eslint-plugin-yml";
10
10
 
11
- export const plugins = {
11
+ export const plugins: Readonly<Record<string, Partial<Record<"configs", unknown>>>> = {
12
12
  "@stylistic": stylistic,
13
- "@typescript-eslint": typescript_eslint as { readonly config: Record<string, unknown> },
13
+ "@typescript-eslint": typescript_eslint,
14
14
  svelte,
15
15
  mocha,
16
16
  "chai-friendly": chai_friendly,