@vef-framework/dev 1.0.127 → 1.0.129

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 (60) hide show
  1. package/cjs/cli.cjs +4 -227
  2. package/cjs/commitlint-config.cjs +1 -13
  3. package/cjs/config.cjs +1 -81
  4. package/cjs/constants.cjs +1 -26
  5. package/cjs/eslint-config.cjs +1 -412
  6. package/cjs/index.cjs +1 -15
  7. package/cjs/json/monaco.nls.json.cjs +15920 -7
  8. package/cjs/json/monaco.theme.github-light.json.cjs +349 -7
  9. package/cjs/modules.d.cjs +0 -2
  10. package/cjs/plugin-app-config.cjs +1 -36
  11. package/cjs/plugin-conventional-config.cjs +3 -111
  12. package/cjs/plugin-eslint.cjs +1 -22
  13. package/cjs/plugin-html.cjs +2 -70
  14. package/cjs/plugin-icons.cjs +1 -20
  15. package/cjs/plugin-initialization.cjs +3 -26
  16. package/cjs/plugin-injection.cjs +2 -19
  17. package/cjs/plugin-inspect.cjs +1 -13
  18. package/cjs/plugin-monaco-nls.cjs +3 -59
  19. package/cjs/plugin-react-swc.cjs +1 -12
  20. package/cjs/plugin-router.cjs +4 -40
  21. package/cjs/plugin-stylelint.cjs +1 -22
  22. package/cjs/plugin-svgr.cjs +1 -57
  23. package/cjs/plugin-tailwind.cjs +1 -10
  24. package/cjs/plugin-tailwindcss.cjs +2 -23
  25. package/cjs/plugin-tsconfig-paths.cjs +1 -12
  26. package/cjs/plugin-visualizer.cjs +1 -14
  27. package/cjs/plugin-webfont.cjs +1 -13
  28. package/cjs/stylelint-config.cjs +1 -66
  29. package/cjs/tailwind-config.cjs +1 -394
  30. package/cjs/types.cjs +0 -2
  31. package/esm/cli.js +4 -225
  32. package/esm/commitlint-config.js +1 -11
  33. package/esm/config.js +1 -79
  34. package/esm/constants.js +1 -14
  35. package/esm/eslint-config.js +1 -410
  36. package/esm/index.js +1 -7
  37. package/esm/json/monaco.nls.json.js +15920 -3
  38. package/esm/json/monaco.theme.github-light.json.js +349 -3
  39. package/esm/plugin-app-config.js +1 -34
  40. package/esm/plugin-conventional-config.js +3 -109
  41. package/esm/plugin-eslint.js +1 -20
  42. package/esm/plugin-html.js +2 -68
  43. package/esm/plugin-icons.js +1 -17
  44. package/esm/plugin-initialization.js +3 -24
  45. package/esm/plugin-injection.js +2 -17
  46. package/esm/plugin-inspect.js +1 -11
  47. package/esm/plugin-monaco-nls.js +3 -56
  48. package/esm/plugin-react-swc.js +1 -10
  49. package/esm/plugin-router.js +4 -38
  50. package/esm/plugin-stylelint.js +1 -20
  51. package/esm/plugin-svgr.js +1 -55
  52. package/esm/plugin-tailwind.js +1 -8
  53. package/esm/plugin-tailwindcss.js +2 -21
  54. package/esm/plugin-tsconfig-paths.js +1 -10
  55. package/esm/plugin-visualizer.js +1 -12
  56. package/esm/plugin-webfont.js +1 -11
  57. package/esm/stylelint-config.js +1 -64
  58. package/esm/tailwind-config.js +1 -392
  59. package/package.json +1 -1
  60. package/template/_package.json +5 -5
@@ -1,12 +1,2 @@
1
1
  "use strict";
