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