@vef-framework/dev 1.0.122 → 1.0.123

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 (117) hide show
  1. package/cjs/cli.cjs +228 -0
  2. package/cjs/commitlint-config.cjs +14 -0
  3. package/cjs/config.cjs +82 -0
  4. package/cjs/constants.cjs +27 -0
  5. package/cjs/eslint-config.cjs +413 -0
  6. package/cjs/index.cjs +16 -0
  7. package/cjs/json/monaco.nls.json.cjs +7 -0
  8. package/cjs/json/monaco.theme.github-light.json.cjs +7 -0
  9. package/cjs/modules.d.cjs +4 -0
  10. package/cjs/plugin-app-config.cjs +37 -0
  11. package/cjs/plugin-conventional-config.cjs +116 -0
  12. package/cjs/plugin-eslint.cjs +23 -0
  13. package/cjs/plugin-html.cjs +85 -0
  14. package/cjs/plugin-icons.cjs +21 -0
  15. package/{lib → cjs}/plugin-initialization.cjs +26 -2
  16. package/cjs/plugin-injection.cjs +20 -0
  17. package/cjs/plugin-inspect.cjs +14 -0
  18. package/{lib → cjs}/plugin-monaco-nls.cjs +59 -2
  19. package/cjs/plugin-react-swc.cjs +13 -0
  20. package/cjs/plugin-router.cjs +47 -0
  21. package/cjs/plugin-stylelint.cjs +23 -0
  22. package/cjs/plugin-svgr.cjs +58 -0
  23. package/cjs/plugin-tailwind.cjs +11 -0
  24. package/cjs/plugin-tailwindcss.cjs +24 -0
  25. package/cjs/plugin-tsconfig-paths.cjs +13 -0
  26. package/cjs/plugin-visualizer.cjs +15 -0
  27. package/cjs/plugin-webfont.cjs +14 -0
  28. package/cjs/stylelint-config.cjs +67 -0
  29. package/cjs/tailwind-config.cjs +395 -0
  30. package/cjs/types.cjs +4 -0
  31. package/esm/cli.js +226 -0
  32. package/esm/commitlint-config.js +12 -0
  33. package/esm/config.js +80 -0
  34. package/esm/constants.js +15 -0
  35. package/esm/eslint-config.js +411 -0
  36. package/esm/index.js +8 -0
  37. package/esm/json/monaco.nls.json.js +3 -0
  38. package/esm/json/monaco.theme.github-light.json.js +3 -0
  39. package/esm/modules.d.js +2 -0
  40. package/esm/plugin-app-config.js +35 -0
  41. package/esm/plugin-conventional-config.js +114 -0
  42. package/esm/plugin-eslint.js +21 -0
  43. package/esm/plugin-html.js +83 -0
  44. package/esm/plugin-icons.js +18 -0
  45. package/{es → esm}/plugin-initialization.js +24 -2
  46. package/esm/plugin-injection.js +18 -0
  47. package/esm/plugin-inspect.js +12 -0
  48. package/{es → esm}/plugin-monaco-nls.js +56 -2
  49. package/esm/plugin-react-swc.js +11 -0
  50. package/esm/plugin-router.js +45 -0
  51. package/esm/plugin-stylelint.js +21 -0
  52. package/esm/plugin-svgr.js +56 -0
  53. package/esm/plugin-tailwind.js +9 -0
  54. package/esm/plugin-tailwindcss.js +22 -0
  55. package/esm/plugin-tsconfig-paths.js +11 -0
  56. package/esm/plugin-visualizer.js +13 -0
  57. package/esm/plugin-webfont.js +12 -0
  58. package/esm/stylelint-config.js +65 -0
  59. package/esm/tailwind-config.js +393 -0
  60. package/esm/types.js +2 -0
  61. package/package.json +19 -18
  62. package/template/_package.json +5 -5
  63. package/es/cli.js +0 -4
  64. package/es/commitlint-config.js +0 -1
  65. package/es/config.js +0 -1
  66. package/es/constants.js +0 -1
  67. package/es/eslint-config.js +0 -1
  68. package/es/index.js +0 -1
  69. package/es/json/monaco.nls.json.js +0 -15920
  70. package/es/json/monaco.theme.github-light.json.js +0 -349
  71. package/es/modules.d.js +0 -1
  72. package/es/plugin-app-config.js +0 -1
  73. package/es/plugin-conventional-config.js +0 -11
  74. package/es/plugin-eslint.js +0 -1
  75. package/es/plugin-html.js +0 -16
  76. package/es/plugin-icons.js +0 -1
  77. package/es/plugin-injection.js +0 -2
  78. package/es/plugin-inspect.js +0 -1
  79. package/es/plugin-react-swc.js +0 -1
  80. package/es/plugin-router.js +0 -10
  81. package/es/plugin-stylelint.js +0 -1
  82. package/es/plugin-svgr.js +0 -1
  83. package/es/plugin-tailwind.js +0 -1
  84. package/es/plugin-tailwindcss.js +0 -2
  85. package/es/plugin-tsconfig-paths.js +0 -1
  86. package/es/plugin-visualizer.js +0 -1
  87. package/es/plugin-webfont.js +0 -1
  88. package/es/stylelint-config.js +0 -1
  89. package/es/tailwind-config.js +0 -1
  90. package/lib/cli.cjs +0 -4
  91. package/lib/commitlint-config.cjs +0 -1
  92. package/lib/config.cjs +0 -1
  93. package/lib/constants.cjs +0 -1
  94. package/lib/eslint-config.cjs +0 -1
  95. package/lib/index.cjs +0 -1
  96. package/lib/json/monaco.nls.json.cjs +0 -15920
  97. package/lib/json/monaco.theme.github-light.json.cjs +0 -349
  98. package/lib/modules.d.cjs +0 -1
  99. package/lib/plugin-app-config.cjs +0 -1
  100. package/lib/plugin-conventional-config.cjs +0 -11
  101. package/lib/plugin-eslint.cjs +0 -1
  102. package/lib/plugin-html.cjs +0 -16
  103. package/lib/plugin-icons.cjs +0 -1
  104. package/lib/plugin-injection.cjs +0 -2
  105. package/lib/plugin-inspect.cjs +0 -1
  106. package/lib/plugin-react-swc.cjs +0 -1
  107. package/lib/plugin-router.cjs +0 -10
  108. package/lib/plugin-stylelint.cjs +0 -1
  109. package/lib/plugin-svgr.cjs +0 -1
  110. package/lib/plugin-tailwind.cjs +0 -1
  111. package/lib/plugin-tailwindcss.cjs +0 -2
  112. package/lib/plugin-tsconfig-paths.cjs +0 -1
  113. package/lib/plugin-visualizer.cjs +0 -1
  114. package/lib/plugin-webfont.cjs +0 -1
  115. package/lib/stylelint-config.cjs +0 -1
  116. package/lib/tailwind-config.cjs +0 -1
  117. package/lib/types.cjs +0 -1
