@jsse/eslint-config 0.3.7 → 0.4.1

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cli.js +3 -3
  3. package/dist/esm/config-fns.d.ts +114 -34
  4. package/dist/esm/config-fns.js +117 -35
  5. package/dist/esm/configs/{comments.d.ts → de-morgan.d.ts} +1 -1
  6. package/dist/esm/configs/de-morgan.js +9 -0
  7. package/dist/esm/configs/eslint-comments.d.ts +2 -0
  8. package/dist/esm/configs/{comments.js → eslint-comments.js} +1 -1
  9. package/dist/esm/configs/gql.d.ts +2 -2
  10. package/dist/esm/configs/markdown.js +1 -1
  11. package/dist/esm/configs/pnpm.d.ts +2 -0
  12. package/dist/esm/configs/pnpm.js +34 -0
  13. package/dist/esm/configs/prettier.d.ts +2 -2
  14. package/dist/esm/configs/react.d.ts +3 -3
  15. package/dist/esm/configs/stylistic.js +1 -1
  16. package/dist/esm/configs/tailwind.d.ts +1 -2
  17. package/dist/esm/configs/tailwind.js +81 -48
  18. package/dist/esm/configs/ts/parser.d.ts +2 -2
  19. package/dist/esm/configs/ts/parser.js +7 -5
  20. package/dist/esm/configs/ts/typescript-rules.d.ts +9 -4
  21. package/dist/esm/configs/ts/typescript-rules.js +26 -62
  22. package/dist/esm/configs/ts/typescript.js +56 -43
  23. package/dist/esm/define-config.d.ts +3 -3
  24. package/dist/esm/define-config.js +47 -28
  25. package/dist/esm/fixable.d.ts +2 -1
  26. package/dist/esm/fixable.js +3 -395
  27. package/dist/esm/generated/fixable-rules-map.d.ts +2 -0
  28. package/dist/esm/generated/fixable-rules-map.js +443 -0
  29. package/dist/esm/generated/version.d.ts +1 -1
  30. package/dist/esm/generated/version.js +1 -1
  31. package/dist/esm/index.d.ts +1 -1
  32. package/dist/esm/index.js +0 -1
  33. package/dist/esm/lager.d.ts +1 -1
  34. package/dist/esm/lager.js +1 -1
  35. package/dist/esm/plugins-all.d.ts +11 -8
  36. package/dist/esm/plugins-all.js +103 -10
  37. package/dist/esm/plugins.d.ts +2 -6
  38. package/dist/esm/plugins.js +2 -16
  39. package/dist/esm/presets.d.ts +16 -0
  40. package/dist/esm/presets.js +65 -2
  41. package/dist/esm/types.d.ts +47 -22
  42. package/dist/esm/utils.d.ts +5 -5
  43. package/dist/esm/utils.js +1 -1
  44. package/dist/index.d.ts +3907 -2560
  45. package/dist/index.js +275 -751
  46. package/package.json +29 -37
  47. package/dist/esm/plugindex.d.ts +0 -7
  48. package/dist/esm/plugindex.js +0 -60
