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