2
- "use strict";
3
- function defineCommitlintConfig() {
4
- return {
5
- extends: [
6
- "@commitlint/config-conventional"
7
- ],
8
- formatter: "@commitlint/format"
9
- };
10
- }
11
-
12
- export { defineCommitlintConfig };
2
+ function t(){return{extends:["@commitlint/config-conventional"],formatter:"@commitlint/format"}}export{t as defineCommitlintConfig};
package/esm/config.js CHANGED
@@ -1,80 +1,2 @@
1
1
  "use strict";
2
- import consola from 'consola';
3
- import fsExtra from 'fs-extra';
4
- import { resolve } from 'node:path';
5
- import { defineConfig as defineConfig$1, loadEnv } from 'vite';
6
- import { ENV_DIR, ENV_BUILD_PREFIX } from './constants.js';
7
- import { createAppConfigPlugin } from './plugin-app-config.js';
8
- import { createConventionalConfigPlugin } from './plugin-conventional-config.js';
9
- import { createEslintPlugin } from './plugin-eslint.js';
10
- import { createHtmlPlugin } from './plugin-html.js';
11
- import { createIconsPlugin } from './plugin-icons.js';
12
- import { createInitializationPlugin } from './plugin-initialization.js';
13
- import { createInjectionPlugin } from './plugin-injection.js';
14
- import { createInspectPlugin } from './plugin-inspect.js';
15
- import { createReactSwcPlugin } from './plugin-react-swc.js';
16
- import { createRouterPlugin } from './plugin-router.js';
17
- import { createStylelintPlugin } from './plugin-stylelint.js';
18
- import { createSvgrPlugin } from './plugin-svgr.js';
19
- import { createTailwindPlugin } from './plugin-tailwind.js';
20
- import { createTailwindcssPlugin } from './plugin-tailwindcss.js';
21
- import { createTsconfigPathsPlugin } from './plugin-tsconfig-paths.js';
22
- import { createVisualizerPlugin } from './plugin-visualizer.js';
23
- import { createWebfontPlugin } from './plugin-webfont.js';
24
-
25
- "use strict";
26
- const { readJson } = fsExtra;
27
- function defineConfig({
28
- projectDir,
29
- proxies,
30
- visualizer = false,
31
- routerHistory = "browser",
32
- autoCodeSplitting = true
33
- }) {
34
- return defineConfig$1(async ({ mode }) => {
35
- const env = loadEnv(mode, ENV_DIR, ENV_BUILD_PREFIX);
36
- if (Object.keys(env).length > 0) {
37
- consola.info("Loaded environment variables:");
38
- console.table(env);
39
- }
40
- const appVersion = await getAppVersion(projectDir);
41
- return {
42
- plugins: [
43
- createInspectPlugin(),
44
- createConventionalConfigPlugin({
45
- appVersion,
46
- projectDir,
47
- basePublicPath: env.VEF_BUILD_BASE_PUBLIC_PATH,
48
- outputDir: env.VEF_BUILD_OUTPUT_DIR,
49
- serverPort: Number(env.VEF_BUILD_SERVER_PORT),
50
- proxies
51
- }),
52
- createReactSwcPlugin(),
53
- createTsconfigPathsPlugin(projectDir),
54
- createHtmlPlugin(),
55
- createTailwindPlugin(),
56
- createTailwindcssPlugin(),
57
- createInjectionPlugin(),
58
- createAppConfigPlugin({
59
- basePublicPath: env.VEF_BUILD_BASE_PUBLIC_PATH,
60
- outputDir: env.VEF_BUILD_OUTPUT_DIR,
61
- appName: env.VEF_APP_NAME
62
- }),
63
- createInitializationPlugin(),
64
- createIconsPlugin(projectDir),
65
- createSvgrPlugin(),
66
- createWebfontPlugin(),
67
- createRouterPlugin(projectDir, routerHistory, autoCodeSplitting),
68
- createEslintPlugin(),
69
- createStylelintPlugin(),
70
- visualizer ? createVisualizerPlugin(projectDir) : void 0
71
- ].filter(Boolean)
72
- };
73
- });
74
- }
75
- async function getAppVersion(projectDir) {
76
- const packageJson = await readJson(resolve(projectDir, "package.json"), { encoding: "utf-8" });
77
- return packageJson.version;
78
- }
79
-
80
- export { defineConfig };
2
+ import c from"consola";import l from"fs-extra";import{resolve as p}from"node:path";import{defineConfig as f,loadEnv as u}from"vite";import{ENV_DIR as s,ENV_BUILD_PREFIX as P}from"./constants.js";import{createAppConfigPlugin as g}from"./plugin-app-config.js";import{createConventionalConfigPlugin as _}from"./plugin-conventional-config.js";import{createEslintPlugin as E}from"./plugin-eslint.js";import{createHtmlPlugin as I}from"./plugin-html.js";import{createIconsPlugin as d}from"./plugin-icons.js";import{createInitializationPlugin as D}from"./plugin-initialization.js";import{createInjectionPlugin as U}from"./plugin-injection.js";import{createInspectPlugin as B}from"./plugin-inspect.js";import{createReactSwcPlugin as V}from"./plugin-react-swc.js";import{createRouterPlugin as b}from"./plugin-router.js";import{createStylelintPlugin as v}from"./plugin-stylelint.js";import{createSvgrPlugin as T}from"./plugin-svgr.js";import{createTailwindPlugin as C}from"./plugin-tailwind.js";import{createTailwindcssPlugin as L}from"./plugin-tailwindcss.js";import{createTsconfigPathsPlugin as R}from"./plugin-tsconfig-paths.js";import{createVisualizerPlugin as A}from"./plugin-visualizer.js";import{createWebfontPlugin as F}from"./plugin-webfont.js";const{readJson:S}=l;function w({projectDir:r,proxies:e,visualizer:o=!1,routerHistory:t="browser",autoCodeSplitting:n=!0}){return f(async({mode:a})=>{const i=u(a,s,P);Object.keys(i).length>0&&(c.info("Loaded environment variables:"),console.table(i));const m=await j(r);return{plugins:[B(),_({appVersion:m,projectDir:r,basePublicPath:i.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:i.VEF_BUILD_OUTPUT_DIR,serverPort:Number(i.VEF_BUILD_SERVER_PORT),proxies:e}),V(),R(r),I(),C(),L(),U(),g({basePublicPath:i.VEF_BUILD_BASE_PUBLIC_PATH,outputDir:i.VEF_BUILD_OUTPUT_DIR,appName:i.VEF_APP_NAME}),D(),d(r),T(),F(),b(r,t,n),E(),v(),o?A(r):void 0].filter(Boolean)}})}async function j(r){return(await S(p(r,"package.json"),{encoding:"utf-8"})).version}export{w as defineConfig};
package/esm/constants.js CHANGED
@@ -1,15 +1,2 @@
1
1
  "use strict";