@@ -0,0 +1,443 @@
1
+ export const FIXABLE_RULES_MAP = {
2
+ antfu: [
3
+ "antfu/consistent-chaining",
4
+ "antfu/consistent-list-newline",
5
+ "antfu/curly",
6
+ "antfu/if-newline",
7
+ "antfu/import-dedupe",
8
+ "antfu/indent-unindent",
9
+ "antfu/top-level-function",
10
+ ],
11
+ deMorgan: [
12
+ "de-morgan/no-negated-conjunction",
13
+ "de-morgan/no-negated-disjunction",
14
+ ],
15
+ eslintComments: [],
16
+ import: [
17
+ "import/consistent-type-specifier-style",
18
+ "import/extensions",
19
+ "import/first",
20
+ "import/imports-first",
21
+ "import/newline-after-import",
22
+ "import/no-absolute-path",
23
+ "import/no-duplicates",
24
+ "import/no-empty-named-blocks",
25
+ "import/no-import-module-exports",
26
+ "import/no-namespace",
27
+ "import/no-relative-packages",
28
+ "import/no-useless-path-segments",
29
+ "import/order",
30
+ ],
31
+ jsdoc: [
32
+ "jsdoc/check-alignment",
33
+ "jsdoc/check-line-alignment",
34
+ "jsdoc/check-param-names",
35
+ "jsdoc/check-property-names",
36
+ "jsdoc/check-tag-names",
37
+ "jsdoc/check-types",
38
+ "jsdoc/convert-to-jsdoc-comments",
39
+ "jsdoc/empty-tags",
40
+ "jsdoc/lines-before-block",
41
+ "jsdoc/match-name",
42
+ "jsdoc/multiline-blocks",
43
+ "jsdoc/no-bad-blocks",
44
+ "jsdoc/no-blank-block-descriptions",
45
+ "jsdoc/no-blank-blocks",
46
+ "jsdoc/no-defaults",
47
+ "jsdoc/no-missing-syntax",
48
+ "jsdoc/no-multi-asterisks",
49
+ "jsdoc/no-restricted-syntax",
50
+ "jsdoc/no-types",
51
+ "jsdoc/require-asterisk-prefix",
52
+ "jsdoc/require-description-complete-sentence",
53
+ "jsdoc/require-example",
54
+ "jsdoc/require-hyphen-before-param-description",
55
+ "jsdoc/require-jsdoc",
56
+ "jsdoc/require-param",
57
+ "jsdoc/require-param-description",
58
+ "jsdoc/require-param-type",
59
+ "jsdoc/require-property",
60
+ "jsdoc/require-returns",
61
+ "jsdoc/sort-tags",
62
+ "jsdoc/tag-lines",
63
+ "jsdoc/text-escaping",
64
+ ],
65
+ jsonc: [
66
+ "jsonc/array-bracket-newline",
67
+ "jsonc/array-bracket-spacing",
68
+ "jsonc/array-element-newline",
69
+ "jsonc/auto",
70
+ "jsonc/comma-dangle",
71
+ "jsonc/comma-style",
72
+ "jsonc/indent",
73
+ "jsonc/key-spacing",
74
+ "jsonc/no-binary-expression",
75
+ "jsonc/no-binary-numeric-literals",
76
+ "jsonc/no-escape-sequence-in-identifier",
77
+ "jsonc/no-floating-decimal",
78
+ "jsonc/no-hexadecimal-numeric-literals",
79
+ "jsonc/no-number-props",
80
+ "jsonc/no-numeric-separators",
81
+ "jsonc/no-octal-numeric-literals",
82
+ "jsonc/no-parenthesized",
83
+ "jsonc/no-plus-sign",
84
+ "jsonc/no-template-literals",
85
+ "jsonc/no-unicode-codepoint-escapes",
86
+ "jsonc/object-curly-newline",
87
+ "jsonc/object-curly-spacing",
88
+ "jsonc/object-property-newline",
89
+ "jsonc/quote-props",
90
+ "jsonc/quotes",
91
+ "jsonc/sort-array-values",
92
+ "jsonc/sort-keys",
93
+ "jsonc/space-unary-ops",
94
+ "jsonc/valid-json-number",
95
+ ],
96
+ markdown: ["markdown/no-missing-atx-heading-space"],
97
+ n: [
98
+ "n/exports-style",
99
+ "n/file-extension-in-import",
100
+ "n/hashbang",
101
+ "n/prefer-node-protocol",
102
+ "n/shebang",
103
+ ],
104
+ noOnlyTests: ["no-only-tests/no-only-tests"],
105
+ perfectionist: [
106
+ "perfectionist/sort-array-includes",
107
+ "perfectionist/sort-classes",
108
+ "perfectionist/sort-decorators",
109
+ "perfectionist/sort-enums",
110
+ "perfectionist/sort-exports",
111
+ "perfectionist/sort-heritage-clauses",
112
+ "perfectionist/sort-imports",
113
+ "perfectionist/sort-interfaces",
114
+ "perfectionist/sort-intersection-types",
115
+ "perfectionist/sort-jsx-props",
116
+ "perfectionist/sort-maps",
117
+ "perfectionist/sort-modules",
118
+ "perfectionist/sort-named-exports",
119
+ "perfectionist/sort-named-imports",
120
+ "perfectionist/sort-object-types",
121
+ "perfectionist/sort-objects",
122
+ "perfectionist/sort-sets",
123
+ "perfectionist/sort-switch-case",
124
+ "perfectionist/sort-union-types",
125
+ "perfectionist/sort-variable-declarations",
126
+ ],
127
+ pnpm: [
128
+ "pnpm/json-enforce-catalog",
129
+ "pnpm/json-prefer-workspace-settings",
130
+ "pnpm/json-valid-catalog",
131
+ "pnpm/yaml-no-duplicate-catalog-item",
132
+ "pnpm/yaml-no-unused-catalog-item",
133
+ ],
134
+ react: [
135
+ "react/destructuring-assignment",
136
+ "react/function-component-definition",
137
+ "react/jsx-boolean-value",
138
+ "react/jsx-closing-bracket-location",
139
+ "react/jsx-closing-tag-location",
140
+ "react/jsx-curly-brace-presence",
141
+ "react/jsx-curly-newline",
142
+ "react/jsx-curly-spacing",
143
+ "react/jsx-equals-spacing",
144
+ "react/jsx-first-prop-new-line",
145
+ "react/jsx-fragments",
146
+ "react/jsx-indent",
147
+ "react/jsx-indent-props",
148
+ "react/jsx-max-props-per-line",
149
+ "react/jsx-newline",
150
+ "react/jsx-no-leaked-render",
151
+ "react/jsx-no-target-blank",
152
+ "react/jsx-no-useless-fragment",
153
+ "react/jsx-one-expression-per-line",
154
+ "react/jsx-props-no-multi-spaces",
155
+ "react/jsx-sort-props",
156
+ "react/jsx-space-before-closing",
157
+ "react/jsx-tag-spacing",
158
+ "react/jsx-wrap-multilines",
159
+ "react/no-arrow-function-lifecycle",
160
+ "react/no-unknown-property",
161
+ "react/prefer-read-only-props",
162
+ "react/self-closing-comp",
163
+ "react/sort-prop-types",
164
+ ],
165
+ reactHooks: ["react-hooks/exhaustive-deps"],
166
+ reactRefresh: [],
167
+ stylistic: [
168
+ "@stylistic/array-bracket-newline",
169
+ "@stylistic/array-bracket-spacing",
170
+ "@stylistic/array-element-newline",
171
+ "@stylistic/arrow-parens",
172
+ "@stylistic/arrow-spacing",
173
+ "@stylistic/block-spacing",
174
+ "@stylistic/brace-style",
175
+ "@stylistic/comma-dangle",
176
+ "@stylistic/comma-spacing",
177
+ "@stylistic/comma-style",
178
+ "@stylistic/computed-property-spacing",
179
+ "@stylistic/curly-newline",
180
+ "@stylistic/dot-location",
181
+ "@stylistic/eol-last",
182
+ "@stylistic/func-call-spacing",
183
+ "@stylistic/function-call-argument-newline",
184
+ "@stylistic/function-call-spacing",
185
+ "@stylistic/function-paren-newline",
186
+ "@stylistic/generator-star-spacing",
187
+ "@stylistic/implicit-arrow-linebreak",
188
+ "@stylistic/indent",
189
+ "@stylistic/indent-binary-ops",
190
+ "@stylistic/jsx-closing-bracket-location",
191
+ "@stylistic/jsx-closing-tag-location",
192
+ "@stylistic/jsx-curly-brace-presence",
193
+ "@stylistic/jsx-curly-newline",
194
+ "@stylistic/jsx-curly-spacing",
195
+ "@stylistic/jsx-equals-spacing",
196
+ "@stylistic/jsx-first-prop-new-line",
197
+ "@stylistic/jsx-function-call-newline",
198
+ "@stylistic/jsx-indent",
199
+ "@stylistic/jsx-indent-props",
200
+ "@stylistic/jsx-max-props-per-line",
201
+ "@stylistic/jsx-newline",
202
+ "@stylistic/jsx-one-expression-per-line",
203
+ "@stylistic/jsx-props-no-multi-spaces",
204
+ "@stylistic/jsx-quotes",
205
+ "@stylistic/jsx-self-closing-comp",
206
+ "@stylistic/jsx-sort-props",
207
+ "@stylistic/jsx-tag-spacing",
208
+ "@stylistic/jsx-wrap-multilines",
209
+ "@stylistic/key-spacing",
210
+ "@stylistic/keyword-spacing",
211
+ "@stylistic/linebreak-style",
212
+ "@stylistic/lines-around-comment",
213
+ "@stylistic/lines-between-class-members",
214
+ "@stylistic/member-delimiter-style",
215
+ "@stylistic/multiline-comment-style",
216
+ "@stylistic/multiline-ternary",
217
+ "@stylistic/new-parens",
218
+ "@stylistic/newline-per-chained-call",
219
+ "@stylistic/no-confusing-arrow",
220
+ "@stylistic/no-extra-parens",
221
+ "@stylistic/no-extra-semi",
222
+ "@stylistic/no-floating-decimal",
223
+ "@stylistic/no-multi-spaces",
224
+ "@stylistic/no-multiple-empty-lines",
225
+ "@stylistic/no-trailing-spaces",
226
+ "@stylistic/no-whitespace-before-property",
227
+ "@stylistic/nonblock-statement-body-position",
228
+ "@stylistic/object-curly-newline",
229
+ "@stylistic/object-curly-spacing",
230
+ "@stylistic/object-property-newline",
231
+ "@stylistic/one-var-declaration-per-line",
232
+ "@stylistic/operator-linebreak",
233
+ "@stylistic/padded-blocks",
234
+ "@stylistic/padding-line-between-statements",
235
+ "@stylistic/quote-props",
236
+ "@stylistic/quotes",
237
+ "@stylistic/rest-spread-spacing",
238
+ "@stylistic/semi",
239
+ "@stylistic/semi-spacing",
240
+ "@stylistic/semi-style",
241
+ "@stylistic/space-before-blocks",
242
+ "@stylistic/space-before-function-paren",
243
+ "@stylistic/space-in-parens",
244
+ "@stylistic/space-infix-ops",
245
+ "@stylistic/space-unary-ops",
246
+ "@stylistic/spaced-comment",
247
+ "@stylistic/switch-colon-spacing",
248
+ "@stylistic/template-curly-spacing",
249
+ "@stylistic/template-tag-spacing",
250
+ "@stylistic/type-annotation-spacing",
251
+ "@stylistic/type-generic-spacing",
252
+ "@stylistic/type-named-tuple-spacing",
253
+ "@stylistic/wrap-iife",
254
+ "@stylistic/wrap-regex",
255
+ "@stylistic/yield-star-spacing",
256
+ ],
257
+ tsdoc: [],
258
+ typescript: [
259
+ "@typescript-eslint/array-type",
260
+ "@typescript-eslint/ban-tslint-comment",
261
+ "@typescript-eslint/consistent-generic-constructors",
262
+ "@typescript-eslint/consistent-indexed-object-style",
263
+ "@typescript-eslint/consistent-type-assertions",
264
+ "@typescript-eslint/consistent-type-definitions",
265
+ "@typescript-eslint/consistent-type-exports",
266
+ "@typescript-eslint/consistent-type-imports",
267
+ "@typescript-eslint/dot-notation",
268
+ "@typescript-eslint/explicit-member-accessibility",
269
+ "@typescript-eslint/method-signature-style",
270
+ "@typescript-eslint/no-array-constructor",
271
+ "@typescript-eslint/no-confusing-void-expression",
272
+ "@typescript-eslint/no-duplicate-type-constituents",
273
+ "@typescript-eslint/no-dynamic-delete",
274
+ "@typescript-eslint/no-empty-interface",
275
+ "@typescript-eslint/no-explicit-any",
276
+ "@typescript-eslint/no-extra-non-null-assertion",
277
+ "@typescript-eslint/no-import-type-side-effects",
278
+ "@typescript-eslint/no-inferrable-types",
279
+ "@typescript-eslint/no-meaningless-void-operator",
280
+ "@typescript-eslint/no-restricted-types",
281
+ "@typescript-eslint/no-unnecessary-boolean-literal-compare",
282
+ "@typescript-eslint/no-unnecessary-qualifier",
283
+ "@typescript-eslint/no-unnecessary-template-expression",
284
+ "@typescript-eslint/no-unnecessary-type-arguments",
285
+ "@typescript-eslint/no-unnecessary-type-assertion",
286
+ "@typescript-eslint/no-useless-empty-export",
287
+ "@typescript-eslint/no-wrapper-object-types",
288
+ "@typescript-eslint/non-nullable-type-assertion-style",
289
+ "@typescript-eslint/prefer-as-const",
290
+ "@typescript-eslint/prefer-destructuring",
291
+ "@typescript-eslint/prefer-function-type",
292
+ "@typescript-eslint/prefer-includes",
293
+ "@typescript-eslint/prefer-namespace-keyword",
294
+ "@typescript-eslint/prefer-optional-chain",
295
+ "@typescript-eslint/prefer-readonly",
296
+ "@typescript-eslint/prefer-reduce-type-parameter",
297
+ "@typescript-eslint/prefer-regexp-exec",
298
+ "@typescript-eslint/prefer-return-this-type",
299
+ "@typescript-eslint/prefer-string-starts-ends-with",
300
+ "@typescript-eslint/prefer-ts-expect-error",
301
+ "@typescript-eslint/promise-function-async",
302
+ "@typescript-eslint/return-await",
303
+ "@typescript-eslint/sort-type-constituents",
304
+ ],
305
+ unicorn: [
306
+ "unicorn/better-regex",
307
+ "unicorn/catch-error-name",
308
+ "unicorn/consistent-assert",
309
+ "unicorn/consistent-date-clone",
310
+ "unicorn/consistent-destructuring",
311
+ "unicorn/consistent-empty-array-spread",
312
+ "unicorn/consistent-existence-index-check",
313
+ "unicorn/custom-error-definition",
314
+ "unicorn/empty-brace-spaces",
315
+ "unicorn/escape-case",
316
+ "unicorn/explicit-length-check",
317
+ "unicorn/new-for-builtins",
318
+ "unicorn/no-array-for-each",
319
+ "unicorn/no-array-method-this-argument",
320
+ "unicorn/no-await-expression-member",
321
+ "unicorn/no-console-spaces",
322
+ "unicorn/no-for-loop",
323
+ "unicorn/no-hex-escape",
324
+ "unicorn/no-instanceof-builtins",
325
+ "unicorn/no-lonely-if",
326
+ "unicorn/no-named-default",
327
+ "unicorn/no-negated-condition",
328
+ "unicorn/no-nested-ternary",
329
+ "unicorn/no-new-array",
330
+ "unicorn/no-new-buffer",
331
+ "unicorn/no-null",
332
+ "unicorn/no-single-promise-in-promise-methods",
333
+ "unicorn/no-static-only-class",
334
+ "unicorn/no-typeof-undefined",
335
+ "unicorn/no-unnecessary-array-flat-depth",
336
+ "unicorn/no-unnecessary-array-splice-count",
337
+ "unicorn/no-unnecessary-await",
338
+ "unicorn/no-unnecessary-slice-end",
339
+ "unicorn/no-unreadable-array-destructuring",
340
+ "unicorn/no-useless-fallback-in-spread",
341
+ "unicorn/no-useless-length-check",
342
+ "unicorn/no-useless-promise-resolve-reject",
343
+ "unicorn/no-useless-spread",
344
+ "unicorn/no-useless-undefined",
345
+ "unicorn/no-zero-fractions",
346
+ "unicorn/number-literal-case",
347
+ "unicorn/numeric-separators-style",
348
+ "unicorn/prefer-add-event-listener",
349
+ "unicorn/prefer-array-find",
350
+ "unicorn/prefer-array-flat",
351
+ "unicorn/prefer-array-flat-map",
352
+ "unicorn/prefer-array-index-of",
353
+ "unicorn/prefer-array-some",
354
+ "unicorn/prefer-at",
355
+ "unicorn/prefer-date-now",
356
+ "unicorn/prefer-default-parameters",
357
+ "unicorn/prefer-dom-node-append",
358
+ "unicorn/prefer-dom-node-dataset",
359
+ "unicorn/prefer-dom-node-remove",
360
+ "unicorn/prefer-export-from",
361
+ "unicorn/prefer-global-this",
362
+ "unicorn/prefer-import-meta-properties",
363
+ "unicorn/prefer-includes",
364
+ "unicorn/prefer-json-parse-buffer",
365
+ "unicorn/prefer-keyboard-event-key",
366
+ "unicorn/prefer-math-min-max",
367
+ "unicorn/prefer-math-trunc",
368
+ "unicorn/prefer-modern-dom-apis",
369
+ "unicorn/prefer-modern-math-apis",
370
+ "unicorn/prefer-module",
371
+ "unicorn/prefer-native-coercion-functions",
372
+ "unicorn/prefer-negative-index",
373
+ "unicorn/prefer-node-protocol",
374
+ "unicorn/prefer-number-properties",
375
+ "unicorn/prefer-object-from-entries",
376
+ "unicorn/prefer-optional-catch-binding",
377
+ "unicorn/prefer-prototype-methods",
378
+ "unicorn/prefer-query-selector",
379
+ "unicorn/prefer-reflect-apply",
380
+ "unicorn/prefer-regexp-test",
381
+ "unicorn/prefer-set-has",
382
+ "unicorn/prefer-set-size",
383
+ "unicorn/prefer-single-call",
384
+ "unicorn/prefer-spread",
385
+ "unicorn/prefer-string-raw",
386
+ "unicorn/prefer-string-replace-all",
387
+ "unicorn/prefer-string-slice",
388
+ "unicorn/prefer-string-starts-ends-with",
389
+ "unicorn/prefer-string-trim-start-end",
390
+ "unicorn/prefer-switch",
391
+ "unicorn/prefer-ternary",
392
+ "unicorn/prefer-type-error",
393
+ "unicorn/prevent-abbreviations",
394
+ "unicorn/relative-url-style",
395
+ "unicorn/require-array-join-separator",
396
+ "unicorn/require-number-to-fixed-digits-argument",
397
+ "unicorn/string-content",
398
+ "unicorn/switch-case-braces",
399
+ "unicorn/template-indent",
400
+ "unicorn/text-encoding-identifier-case",
401
+ "unicorn/throw-new-error",
402
+ ],
403
+ unusedImports: [
404
+ "unused-imports/no-unused-imports",
405
+ "unused-imports/no-unused-vars",
406
+ ],
407
+ vitest: [
408
+ "vitest/consistent-test-it",
409
+ "vitest/no-alias-methods",
410
+ "vitest/no-focused-tests",
411
+ "vitest/no-identical-title",
412
+ "vitest/no-import-node-test",
413
+ "vitest/no-interpolation-in-snapshots",
414
+ "vitest/no-test-prefixes",
415
+ "vitest/padding-around-after-all-blocks",
416
+ "vitest/padding-around-after-each-blocks",
417
+ "vitest/padding-around-all",
418
+ "vitest/padding-around-before-all-blocks",
419
+ "vitest/padding-around-before-each-blocks",
420
+ "vitest/padding-around-describe-blocks",
421
+ "vitest/padding-around-expect-groups",
422
+ "vitest/padding-around-test-blocks",
423
+ "vitest/prefer-called-with",
424
+ "vitest/prefer-comparison-matcher",
425
+ "vitest/prefer-describe-function-title",
426
+ "vitest/prefer-expect-resolves",
427
+ "vitest/prefer-lowercase-title",
428
+ "vitest/prefer-mock-promise-shorthand",
429
+ "vitest/prefer-spy-on",
430
+ "vitest/prefer-strict-boolean-matchers",
431
+ "vitest/prefer-to-be",
432
+ "vitest/prefer-to-be-falsy",
433
+ "vitest/prefer-to-be-object",
434
+ "vitest/prefer-to-be-truthy",
435
+ "vitest/prefer-to-contain",
436
+ "vitest/prefer-to-have-length",
437
+ "vitest/prefer-todo",
438
+ "vitest/prefer-vi-mocked",
439
+ "vitest/require-mock-type-parameters",
440
+ "vitest/valid-expect",
441
+ "vitest/valid-title",
442
+ ],
443
+ };
@@ -1 +1 @@
1
- export declare const VERSION = "0.3.7";
1
+ export declare const VERSION = "0.4.1";
@@ -1 +1 @@
1
- export const VERSION = "0.3.7";
1
+ export const VERSION = "0.4.1";
@@ -5,5 +5,5 @@ export { VERSION } from "./generated/version.js";
5
5
  export * as globs from "./globs.js";