@@ -0,0 +1,411 @@
1
+ "use strict";
2
+ import { antfu } from '@antfu/eslint-config';
3
+ import pluginRouter from '@tanstack/eslint-plugin-router';
4
+
5
+ "use strict";
6
+ function defineEslintConfig() {
7
+ return antfu(
8
+ {
9
+ ignores: [
10
+ "**/node_modules",
11
+ "**/dist",
12
+ "**/public"
13
+ ],
14
+ stylistic: {
15
+ indent: 2,
16
+ jsx: true,
17
+ quotes: "double",
18
+ semi: true,
19
+ overrides: {
20
+ "style/line-comment-position": [
21
+ "error",
22
+ {
23
+ position: "above"
24
+ }
25
+ ],
26
+ "style/jsx-self-closing-comp": [
27
+ "error",
28
+ {
29
+ component: true,
30
+ html: true
31
+ }
32
+ ],
33
+ "style/jsx-newline": [
34
+ "error",
35
+ {
36
+ prevent: true,
37
+ allowMultilines: true
38
+ }
39
+ ],
40
+ "style/jsx-props-no-multi-spaces": "error",
41
+ "style/jsx-sort-props": [
42
+ "error",
43
+ {
44
+ callbacksLast: true,
45
+ shorthandFirst: true,
46
+ shorthandLast: false,
47
+ multiline: "last",
48
+ ignoreCase: true,
49
+ noSortAlphabetically: false,
50
+ reservedFirst: ["key", "ref"]
51
+ }
52
+ ],
53
+ "style/newline-per-chained-call": [
54
+ "error",
55
+ {
56
+ ignoreChainWithDepth: 3
57
+ }
58
+ ],
59
+ "style/object-property-newline": "error",
60
+ "style/brace-style": [
61
+ "error",
62
+ "1tbs"
63
+ ],
64
+ "style/arrow-parens": [
65
+ "error",
66
+ "as-needed"
67
+ ],
68
+ "style/multiline-comment-style": [
69
+ "error",
70
+ "separate-lines",
71
+ {
72
+ checkJSDoc: false
73
+ }
74
+ ],
75
+ "style/implicit-arrow-linebreak": [
76
+ "error",
77
+ "beside"
78
+ ],
79
+ "style/no-extra-semi": "error",
80
+ "style/array-element-newline": [
81
+ "error",
82
+ {
83
+ consistent: true,
84
+ multiline: true,
85
+ minItems: 7
86
+ }
87
+ ],
88
+ "style/function-call-argument-newline": [
89
+ "error",
90
+ "consistent"
91
+ ],
92
+ "style/padding-line-between-statements": [
93
+ "error",
94
+ {
95
+ blankLine: "always",
96
+ prev: "*",
97
+ next: [
98
+ "block",
99
+ "multiline-block-like",
100
+ "type",
101
+ "interface",
102
+ "enum",
103
+ "function",
104
+ "function-overload"
105
+ ]
106
+ },
107
+ {
108
+ blankLine: "always",
109
+ prev: [
110
+ "block",
111
+ "multiline-block-like",
112
+ "type",
113
+ "interface",
114
+ "enum",
115
+ "function",
116
+ "function-overload"
117
+ ],
118
+ next: "*"
119
+ }
120
+ ],
121
+ "style/jsx-pascal-case": [
122
+ "error",
123
+ {
124
+ allowAllCaps: false,
125
+ allowLeadingUnderscore: false,
126
+ allowNamespace: false,
127
+ ignore: []
128
+ }
129
+ ],
130
+ "style/switch-colon-spacing": [
131
+ "error",
132
+ {
133
+ before: false,
134
+ after: true
135
+ }
136
+ ],
137
+ "style/object-curly-newline": [
138
+ "error",
139
+ {
140
+ ObjectExpression: {
141
+ multiline: true,
142
+ consistent: true,
143
+ minProperties: 3
144
+ },
145
+ ObjectPattern: {
146
+ multiline: true,
147
+ consistent: true,
148
+ minProperties: 3
149
+ },
150
+ ImportDeclaration: {
151
+ consistent: true,
152
+ multiline: true
153
+ },
154
+ ExportDeclaration: {
155
+ consistent: true,
156
+ multiline: true
157
+ }
158
+ }
159
+ ],
160
+ "style/no-extra-parens": [
161
+ "error",
162
+ "all",
163
+ {
164
+ nestedBinaryExpressions: false,
165
+ ternaryOperandBinaryExpressions: false,
166
+ ignoreJSX: "multi-line"
167
+ }
168
+ ]
169
+ }
170
+ },
171
+ javascript: {
172
+ overrides: {
173
+ "no-duplicate-imports": "off",
174
+ "prefer-object-spread": "error",
175
+ "func-style": [
176
+ "error",
177
+ "declaration",
178
+ {
179
+ allowArrowFunctions: true
180
+ }
181
+ ],
182
+ "curly": [
183
+ "error",
184
+ "all"
185
+ ],
186
+ "no-useless-escape": "error",
187
+ "no-useless-concat": "error",
188
+ "no-unused-private-class-members": "error",
189
+ "no-unsafe-optional-chaining": "error",
190
+ "no-dupe-else-if": "error",
191
+ "no-eq-null": "error",
192
+ "no-extra-label": "error",
193
+ "no-negated-condition": "error",
194
+ "no-invalid-this": "error",
195
+ "arrow-body-style": [
196
+ "error",
197
+ "as-needed"
198
+ ],
199
+ "prefer-object-has-own": "error",
200
+ "prefer-numeric-literals": "error",
201
+ "prefer-named-capture-group": "error",
202
+ "prefer-destructuring": "error",
203
+ "object-shorthand": "error",
204
+ "require-atomic-updates": "error",
205
+ "require-await": "error",
206
+ "camelcase": [
207
+ "error",
208
+ {
209
+ properties: "always",
210
+ ignoreGlobals: true
211
+ }
212
+ ],
213
+ "no-promise-executor-return": [
214
+ "error",
215
+ {
216
+ allowVoid: true
217
+ }
218
+ ],
219
+ "sort-imports": "off",
220
+ "no-console": "off"
221
+ }
222
+ },
223
+ typescript: {
224
+ overrides: {
225
+ "ts/no-unused-expressions": [
226
+ "error",
227
+ {
228
+ enforceForJSX: true
229
+ }
230
+ ],
231
+ "ts/no-unused-vars": [
232
+ "error",
233
+ {
234
+ args: "after-used",
235
+ caughtErrors: "all",
236
+ destructuredArrayIgnorePattern: "^_",
237
+ ignoreRestSiblings: true
238
+ }
239
+ ],
240
+ "ts/array-type": [
241
+ "error",
242
+ {
243
+ default: "array-simple",
244
+ readonly: "array-simple"
245
+ }
246
+ ],
247
+ "ts/consistent-type-assertions": [
248
+ "error",
249
+ {
250
+ assertionStyle: "as",
251
+ objectLiteralTypeAssertions: "allow"
252
+ }
253
+ ],
254
+ "ts/consistent-type-definitions": [
255
+ "error",
256
+ "interface"
257
+ ],
258
+ "ts/max-params": [
259
+ "error",
260
+ {
261
+ max: 5
262
+ }
263
+ ]
264
+ }
265
+ },
266
+ react: {
267
+ overrides: {
268
+ "react-naming-convention/component-name": ["error", "PascalCase"],
269
+ "react-naming-convention/filename-extension": [
270
+ "error",
271
+ {
272
+ allow: "as-needed",
273
+ extensions: [".tsx"]
274
+ }
275
+ ],
276
+ "react-hooks-extra/no-redundant-custom-hook": "error",
277
+ "react-hooks-extra/no-unnecessary-use-memo": "error",
278
+ "react-hooks-extra/no-unnecessary-use-callback": "error",
279
+ "react-naming-convention/use-state": "error",
280
+ "react-refresh/only-export-components": "error",
281
+ "react-hooks/exhaustive-deps": [
282
+ "error",
283
+ {
284
+ additionalHooks: "^use(Deep|Shallow)"
285
+ }
286
+ ],
287
+ "react/no-clone-element": "off",
288
+ "react/no-class-component": "error",
289
+ "react/no-children-prop": "off",
290
+ "react/no-children-to-array": "off",
291
+ "react/no-children-for-each": "off",
292
+ "react/no-children-count": "off"
293
+ }
294
+ },
295
+ vue: false,
296
+ jsx: true,
297
+ regexp: true,
298
+ jsonc: true,
299
+ yaml: true,
300
+ toml: true,
301
+ markdown: {
302
+ overrides: {
303
+ "markdown/fenced-code-language": "error",
304
+ "markdown/no-duplicate-headings": "error",
305
+ "markdown/no-empty-links": "error"
306
+ }
307
+ },
308
+ test: true,
309
+ formatters: {
310
+ markdown: "prettier",
311
+ prettierOptions: {
312
+ singleQuote: false,
313
+ semi: true,
314
+ tabWidth: 2,
315
+ useTabs: false,
316
+ trailingComma: "all",
317
+ endOfLine: "lf",
318
+ printWidth: 160,
319
+ proseWrap: "never",
320
+ arrowParens: "avoid",
321
+ htmlWhitespaceSensitivity: "strict",
322
+ bracketSameLine: true,
323
+ bracketSpacing: true,
324
+ quoteProps: "as-needed",
325
+ jsxSingleQuote: false,
326
+ singleAttributePerLine: false
327
+ }
328
+ }
329
+ },
330
+ {
331
+ rules: {
332
+ "unicorn/filename-case": [
333
+ "error",
334
+ {
335
+ case: "kebabCase",
336
+ ignore: ["README.md"]
337
+ }
338
+ ],
339
+ "unicorn/prefer-date-now": "error",
340
+ "unicorn/prefer-string-trim-start-end": "error",
341
+ "unicorn/prefer-string-raw": "error",
342
+ "unicorn/prefer-object-from-entries": "error",
343
+ "unicorn/prefer-default-parameters": "error",
344
+ "unicorn/prefer-array-find": "error",
345
+ "unicorn/prefer-array-flat": "error",
346
+ "unicorn/prefer-array-flat-map": "error",
347
+ "unicorn/prefer-array-index-of": "error",
348
+ "unicorn/prefer-array-some": "error",
349
+ "unicorn/prefer-logical-operator-over-ternary": "error",
350
+ "unicorn/no-array-push-push": "error",
351
+ "unicorn/no-empty-file": "error",
352
+ "unicorn/no-array-for-each": "error",
353
+ "unicorn/no-for-loop": "error",
354
+ "unicorn/no-unnecessary-await": "error",
355
+ "unicorn/no-unnecessary-polyfills": "error",
356
+ "unicorn/no-useless-undefined": "error",
357
+ "unicorn/no-useless-switch-case": "error",
358
+ "unicorn/no-useless-spread": "error",
359
+ "unicorn/no-console-spaces": "error",
360
+ "unicorn/no-unused-properties": "error",
361
+ "unicorn/no-useless-promise-resolve-reject": "error",
362
+ "import/order": "off",
363
+ "import/first": "error",
364
+ "import/export": "error",
365
+ "import/no-named-as-default": "off",
366
+ "import/no-named-default": "off",
367
+ "perfectionist/sort-imports": [
368
+ "error",
369
+ {
370
+ type: "natural"
371
+ }
372
+ ],
373
+ "perfectionist/sort-exports": [
374
+ "error",
375
+ {
376
+ type: "natural"
377
+ }
378
+ ],
379
+ "perfectionist/sort-named-imports": [
380
+ "error",
381
+ {
382
+ type: "natural",
383
+ groupKind: "values-first"
384
+ }
385
+ ],
386
+ "perfectionist/sort-named-exports": [
387
+ "error",
388
+ {
389
+ type: "natural",
390
+ groupKind: "values-first"
391
+ }
392
+ ],
393
+ "eslint-comments/no-unlimited-disable": "off"
394
+ }
395
+ },
396
+ {
397
+ ignores: ["**/*.md", "**/*.md/*.{ts,tsx}", "**/src/pages/__root.{ts,tsx}"],
398
+ rules: {
399
+ "react-naming-convention/filename": [
400
+ "error",
401
+ {
402
+ rule: "kebab-case"
403
+ }
404
+ ]
405
+ }
406
+ },
407
+ ...pluginRouter.configs["flat/recommended"]
408
+ );
409
+ }
410
+
411
+ export { defineEslintConfig };
package/esm/index.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ export { defineCommitlintConfig } from './commitlint-config.js';
3
+ export { defineConfig } from './config.js';
4
+ export { defineEslintConfig } from './eslint-config.js';
5
+ export { defineStylelintConfig } from './stylelint-config.js';
6
+ export { defineTailwindConfig } from './tailwind-config.js';
7
+
8
+ "use strict";