@vef-framework-react/dev 2.4.4 → 2.5.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.
@@ -1,756 +1,19 @@
1
- import { kitConfig as l, localReactPlugin as c, localReactRules as p } from "./custom-react-rules.js";
2
- import u from "@eslint-community/eslint-plugin-eslint-comments/configs";
3
- import m from "@eslint-react/eslint-plugin";
4
- import f from "@eslint/js";
5
- import d from "@stylistic/eslint-plugin";
6
- import y from "@tanstack/eslint-plugin-query";
7
- import g from "@tanstack/eslint-plugin-router";
8
- import b from "eslint-config-flat-gitignore";
9
- import w from "eslint-plugin-antfu";
10
- import o from "eslint-plugin-format";
11
- import v from "eslint-plugin-import-lite";
12
- import x from "eslint-plugin-jsdoc";
13
- import h from "eslint-plugin-perfectionist";
14
- import k from "eslint-plugin-react-dom";
15
- import j from "eslint-plugin-react-hooks";
16
- import S from "eslint-plugin-react-jsx";
17
- import P from "eslint-plugin-react-naming-convention";
18
- import C from "eslint-plugin-react-web-api";
19
- import U from "eslint-plugin-regexp";
20
- import L from "eslint-plugin-unicorn";
21
- import R from "eslint-plugin-unused-imports";
22
- import { defineConfig as _ } from "eslint/config";
23
- import t from "typescript-eslint";
24
- var E = {
25
- arrowParens: "avoid",
26
- bracketSameLine: !1,
27
- bracketSpacing: !0,
28
- endOfLine: "lf",
29
- htmlWhitespaceSensitivity: "strict",
30
- jsxSingleQuote: !1,
31
- objectWrap: "preserve",
32
- printWidth: 120,
33
- proseWrap: "never",
34
- quoteProps: "as-needed",
35
- semi: !0,
36
- singleAttributePerLine: !1,
37
- singleQuote: !1,
38
- tabWidth: 2,
39
- trailingComma: "none",
40
- useTabs: !1
41
- }, O = {
42
- "accessor-pairs": ["error", {
43
- enforceForClassMembers: !0,
44
- setWithoutGet: !0
45
- }],
46
- "array-callback-return": ["error", { allowImplicit: !0 }],
47
- "arrow-body-style": [
48
- "error",
49
- "as-needed",
50
- { requireReturnForObjectLiteral: !0 }
51
- ],
52
- "block-scoped-var": "error",
53
- camelcase: "off",
54
- curly: ["error", "all"],
55
- "default-case-last": "error",
56
- "dot-notation": ["error", { allowKeywords: !0 }],
57
- eqeqeq: ["error", "smart"],
58
- "func-style": [
59
- "error",
60
- "declaration",
61
- { allowArrowFunctions: !0 }
62
- ],
63
- "new-cap": ["error", {
64
- capIsNew: !1,
65
- newIsCap: !0,
66
- properties: !0
67
- }],
68
- "no-alert": "error",
69
- "no-caller": "error",
70
- "no-cond-assign": ["error", "always"],
71
- "no-empty": ["error", { allowEmptyCatch: !0 }],
72
- "no-eq-null": "error",
73
- "no-eval": "error",
74
- "no-extend-native": "error",
75
- "no-extra-bind": "error",
76
- "no-extra-label": "error",
77
- "no-implied-eval": "error",
78
- "no-invalid-this": "error",
79
- "no-iterator": "error",
80
- "no-labels": ["error", {
81
- allowLoop: !1,
82
- allowSwitch: !1
83
- }],
84
- "no-lone-blocks": "error",
85
- "no-multi-str": "error",
86
- "no-new": "error",
87
- "no-new-func": "error",
88
- "no-new-wrappers": "error",
89
- "no-obj-calls": "error",
90
- "no-octal-escape": "error",
91
- "no-promise-executor-return": ["error", { allowVoid: !0 }],
92
- "no-proto": "error",
93
- "no-restricted-globals": [
94
- "error",
95
- {
96
- message: "Use `globalThis` instead.",
97
- name: "global"
98
- },
99
- {
100
- message: "Use `globalThis` instead.",
101
- name: "self"
102
- }
103
- ],
104
- "no-restricted-properties": [
105
- "error",
106
- {
107
- message: "Use `Object.getPrototypeOf` or `Object.setPrototypeOf` instead.",
108
- property: "__proto__"
109
- },
110
- {
111
- message: "Use `Object.defineProperty` instead.",
112
- property: "__defineGetter__"
113
- },
114
- {
115
- message: "Use `Object.defineProperty` instead.",
116
- property: "__defineSetter__"
117
- },
118
- {
119
- message: "Use `Object.getOwnPropertyDescriptor` instead.",
120
- property: "__lookupGetter__"
121
- },
122
- {
123
- message: "Use `Object.getOwnPropertyDescriptor` instead.",
124
- property: "__lookupSetter__"
125
- }
126
- ],
127
- "no-restricted-syntax": [
128
- "error",
129
- "TSEnumDeclaration[const=true]",
130
- "TSExportAssignment",
131
- {
132
- selector: "JSXAttribute[name.name='ref'][value.type='Literal']",
133
- message: "Use callback refs or useRef instead of string refs."
134
- },
135
- {
136
- selector: "JSXAttribute[name.name='ref'] > JSXExpressionContainer > Literal",
137
- message: "Use callback refs or useRef instead of string refs."
138
- },
139
- {
140
- selector: "JSXAttribute[name.name='ref'] > JSXExpressionContainer > TemplateLiteral",
141
- message: "Use callback refs or useRef instead of string refs."
142
- }
143
- ],
144
- "no-self-compare": "error",
145
- "no-sequences": "error",
146
- "no-template-curly-in-string": "error",
147
- "no-throw-literal": "error",
148
- "no-undef-init": "error",
149
- "no-unmodified-loop-condition": "error",
150
- "no-unneeded-ternary": ["error", { defaultAssignment: !1 }],
151
- "no-unreachable": "error",
152
- "no-unreachable-loop": "error",
153
- "no-unused-vars": "off",
154
- "no-useless-call": "error",
155
- "no-useless-computed-key": "error",
156
- "no-useless-concat": "error",
157
- "no-useless-rename": "error",
158
- "no-useless-return": "error",
159
- "object-shorthand": [
160
- "error",
161
- "always",
162
- {
163
- avoidQuotes: !0,
164
- ignoreConstructors: !1
165
- }
166
- ],
167
- "one-var": ["error", { initialized: "never" }],
168
- "prefer-arrow-callback": ["error", {
169
- allowNamedFunctions: !1,
170
- allowUnboundThis: !0
171
- }],
172
- "prefer-const": ["error", {
173
- destructuring: "all",
174
- ignoreReadBeforeAssign: !0
175
- }],
176
- "prefer-destructuring": "error",
177
- "prefer-exponentiation-operator": "error",
178
- "prefer-named-capture-group": "error",
179
- "prefer-numeric-literals": "error",
180
- "prefer-object-has-own": "error",
181
- "prefer-object-spread": "error",
182
- "prefer-promise-reject-errors": "error",
183
- "prefer-regex-literals": ["error", { disallowRedundantWrapping: !0 }],
184
- "prefer-template": "error",
185
- "require-atomic-updates": "error",
186
- "require-await": "error",
187
- "symbol-description": "error",
188
- "unicode-bom": ["error", "never"],
189
- "use-isnan": ["error", {
190
- enforceForIndexOf: !0,
191
- enforceForSwitchCase: !0
192
- }],
193
- "valid-typeof": ["error", { requireStringLiterals: !0 }],
194
- yoda: ["error", "never"]
195
- }, A = {
196
- "@typescript-eslint/array-type": ["error", {
197
- default: "array-simple",
198
- readonly: "array-simple"
199
- }],
200
- "@typescript-eslint/consistent-type-assertions": ["error", {
201
- assertionStyle: "as",
202
- objectLiteralTypeAssertions: "allow"
203
- }],
204
- "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
205
- "@typescript-eslint/max-params": ["error", { max: 5 }],
206
- "@typescript-eslint/method-signature-style": ["error", "property"],
207
- "@typescript-eslint/naming-convention": [
208
- "error",
209
- {
210
- selector: "default",
211
- format: ["camelCase"],
212
- leadingUnderscore: "forbid",
213
- trailingUnderscore: "forbid"
214
- },
215
- {
216
- selector: "variable",
217
- format: [
218
- "camelCase",
219
- "UPPER_CASE",
220
- "PascalCase"
221
- ],
222
- leadingUnderscore: "forbid",
223
- trailingUnderscore: "forbid"
224
- },
225
- {
226
- selector: "function",
227
- format: ["camelCase", "PascalCase"],
228
- leadingUnderscore: "forbid",
229
- trailingUnderscore: "forbid"
230
- },
231
- {
232
- selector: "parameter",
233
- format: ["camelCase", "PascalCase"],
234
- leadingUnderscore: "allow",
235
- trailingUnderscore: "forbid"
236
- },
237
- {
238
- selector: "typeLike",
239
- format: ["PascalCase"],
240
- leadingUnderscore: "forbid",
241
- trailingUnderscore: "forbid"
242
- },
243
- {
244
- selector: "enumMember",
245
- format: ["PascalCase"],
246
- leadingUnderscore: "forbid",
247
- trailingUnderscore: "forbid"
248
- },
249
- {
250
- selector: "import",
251
- format: null
252
- },
253
- {
254
- selector: [
255
- "objectLiteralProperty",
256
- "typeProperty",
257
- "classProperty"
258
- ],
259
- format: [
260
- "camelCase",
261
- "PascalCase",
262
- "snake_case"
263
- ],
264
- leadingUnderscore: "forbid",
265
- trailingUnderscore: "forbid"
266
- },
267
- {
268
- selector: [
269
- "objectLiteralMethod",
270
- "typeMethod",
271
- "classMethod"
272
- ],
273
- format: ["camelCase", "PascalCase"],
274
- leadingUnderscore: "forbid",
275
- trailingUnderscore: "forbid"
276
- },
277
- {
278
- selector: [
279
- "objectLiteralProperty",
280
- "typeProperty",
281
- "classProperty"
282
- ],
283
- format: null,
284
- modifiers: ["requiresQuotes"]
285
- }
286
- ],
287
- "@typescript-eslint/no-dynamic-delete": "off",
288
- "@typescript-eslint/no-empty-object-type": ["error", { allowInterfaces: "always" }],
289
- "@typescript-eslint/no-explicit-any": "off",
290
- "@typescript-eslint/no-import-type-side-effects": "error",
291
- "@typescript-eslint/no-invalid-void-type": "off",
292
- "@typescript-eslint/no-non-null-assertion": "off",
293
- "@typescript-eslint/no-this-alias": "off",
294
- "@typescript-eslint/no-unsafe-assignment": "off",
295
- "@typescript-eslint/no-unsafe-call": "off",
296
- "@typescript-eslint/no-unsafe-function-type": "off",
297
- "@typescript-eslint/no-unsafe-member-access": "off",
298
- "@typescript-eslint/no-unsafe-return": "off",
299
- "@typescript-eslint/no-unused-expressions": ["error", { enforceForJSX: !0 }],
300
- "@typescript-eslint/no-unused-vars": "off"
301
- }, D = {
302
- "import-lite/consistent-type-specifier-style": ["error", "top-level"],
303
- "import-lite/first": "error",
304
- "import-lite/newline-after-import": ["error", { count: 1 }],
305
- "import-lite/no-duplicates": "error",
306
- "import-lite/no-mutable-exports": "error",
307
- "import-lite/no-named-default": "error"
308
- }, I = {
309
- "unicorn/consistent-empty-array-spread": "error",
310
- "unicorn/error-message": "error",
311
- "unicorn/escape-case": "error",
312
- "unicorn/filename-case": ["error", {
313
- case: "kebabCase",
314
- ignore: [
315
- "README.md",
316
- "AGENTS.md",
317
- "CLAUDE.md"
318
- ]
319
- }],
320
- "unicorn/import-style": ["error", {
321
- checkDynamicImport: !1,
322
- extendDefaultStyles: !1,
323
- styles: {
324
- react: { named: !0 },
325
- "react-dom": { named: !0 },
326
- "react-dom/client": { named: !0 }
327
- }
328
- }],
329
- "unicorn/new-for-builtins": "error",
330
- "unicorn/no-array-for-each": "error",
331
- "unicorn/no-array-reduce": "off",
332
- "unicorn/no-console-spaces": "error",
333
- "unicorn/no-empty-file": "error",
334
- "unicorn/no-for-loop": "error",
335
- "unicorn/no-nested-ternary": "off",
336
- "unicorn/no-new-array": "error",
337
- "unicorn/no-new-buffer": "error",
338
- "unicorn/no-null": "off",
339
- "unicorn/no-unnecessary-await": "error",
340
- "unicorn/no-unnecessary-polyfills": "error",
341
- "unicorn/no-unused-properties": "error",
342
- "unicorn/no-useless-promise-resolve-reject": "error",
343
- "unicorn/no-useless-spread": "error",
344
- "unicorn/no-useless-switch-case": "error",
345
- "unicorn/no-useless-undefined": "error",
346
- "unicorn/number-literal-case": "error",
347
- "unicorn/prefer-array-find": "error",
348
- "unicorn/prefer-array-flat": "error",
349
- "unicorn/prefer-array-flat-map": "error",
350
- "unicorn/prefer-array-index-of": "error",
351
- "unicorn/prefer-array-some": "error",
352
- "unicorn/prefer-date-now": "error",
353
- "unicorn/prefer-default-parameters": "error",
354
- "unicorn/prefer-dom-node-text-content": "error",
355
- "unicorn/prefer-event-target": "off",
356
- "unicorn/prefer-includes": "error",
357
- "unicorn/prefer-logical-operator-over-ternary": "error",
358
- "unicorn/prefer-node-protocol": "error",
359
- "unicorn/prefer-number-properties": "error",
360
- "unicorn/prefer-object-from-entries": "error",
361
- "unicorn/prefer-single-call": "error",
362
- "unicorn/prefer-string-raw": "error",
363
- "unicorn/prefer-string-starts-ends-with": "error",
364
- "unicorn/prefer-string-trim-start-end": "error",
365
- "unicorn/prefer-type-error": "error",
366
- "unicorn/prevent-abbreviations": "off",
367
- "unicorn/require-module-specifiers": "off",
368
- "unicorn/text-encoding-identifier-case": ["error", { withDash: !0 }],
369
- "unicorn/throw-new-error": "error"
370
- }, T = {
371
- "react-dom/no-dangerously-set-innerhtml": "error",
372
- "react-dom/no-dangerously-set-innerhtml-with-children": "error",
373
- "react-dom/no-find-dom-node": "error",
374
- "react-dom/no-flush-sync": "error",
375
- "react-dom/no-hydrate": "error",
376
- "react-dom/no-missing-button-type": "error",
377
- "react-dom/no-missing-iframe-sandbox": "error",
378
- "react-dom/no-render": "error",
379
- "react-dom/no-render-return-value": "error",
380
- "react-dom/no-script-url": "error",
381
- "react-dom/no-string-style-prop": "error",
382
- "react-dom/no-unknown-property": ["error", { ignore: ["css"] }],
383
- "react-dom/no-unsafe-iframe-sandbox": "error",
384
- "react-dom/no-unsafe-target-blank": "error",
385
- "react-dom/no-use-form-state": "error",
386
- "react-dom/no-void-elements-with-children": "error",
387
- "@eslint-react/set-state-in-effect": "off",
388
- "@eslint-react/static-components": "off",
389
- "react-jsx/no-key-after-spread": "error",
390
- "react-jsx/no-comment-textnodes": "error",
391
- "react-jsx/no-namespace": "error",
392
- "react-naming-convention/context-name": "error",
393
- "@eslint-react/no-access-state-in-setstate": "error",
394
- "@eslint-react/no-array-index-key": "error",
395
- "@eslint-react/no-children-for-each": "off",
396
- "@eslint-react/no-children-map": "off",
397
- "@eslint-react/no-children-to-array": "off",
398
- "@eslint-react/no-class-component": "error",
399
- "@eslint-react/no-clone-element": "off",
400
- "@eslint-react/no-component-will-mount": "error",
401
- "@eslint-react/no-component-will-receive-props": "error",
402
- "@eslint-react/no-component-will-update": "error",
403
- "@eslint-react/no-context-provider": "error",
404
- "@eslint-react/no-create-ref": "error",
405
- "@eslint-react/no-direct-mutation-state": "error",
406
- "@eslint-react/no-duplicate-key": "error",
407
- "@eslint-react/no-forward-ref": "error",
408
- "@eslint-react/no-missing-component-display-name": "error",
409
- "@eslint-react/no-missing-key": "error",
410
- "@eslint-react/no-nested-component-definitions": "error",
411
- "@eslint-react/no-set-state-in-component-did-mount": "error",
412
- "@eslint-react/no-set-state-in-component-did-update": "error",
413
- "@eslint-react/no-set-state-in-component-will-update": "error",
414
- "@eslint-react/no-unnecessary-use-prefix": "error",
415
- "@eslint-react/no-unsafe-component-will-mount": "error",
416
- "@eslint-react/no-unsafe-component-will-receive-props": "error",
417
- "@eslint-react/no-unsafe-component-will-update": "error",
418
- "@eslint-react/no-unstable-context-value": "error",
419
- "@eslint-react/no-unstable-default-props": "error",
420
- "@eslint-react/no-unused-class-component-members": "error",
421
- "@eslint-react/no-unused-state": "error",
422
- "@eslint-react/no-use-context": "error",
423
- "@eslint-react/unsupported-syntax": "error",
424
- "@eslint-react/use-state": ["error", {
425
- enforceAssignment: !1,
426
- enforceLazyInitialization: !0,
427
- enforceSetterName: !1
428
- }],
429
- "react-web-api/no-leaked-event-listener": "error",
430
- "react-web-api/no-leaked-interval": "error",
431
- "react-web-api/no-leaked-resize-observer": "error",
432
- "react-web-api/no-leaked-timeout": "error"
433
- }, F = { "react-hooks/exhaustive-deps": ["error", { additionalHooks: "^use(Deep|Shallow|Isomorphic)|^useDidUpdate" }] }, J = {
434
- "jsdoc/check-line-alignment": [
435
- "error",
436
- "always",
437
- { tags: [] }
438
- ],
439
- "jsdoc/multiline-blocks": ["error", { noSingleLineBlocks: !0 }],
440
- "jsdoc/no-blank-blocks": "error",
441
- "jsdoc/tag-lines": [
442
- "error",
443
- "never",
444
- { startLines: 1 }
445
- ]
446
- }, q = {
447
- "antfu/consistent-chaining": "error",
448
- "antfu/consistent-list-newline": "error",
449
- "antfu/curly": "error",
450
- "antfu/if-newline": "error",
451
- "antfu/indent-unindent": "error",
452
- "antfu/top-level-function": "error"
453
- }, X = {
454
- "unused-imports/no-unused-imports": "error",
455
- "unused-imports/no-unused-vars": ["error", {
456
- args: "after-used",
457
- argsIgnorePattern: "^_",
458
- vars: "all",
459
- varsIgnorePattern: "^_"
460
- }]
461
- }, N = {
462
- "perfectionist/sort-exports": ["error", {
463
- order: "asc",
464
- type: "natural"
465
- }],
466
- "perfectionist/sort-imports": ["error", {
467
- groups: [
468
- "type-import",
469
- [
470
- "type-internal",
471
- "type-parent",
472
- "type-sibling",
473
- "type-index"
474
- ],
475
- "value-builtin",
476
- "value-external",
477
- "value-internal",
478
- [
479
- "value-parent",
480
- "value-sibling",
481
- "value-index"
482
- ],
483
- ["value-side-effect", "value-side-effect-style"],
484
- "unknown"
485
- ],
486
- newlinesBetween: 1,
487
- order: "asc",
488
- type: "natural"
489
- }],
490
- "perfectionist/sort-named-exports": ["error", {
491
- groups: ["value-export", "type-export"],
492
- newlinesBetween: "ignore",
493
- order: "asc",
494
- type: "natural"
495
- }],
496
- "perfectionist/sort-named-imports": ["error", {
497
- groups: ["value-import", "type-import"],
498
- newlinesBetween: "ignore",
499
- order: "asc",
500
- type: "natural"
501
- }],
502
- "perfectionist/sort-jsx-props": ["error", {
503
- type: "natural",
504
- order: "asc",
505
- ignoreCase: !0,
506
- groups: [
507
- "reserved",
508
- "shorthand-prop",
509
- "unknown",
510
- "multiline-prop",
511
- "callback"
512
- ],
513
- customGroups: [{
514
- groupName: "reserved",
515
- elementNamePattern: "^(key|ref)$"
516
- }, {
517
- groupName: "callback",
518
- elementNamePattern: "^on.+"
519
- }]
520
- }]
521
- }, W = {
522
- "@stylistic/array-bracket-newline": ["error", { multiline: !0 }],
523
- "@stylistic/array-element-newline": ["error", "consistent"],
524
- "@stylistic/arrow-parens": ["error", "as-needed"],
525
- "@stylistic/curly-newline": ["error", { consistent: !0 }],
526
- "@stylistic/function-paren-newline": ["error", "multiline-arguments"],
527
- "@stylistic/generator-star-spacing": ["error", {
528
- after: !0,
529
- before: !1
530
- }],
531
- "@stylistic/implicit-arrow-linebreak": ["error", "beside"],
532
- "@stylistic/jsx-max-props-per-line": ["error", { maximum: {
533
- multi: 1,
534
- single: 5
535
- } }],
536
- "@stylistic/jsx-newline": ["error", {
537
- allowMultilines: !0,
538
- prevent: !0
539
- }],
540
- "@stylistic/jsx-self-closing-comp": ["error", {
541
- component: !0,
542
- html: !0
543
- }],
544
- "@stylistic/line-comment-position": ["error", { position: "above" }],
545
- "@stylistic/max-statements-per-line": ["error", { max: 1 }],
546
- "@stylistic/multiline-comment-style": [
547
- "error",
548
- "separate-lines",
549
- { checkJSDoc: !1 }
550
- ],
551
- "@stylistic/newline-per-chained-call": ["error", { ignoreChainWithDepth: 6 }],
552
- "@stylistic/no-extra-parens": [
553
- "error",
554
- "all",
555
- {
556
- ignoreJSX: "multi-line",
557
- nestedBinaryExpressions: !1,
558
- ternaryOperandBinaryExpressions: !1
559
- }
560
- ],
561
- "@stylistic/no-extra-semi": "error",
562
- "@stylistic/no-multiple-empty-lines": ["error", {
563
- max: 1,
564
- maxBOF: 0,
565
- maxEOF: 0
566
- }],
567
- "@stylistic/object-curly-newline": ["error", {
568
- ExportDeclaration: {
569
- consistent: !0,
570
- multiline: !0
571
- },
572
- ImportDeclaration: {
573
- consistent: !0,
574
- multiline: !0
575
- },
576
- ObjectExpression: {
577
- consistent: !0,
578
- minProperties: 3,
579
- multiline: !0
580
- },
581
- ObjectPattern: {
582
- consistent: !0,
583
- minProperties: 3,
584
- multiline: !0
585
- }
586
- }],
587
- "@stylistic/object-property-newline": ["error", { allowAllPropertiesOnSameLine: !0 }],
588
- "@stylistic/padding-line-between-statements": [
589
- "error",
590
- {
591
- blankLine: "always",
592
- next: [
593
- "block",
594
- "multiline-block-like",
595
- "type",
596
- "interface",
597
- "enum",
598
- "function",
599
- "function-overload"
600
- ],
601
- prev: "*"
602
- },
603
- {
604
- blankLine: "always",
605
- next: "*",
606
- prev: [
607
- "block",
608
- "multiline-block-like",
609
- "type",
610
- "interface",
611
- "enum",
612
- "function",
613
- "function-overload"
614
- ]
615
- }
616
- ],
617
- "@stylistic/switch-colon-spacing": ["error", {
618
- after: !0,
619
- before: !1
620
- }],
621
- "@stylistic/yield-star-spacing": ["error", {
622
- after: !0,
623
- before: !1
624
- }]
625
- }, B = {
626
- "@eslint-community/eslint-comments/disable-enable-pair": "off",
627
- "@eslint-community/eslint-comments/no-unlimited-disable": "off"
628
- };
629
- function e(r, s) {
630
- const { parser: i, additionalOptions: a = {} } = s;
631
- return {
632
- files: [r],
633
- languageOptions: { parser: o.parserPlain },
634
- plugins: { format: o },
635
- rules: { "format/prettier": ["error", {
636
- ...E,
637
- parser: i,
638
- ...a
639
- }] }
640
- };
641
- }
642
- var M = [
643
- "**/*.ts",
644
- "**/*.tsx",
645
- "**/*.mts",
646
- "**/*.cts",
647
- "**/*.js",
648
- "**/*.jsx",
649
- "**/*.mjs",
650
- "**/*.cjs"
651
- ], G = [
652
- "**/*.ts",
653
- "**/*.mts",
654
- "**/*.cts",
655
- "**/*.js",
656
- "**/*.jsx",
657
- "**/*.mjs",
658
- "**/*.cjs"
659
- ], n = ["**/*.gen.ts"];
660
- function ye(...r) {
661
- return _(b({
662
- root: !0,
663
- strict: !0
664
- }), {
665
- files: M,
666
- ignores: n,
667
- extends: [
668
- f.configs.recommended,
669
- t.configs.strict,
670
- t.configs.stylistic,
671
- m.configs["recommended-typescript"],
672
- j.configs.flat.recommended,
673
- v.configs.recommended,
674
- L.configs.recommended,
675
- u.recommended,
676
- U.configs["flat/recommended"],
677
- d.configs.customize({
678
- blockSpacing: !0,
679
- braceStyle: "1tbs",
680
- commaDangle: "never",
681
- indent: 2,
682
- jsx: !0,
683
- quoteProps: "as-needed",
684
- quotes: "double",
685
- semi: !0,
686
- severity: "error"
687
- }),
688
- y.configs["flat/recommended"],
689
- g.configs["flat/recommended"],
690
- l
691
- ],
692
- plugins: {
693
- "react-dom": k,
694
- "react-jsx": S,
695
- "react-naming-convention": P,
696
- "react-web-api": C,
697
- antfu: w,
698
- jsdoc: x,
699
- "local-react": c,
700
- perfectionist: h,
701
- "unused-imports": R
702
- },
703
- rules: {
704
- ...O,
705
- ...A,
706
- ...D,
707
- ...I,
708
- ...T,
709
- ...p,
710
- ...F,
711
- ...q,
712
- ...X,
713
- ...N,
714
- ...W,
715
- ...J,
716
- ...B
717
- }
718
- }, {
719
- files: G,
720
- ignores: n,
721
- rules: { "no-restricted-syntax": [
722
- "error",
723
- "TSEnumDeclaration[const=true]",
724
- "TSExportAssignment",
725
- {
726
- selector: "JSXAttribute[name.name='ref'][value.type='Literal']",
727
- message: "Use callback refs or useRef instead of string refs."
728
- },
729
- {
730
- selector: "JSXAttribute[name.name='ref'] > JSXExpressionContainer > Literal",
731
- message: "Use callback refs or useRef instead of string refs."
732
- },
733
- {
734
- selector: "JSXAttribute[name.name='ref'] > JSXExpressionContainer > TemplateLiteral",
735
- message: "Use callback refs or useRef instead of string refs."
736
- },
737
- "JSXElement",
738
- "JSXFragment"
739
- ] }
740
- }, e("**/*.css", { parser: "css" }), e("**/*.scss", { parser: "scss" }), e("**/*.html", { parser: "html" }), e("**/*.json", { parser: "json" }), e("**/*.jsonc", { parser: "jsonc" }), e("**/*.md", {
741
- parser: "markdown",
742
- additionalOptions: {
743
- embeddedLanguageFormatting: "off",
744
- printWidth: 320
745
- }
746
- }), e("**/*.mdx", {
747
- parser: "mdx",
748
- additionalOptions: {
749
- embeddedLanguageFormatting: "off",
750
- printWidth: 320
751
- }
752
- }), ...r);
1
+ import { localPlugin as r } from "./no-legacy-middle-size.js";
2
+ import { tanstackConfig as t } from "./tanstack.js";
3
+ import { defineEslintConfig as s } from "@coldsmirk/eslint-config";
4
+ import { defineConfig as f } from "eslint/config";
5
+ function c(i = {}) {
6
+ const { react: n = !0, ignores: o = [], ...e } = i;
7
+ return f(...s({
8
+ react: n,
9
+ ignores: ["**/*.gen.ts", ...o],
10
+ ...e
11
+ }), ...t, {
12
+ files: ["**/*.{ts,tsx}"],
13
+ plugins: { local: r },
14
+ rules: { "local/no-legacy-middle-size": "error" }
15
+ });
753
16
  }
754
17
  export {
755
- ye as defineEslintConfig
18
+ c as defineEslintConfig
756
19
  };