6
6
  export * from "./plugins.js";
7
7
  export { jsseReact } from "./presets.js";
8
- export * from "./types.js";
8
+ export type * from "./types.js";
9
9
  export * from "./utils.js";
package/dist/esm/index.js CHANGED
@@ -5,5 +5,4 @@ export { VERSION } from "./generated/version.js";
5
5
  export * as globs from "./globs.js";
6
6
  export * from "./plugins.js";
7
7
  export { jsseReact } from "./presets.js";
8
- export * from "./types.js";
9
8
  export * from "./utils.js";
@@ -1,5 +1,5 @@
1
1
  import Debug from "debug";
2
- export declare const debug: Debug.Debugger;
2
+ export declare const dbg: Debug.Debugger;
3
3
  declare const LAGER_LEVELS: {
4
4
  readonly trace: 10;
5
5
  readonly debug: 20;
package/dist/esm/lager.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable no-console */
2
2
  /* eslint-disable perfectionist/sort-objects */
3
3
  import Debug from "debug";
4
- export const debug = Debug("jsse:eslint-config");
4
+ export const dbg = Debug("jsse:eslint-config");
5
5
  const LAGER_LEVELS = {
6
6
  trace: 10,
7
7
  debug: 20,
@@ -1,15 +1,13 @@
1
- /**
2
- * ALL PLUGINS STATICALLY IMPORTED
3
- */
4
- export { pluginAntfu, pluginEslintComments, pluginImport, pluginN, pluginPerfectionist, pluginUnicorn, pluginUnusedImports, } from "./plugins.js";
5
- export { default as pluginMarkdown } from "@eslint/markdown";
1
+ import * as pluginReactRefresh from "eslint-plugin-react-refresh";
2
+ export { pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImport, pluginN, pluginPerfectionist, pluginPnpm, pluginUnicorn, pluginUnusedImports, } from "./plugins.js";
6
3
  /**
7
4
  * The main `plugins.ts` does not export these plugins, but
8
5
  * exports functions that dynamically import them, so
9
6
  * we provide them here for testing etc
10
7
  */
8
+ export { default as pluginMarkdown } from "@eslint/markdown";
11
9
  export { default as pluginStylistic } from "@stylistic/eslint-plugin";
12
- export { default as pluginTs } from "@typescript-eslint/eslint-plugin";
10
+ export { default as pluginTypescript } from "@typescript-eslint/eslint-plugin";
13
11
  export * as parserTs from "@typescript-eslint/parser";
14
12
  export { default as pluginVitest } from "@vitest/eslint-plugin";
15
13
  export { default as pluginJsdoc } from "eslint-plugin-jsdoc";
@@ -17,7 +15,12 @@ export * as pluginJsonc from "eslint-plugin-jsonc";
17
15
  export { default as pluginNoOnlyTests } from "eslint-plugin-no-only-tests";
18
16
  export { default as pluginReact } from "eslint-plugin-react";
19
17
  export { default as pluginReactHooks } from "eslint-plugin-react-hooks";
20
- export * as pluginReactRefresh from "eslint-plugin-react-refresh";
21
- export { default as pluginTailwind } from "eslint-plugin-tailwindcss";
22
18
  export { default as pluginTsdoc } from "eslint-plugin-tsdoc";
23
19
  export { default as parserJsonc } from "jsonc-eslint-parser";
20
+ export { pluginReactRefresh };
21
+ type PluginIndexEntry = {
22
+ plugin: any;
23
+ prefix: string;
24
+ };
25
+ type PluginsIndex = Record<string, PluginIndexEntry>;
26
+ export declare const plugindex: PluginsIndex;
@@ -1,26 +1,119 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1
+ /* eslint-disable unicorn/prefer-export-from */
2
+ import pluginMarkdown from "@eslint/markdown";
2
3
  // @ts-nocheck
3
- /**
4
- * ALL PLUGINS STATICALLY IMPORTED
5
- */
6
- export { pluginAntfu, pluginEslintComments, pluginImport, pluginN, pluginPerfectionist, pluginUnicorn, pluginUnusedImports, } from "./plugins.js";
7
- export { default as pluginMarkdown } from "@eslint/markdown";
4
+ import pluginStylistic from "@stylistic/eslint-plugin";
5
+ import pluginTypescript from "@typescript-eslint/eslint-plugin";
6
+ import pluginVitest from "@vitest/eslint-plugin";
7
+ import pluginJsdoc from "eslint-plugin-jsdoc";
8
+ import * as pluginJsonc from "eslint-plugin-jsonc";
9
+ // @ts-expect-error - no types
10
+ import pluginNoOnlyTests from "eslint-plugin-no-only-tests";
11
+ import pluginReact from "eslint-plugin-react";
12
+ import pluginReactHooks from "eslint-plugin-react-hooks";
13
+ import * as pluginReactRefresh from "eslint-plugin-react-refresh";
14
+ import pluginTsdoc from "eslint-plugin-tsdoc";
15
+ import { pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImport, pluginN, pluginPerfectionist, pluginPnpm, pluginUnicorn, pluginUnusedImports, } from "./plugins.js";
16
+ export { pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImport, pluginN, pluginPerfectionist, pluginPnpm, pluginUnicorn, pluginUnusedImports, } from "./plugins.js";
8
17
  /**
9
18
  * The main `plugins.ts` does not export these plugins, but
10
19
  * exports functions that dynamically import them, so
11
20
  * we provide them here for testing etc
12
21
  */
22
+ export { default as pluginMarkdown } from "@eslint/markdown";
13
23
  export { default as pluginStylistic } from "@stylistic/eslint-plugin";
14
- export { default as pluginTs } from "@typescript-eslint/eslint-plugin";
24
+ export { default as pluginTypescript } from "@typescript-eslint/eslint-plugin";
15
25
  export * as parserTs from "@typescript-eslint/parser";
16
26
  export { default as pluginVitest } from "@vitest/eslint-plugin";
17
27
  export { default as pluginJsdoc } from "eslint-plugin-jsdoc";
18
28
  export * as pluginJsonc from "eslint-plugin-jsonc";
19
- // TODO: export { default as pluginMarkdown } from "@eslint/markdown";
29
+ // @ts-expect-error - no types
20
30
  export { default as pluginNoOnlyTests } from "eslint-plugin-no-only-tests";
21
31
  export { default as pluginReact } from "eslint-plugin-react";
22
32
  export { default as pluginReactHooks } from "eslint-plugin-react-hooks";
23
- export * as pluginReactRefresh from "eslint-plugin-react-refresh";
24
- export { default as pluginTailwind } from "eslint-plugin-tailwindcss";
25
33
  export { default as pluginTsdoc } from "eslint-plugin-tsdoc";
26
34
  export { default as parserJsonc } from "jsonc-eslint-parser";
35
+ export { pluginReactRefresh };
36
+ export const plugindex = {
37
+ antfu: {
38
+ plugin: pluginAntfu,
39
+ prefix: "antfu/",
40
+ },
41
+ deMorgan: {
42
+ plugin: pluginDeMorgan,
43
+ prefix: "de-morgan/",
44
+ },
45
+ eslintComments: {
46
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
47
+ plugin: pluginEslintComments,
48
+ prefix: "eslint-comments/",
49
+ },
50
+ import: {
51
+ plugin: pluginImport,
52
+ prefix: "import/",
53
+ },
54
+ jsdoc: {
55
+ plugin: pluginJsdoc,
56
+ prefix: "jsdoc/",
57
+ },
58
+ jsonc: {
59
+ plugin: pluginJsonc,
60
+ prefix: "jsonc/",
61
+ },
62
+ markdown: {
63
+ plugin: pluginMarkdown,
64
+ prefix: "markdown/",
65
+ },
66
+ n: {
67
+ plugin: pluginN,
68
+ prefix: "n/",
69
+ },
70
+ noOnlyTests: {
71
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
72
+ plugin: pluginNoOnlyTests,
73
+ prefix: "no-only-tests/",
74
+ },
75
+ perfectionist: {
76
+ plugin: pluginPerfectionist,
77
+ prefix: "perfectionist/",
78
+ },
79
+ pnpm: {
80
+ plugin: pluginPnpm,
81
+ prefix: "pnpm/",
82
+ },
83
+ react: {
84
+ plugin: pluginReact,
85
+ prefix: "react/",
86
+ },
87
+ reactHooks: {
88
+ plugin: pluginReactHooks,
89
+ prefix: "react-hooks/",
90
+ },
91
+ reactRefresh: {
92
+ plugin: pluginReactRefresh,
93
+ prefix: "react-refresh/",
94
+ },
95
+ stylistic: {
96
+ plugin: pluginStylistic,
97
+ prefix: "@stylistic/",
98
+ },
99
+ tsdoc: {
100
+ plugin: pluginTsdoc,
101
+ prefix: "tsdoc/",
102
+ },
103
+ typescript: {
104
+ plugin: pluginTypescript,
105
+ prefix: "@typescript-eslint/",
106
+ },
107
+ unicorn: {
108
+ plugin: pluginUnicorn,
109
+ prefix: "unicorn/",
110
+ },
111
+ unusedImports: {
112
+ plugin: pluginUnusedImports,
113
+ prefix: "unused-imports/",
114
+ },
115
+ vitest: {
116
+ plugin: pluginVitest,
117
+ prefix: "vitest/",
118
+ },
119
+ };
@@ -3,9 +3,11 @@ export { default as pluginEslintComments } from "@eslint-community/eslint-plugin
3
3
  export { default as pluginTs } from "@typescript-eslint/eslint-plugin";
4
4
  export * as parserTs from "@typescript-eslint/parser";
5
5
  export { default as pluginAntfu } from "eslint-plugin-antfu";
6
+ export { default as pluginDeMorgan } from "eslint-plugin-de-morgan";
6
7
  export * as pluginImport from "eslint-plugin-import-x";
7
8
  export { default as pluginN } from "eslint-plugin-n";
8
9
  export { default as pluginPerfectionist } from "eslint-plugin-perfectionist";
10
+ export { default as pluginPnpm } from "eslint-plugin-pnpm";
9
11
  export { default as pluginUnicorn } from "eslint-plugin-unicorn";
10
12
  export { default as pluginUnusedImports } from "eslint-plugin-unused-imports";
11
13
  export declare function importPluginUnicorn(): Promise<{
@@ -1566,9 +1568,3 @@ export declare function importPluginStylistic(): Promise<{
1566
1568
  configs: import("eslint").ESLint.Plugin["configs"] & import("@stylistic/eslint-plugin").Configs;
1567
1569
  };
1568
1570
  }>;
1569
- export declare function importPluginTailwind(): Promise<{
1570
- pluginTailwind: any;
1571
- }>;
1572
- export declare function safeImportPluginTailwind(): Promise<import("neverthrow").Ok<{
1573
- pluginTailwind: any;
1574
- }, never> | import("neverthrow").Err<never, Error>>;