2
- "use strict";
3
- const PUBLIC_DIR = "public";
4
- const ENV_DIR = "env";
5
- const ASSETS_DIR = "assets";
6
- const ENV_APP_PREFIX = "VEF_APP_";
7
- const ENV_BUILD_PREFIX = "VEF_BUILD_";
8
- const SRC_DIR = "src";
9
- const DEFAULT_OUTPUT_DIR = "dist";
10
- const DEFAULT_SERVER_PORT = 3833;
11
- const DEFAULT_APP_NAME = "APP";
12
- const PAGES_DIR = "pages";
13
- const ROUTER_DIR = "router";
14
-
15
- export { ASSETS_DIR, DEFAULT_APP_NAME, DEFAULT_OUTPUT_DIR, DEFAULT_SERVER_PORT, ENV_APP_PREFIX, ENV_BUILD_PREFIX, ENV_DIR, PAGES_DIR, PUBLIC_DIR, ROUTER_DIR, SRC_DIR };
2
+ const _="public",E="env",R="assets",P="VEF_APP_",D="VEF_BUILD_",I="src",A="dist",s=3833,U="APP",T="pages",t="router";export{R as ASSETS_DIR,U as DEFAULT_APP_NAME,A as DEFAULT_OUTPUT_DIR,s as DEFAULT_SERVER_PORT,P as ENV_APP_PREFIX,D as ENV_BUILD_PREFIX,E as ENV_DIR,T as PAGES_DIR,_ as PUBLIC_DIR,t as ROUTER_DIR,I as SRC_DIR};
@@ -1,411 +1,2 @@
1
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 };
2
+ import{antfu as r}from"@antfu/eslint-config";import e from"@tanstack/eslint-plugin-router";function o(){return r({ignores:["**/node_modules","**/dist","**/public"],stylistic:{indent:2,jsx:!0,quotes:"double",semi:!0,overrides:{"style/line-comment-position":["error",{position:"above"}],"style/jsx-self-closing-comp":["error",{component:!0,html:!0}],"style/jsx-newline":["error",{prevent:!0,allowMultilines:!0}],"style/jsx-props-no-multi-spaces":"error","style/jsx-sort-props":["error",{callbacksLast:!0,shorthandFirst:!0,shorthandLast:!1,multiline:"last",ignoreCase:!0,noSortAlphabetically:!1,reservedFirst:["key","ref"]}],"style/newline-per-chained-call":["error",{ignoreChainWithDepth:3}],"style/object-property-newline":"error","style/brace-style":["error","1tbs"],"style/arrow-parens":["error","as-needed"],"style/multiline-comment-style":["error","separate-lines",{checkJSDoc:!1}],"style/implicit-arrow-linebreak":["error","beside"],"style/no-extra-semi":"error","style/array-element-newline":["error",{consistent:!0,multiline:!0,minItems:7}],"style/function-call-argument-newline":["error","consistent"],"style/padding-line-between-statements":["error",{blankLine:"always",prev:"*",next:["block","multiline-block-like","type","interface","enum","function","function-overload"]},{blankLine:"always",prev:["block","multiline-block-like","type","interface","enum","function","function-overload"],next:"*"}],"style/jsx-pascal-case":["error",{allowAllCaps:!1,allowLeadingUnderscore:!1,allowNamespace:!1,ignore:[]}],"style/switch-colon-spacing":["error",{before:!1,after:!0}],"style/object-curly-newline":["error",{ObjectExpression:{multiline:!0,consistent:!0,minProperties:3},ObjectPattern:{multiline:!0,consistent:!0,minProperties:3},ImportDeclaration:{consistent:!0,multiline:!0},ExportDeclaration:{consistent:!0,multiline:!0}}],"style/no-extra-parens":["error","all",{nestedBinaryExpressions:!1,ternaryOperandBinaryExpressions:!1,ignoreJSX:"multi-line"}]}},javascript:{overrides:{"no-duplicate-imports":"off","prefer-object-spread":"error","func-style":["error","declaration",{allowArrowFunctions:!0}],curly:["error","all"],"no-useless-escape":"error","no-useless-concat":"error","no-unused-private-class-members":"error","no-unsafe-optional-chaining":"error","no-dupe-else-if":"error","no-eq-null":"error","no-extra-label":"error","no-negated-condition":"error","no-invalid-this":"error","arrow-body-style":["error","as-needed"],"prefer-object-has-own":"error","prefer-numeric-literals":"error","prefer-named-capture-group":"error","prefer-destructuring":"error","object-shorthand":"error","require-atomic-updates":"error","require-await":"error",camelcase:["error",{properties:"always",ignoreGlobals:!0}],"no-promise-executor-return":["error",{allowVoid:!0}],"sort-imports":"off","no-console":"off"}},typescript:{overrides:{"ts/no-unused-expressions":["error",{enforceForJSX:!0}],"ts/no-unused-vars":["error",{args:"after-used",caughtErrors:"all",destructuredArrayIgnorePattern:"^_",ignoreRestSiblings:!0}],"ts/array-type":["error",{default:"array-simple",readonly:"array-simple"}],"ts/consistent-type-assertions":["error",{assertionStyle:"as",objectLiteralTypeAssertions:"allow"}],"ts/consistent-type-definitions":["error","interface"],"ts/max-params":["error",{max:5}]}},react:{overrides:{"react-naming-convention/component-name":["error","PascalCase"],"react-naming-convention/filename-extension":["error",{allow:"as-needed",extensions:[".tsx"]}],"react-hooks-extra/no-redundant-custom-hook":"error","react-hooks-extra/no-unnecessary-use-memo":"error","react-hooks-extra/no-unnecessary-use-callback":"error","react-naming-convention/use-state":"error","react-refresh/only-export-components":"error","react-hooks/exhaustive-deps":["error",{additionalHooks:"^use(Deep|Shallow)"}],"react/no-clone-element":"off","react/no-class-component":"error","react/no-children-prop":"off","react/no-children-to-array":"off","react/no-children-for-each":"off","react/no-children-count":"off"}},vue:!1,jsx:!0,regexp:!0,jsonc:!0,yaml:!0,toml:!0,markdown:{overrides:{"markdown/fenced-code-language":"error","markdown/no-duplicate-headings":"error","markdown/no-empty-links":"error"}},test:!0,formatters:{markdown:"prettier",prettierOptions:{singleQuote:!1,semi:!0,tabWidth:2,useTabs:!1,trailingComma:"all",endOfLine:"lf",printWidth:160,proseWrap:"never",arrowParens:"avoid",htmlWhitespaceSensitivity:"strict",bracketSameLine:!0,bracketSpacing:!0,quoteProps:"as-needed",jsxSingleQuote:!1,singleAttributePerLine:!1}}},{rules:{"unicorn/filename-case":["error",{case:"kebabCase",ignore:["README.md"]}],"unicorn/prefer-date-now":"error","unicorn/prefer-string-trim-start-end":"error","unicorn/prefer-string-raw":"error","unicorn/prefer-object-from-entries":"error","unicorn/prefer-default-parameters":"error","unicorn/prefer-array-find":"error","unicorn/prefer-array-flat":"error","unicorn/prefer-array-flat-map":"error","unicorn/prefer-array-index-of":"error","unicorn/prefer-array-some":"error","unicorn/prefer-logical-operator-over-ternary":"error","unicorn/no-array-push-push":"error","unicorn/no-empty-file":"error","unicorn/no-array-for-each":"error","unicorn/no-for-loop":"error","unicorn/no-unnecessary-await":"error","unicorn/no-unnecessary-polyfills":"error","unicorn/no-useless-undefined":"error","unicorn/no-useless-switch-case":"error","unicorn/no-useless-spread":"error","unicorn/no-console-spaces":"error","unicorn/no-unused-properties":"error","unicorn/no-useless-promise-resolve-reject":"error","import/order":"off","import/first":"error","import/export":"error","import/no-named-as-default":"off","import/no-named-default":"off","perfectionist/sort-imports":["error",{type:"natural"}],"perfectionist/sort-exports":["error",{type:"natural"}],"perfectionist/sort-named-imports":["error",{type:"natural",groupKind:"values-first"}],"perfectionist/sort-named-exports":["error",{type:"natural",groupKind:"values-first"}],"eslint-comments/no-unlimited-disable":"off"}},{ignores:["**/*.md","**/*.md/*.{ts,tsx}","**/src/pages/__root.{ts,tsx}"],rules:{"react-naming-convention/filename":["error",{rule:"kebab-case"}]}},...e.configs["flat/recommended"])}export{o as defineEslintConfig};
package/esm/index.js CHANGED
@@ -1,8 +1,2 @@
1
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";
2
+ import{defineCommitlintConfig as o}from"./commitlint-config.js";import{defineConfig as n}from"./config.js";import{defineEslintConfig as r}from"./eslint-config.js";import{defineStylelintConfig as d}from"./stylelint-config.js";import{defineTailwindConfig as g}from"./tailwind-config.js";export{o as defineCommitlintConfig,n as defineConfig,r as defineEslintConfig,d as defineStylelintConfig,g as defineTailwindConfig};