@vef-framework/dev 2.0.4 → 2.0.6
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.
- package/bin/vef.js +1 -1
- package/dist/cjs/index.cjs +1 -23
- package/dist/cjs/lint/commitlint.cjs +1 -14
- package/dist/cjs/lint/eslint.cjs +1 -981
- package/dist/cjs/lint/index.cjs +1 -14
- package/dist/cjs/lint/stylelint.cjs +1 -93
- package/dist/cjs/vite/chunks.cjs +1 -30
- package/dist/cjs/vite/config.cjs +1 -83
- package/dist/cjs/vite/constants.cjs +1 -30
- package/dist/cjs/vite/define.cjs +3 -18
- package/dist/cjs/vite/index.cjs +1 -11
- package/dist/cjs/vite/plugin-app-config.cjs +1 -38
- package/dist/cjs/vite/plugin-auto-enhance/core.cjs +1 -147
- package/dist/cjs/vite/plugin-auto-enhance/index.cjs +1 -40
- package/dist/cjs/vite/plugin-auto-enhance/plugins/index.cjs +1 -10
- package/dist/cjs/vite/plugin-auto-enhance/plugins/operation-column-width.cjs +1 -229
- package/dist/cjs/vite/plugin-conventional-config.cjs +1 -91
- package/dist/cjs/vite/plugin-eslint.cjs +1 -24
- package/dist/cjs/vite/plugin-html.cjs +2 -74
- package/dist/cjs/vite/plugin-icons.cjs +1 -22
- package/dist/cjs/vite/plugin-injection.cjs +1 -20
- package/dist/cjs/vite/plugin-inspect.cjs +1 -15
- package/dist/cjs/vite/plugin-react.cjs +1 -80
- package/dist/cjs/vite/plugin-router.cjs +4 -42
- package/dist/cjs/vite/plugin-stylelint.cjs +1 -24
- package/dist/cjs/vite/plugin-svgr.cjs +1 -59
- package/dist/cjs/vite/plugin-tsconfig-paths.cjs +1 -14
- package/dist/cjs/vite/postcss.cjs +1 -13
- package/dist/cli/index.js +5 -0
- package/dist/es/index.js +14 -8
- package/dist/es/lint/commitlint.js +5 -6
- package/dist/es/lint/eslint.js +135 -137
- package/dist/es/lint/index.js +8 -4
- package/dist/es/lint/stylelint.js +16 -19
- package/dist/es/vite/chunks.js +12 -18
- package/dist/es/vite/config.js +63 -68
- package/dist/es/vite/constants.js +15 -15
- package/dist/es/vite/define.js +10 -11
- package/dist/es/vite/index.js +5 -3
- package/dist/es/vite/plugin-app-config.js +19 -20
- package/dist/es/vite/plugin-auto-enhance/core.js +51 -90
- package/dist/es/vite/plugin-auto-enhance/index.js +19 -23
- package/dist/es/vite/plugin-auto-enhance/plugins/index.js +4 -2
- package/dist/es/vite/plugin-auto-enhance/plugins/operation-column-width.js +117 -181
- package/dist/es/vite/plugin-conventional-config.js +42 -44
- package/dist/es/vite/plugin-eslint.js +14 -15
- package/dist/es/vite/plugin-html.js +42 -53
- package/dist/es/vite/plugin-icons.js +10 -11
- package/dist/es/vite/plugin-injection.js +4 -4
- package/dist/es/vite/plugin-inspect.js +8 -9
- package/dist/es/vite/plugin-react.js +25 -35
- package/dist/es/vite/plugin-router.js +20 -21
- package/dist/es/vite/plugin-stylelint.js +14 -15
- package/dist/es/vite/plugin-svgr.js +19 -20
- package/dist/es/vite/plugin-tsconfig-paths.js +7 -8
- package/dist/es/vite/postcss.js +5 -5
- package/package.json +10 -8
package/dist/es/lint/eslint.js
CHANGED
|
@@ -1,79 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
singleQuote: false,
|
|
23
|
-
semi: true,
|
|
1
|
+
import n from "@eslint-community/eslint-plugin-eslint-comments/configs";
|
|
2
|
+
import s from "@eslint-react/eslint-plugin";
|
|
3
|
+
import i from "@eslint/js";
|
|
4
|
+
import a from "@stylistic/eslint-plugin";
|
|
5
|
+
import l from "@tanstack/eslint-plugin-query";
|
|
6
|
+
import c from "@tanstack/eslint-plugin-router";
|
|
7
|
+
import p from "eslint-config-flat-gitignore";
|
|
8
|
+
import u from "eslint-plugin-antfu";
|
|
9
|
+
import * as e from "eslint-plugin-format";
|
|
10
|
+
import m from "eslint-plugin-import-lite";
|
|
11
|
+
import f from "eslint-plugin-perfectionist";
|
|
12
|
+
import d from "eslint-plugin-react-hooks";
|
|
13
|
+
import y from "eslint-plugin-react-refresh";
|
|
14
|
+
import g from "eslint-plugin-regexp";
|
|
15
|
+
import b from "eslint-plugin-unicorn";
|
|
16
|
+
import w from "eslint-plugin-unused-imports";
|
|
17
|
+
import { defineConfig as x } from "eslint/config";
|
|
18
|
+
import o from "typescript-eslint";
|
|
19
|
+
const r = {
|
|
20
|
+
singleQuote: !1,
|
|
21
|
+
semi: !0,
|
|
24
22
|
tabWidth: 2,
|
|
25
|
-
useTabs:
|
|
23
|
+
useTabs: !1,
|
|
26
24
|
trailingComma: "none",
|
|
27
25
|
endOfLine: "lf",
|
|
28
26
|
printWidth: 120,
|
|
29
27
|
proseWrap: "never",
|
|
30
28
|
arrowParens: "avoid",
|
|
31
29
|
htmlWhitespaceSensitivity: "strict",
|
|
32
|
-
bracketSameLine:
|
|
33
|
-
bracketSpacing:
|
|
30
|
+
bracketSameLine: !1,
|
|
31
|
+
bracketSpacing: !0,
|
|
34
32
|
objectWrap: "preserve",
|
|
35
33
|
quoteProps: "as-needed",
|
|
36
|
-
jsxSingleQuote:
|
|
37
|
-
singleAttributePerLine:
|
|
34
|
+
jsxSingleQuote: !1,
|
|
35
|
+
singleAttributePerLine: !1
|
|
38
36
|
};
|
|
39
|
-
function
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
root:
|
|
43
|
-
strict:
|
|
37
|
+
function T(...t) {
|
|
38
|
+
return x(
|
|
39
|
+
p({
|
|
40
|
+
root: !0,
|
|
41
|
+
strict: !0
|
|
44
42
|
}),
|
|
45
43
|
{
|
|
46
44
|
files: ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts", "**/*.js", "**/*.jsx", "**/*.mjs", "**/*.cjs"],
|
|
47
45
|
ignores: ["**/router.gen.ts"],
|
|
48
46
|
extends: [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
47
|
+
i.configs.recommended,
|
|
48
|
+
o.configs.strict,
|
|
49
|
+
o.configs.stylistic,
|
|
50
|
+
s.configs["recommended-typescript"],
|
|
51
|
+
d.configs.flat.recommended,
|
|
52
|
+
y.configs.vite,
|
|
53
|
+
m.configs.recommended,
|
|
54
|
+
b.configs.recommended,
|
|
55
|
+
n.recommended,
|
|
56
|
+
g.configs["flat/recommended"],
|
|
57
|
+
a.configs.customize({
|
|
60
58
|
indent: 2,
|
|
61
|
-
jsx:
|
|
59
|
+
jsx: !0,
|
|
62
60
|
quotes: "double",
|
|
63
|
-
semi:
|
|
61
|
+
semi: !0,
|
|
64
62
|
braceStyle: "1tbs",
|
|
65
|
-
blockSpacing:
|
|
63
|
+
blockSpacing: !0,
|
|
66
64
|
quoteProps: "as-needed",
|
|
67
65
|
commaDangle: "never",
|
|
68
66
|
severity: "error"
|
|
69
67
|
}),
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
l.configs["flat/recommended"],
|
|
69
|
+
c.configs["flat/recommended"]
|
|
72
70
|
],
|
|
73
71
|
plugins: {
|
|
74
|
-
antfu,
|
|
75
|
-
"unused-imports":
|
|
76
|
-
perfectionist
|
|
72
|
+
antfu: u,
|
|
73
|
+
"unused-imports": w,
|
|
74
|
+
perfectionist: f
|
|
77
75
|
},
|
|
78
76
|
rules: {
|
|
79
77
|
// ============================================================================
|
|
@@ -85,7 +83,7 @@ function defineEslintConfig(...args) {
|
|
|
85
83
|
"error",
|
|
86
84
|
"declaration",
|
|
87
85
|
{
|
|
88
|
-
allowArrowFunctions:
|
|
86
|
+
allowArrowFunctions: !0
|
|
89
87
|
}
|
|
90
88
|
],
|
|
91
89
|
curly: ["error", "all"],
|
|
@@ -99,7 +97,7 @@ function defineEslintConfig(...args) {
|
|
|
99
97
|
"error",
|
|
100
98
|
"as-needed",
|
|
101
99
|
{
|
|
102
|
-
requireReturnForObjectLiteral:
|
|
100
|
+
requireReturnForObjectLiteral: !0
|
|
103
101
|
}
|
|
104
102
|
],
|
|
105
103
|
"prefer-object-has-own": "error",
|
|
@@ -110,8 +108,8 @@ function defineEslintConfig(...args) {
|
|
|
110
108
|
"error",
|
|
111
109
|
"always",
|
|
112
110
|
{
|
|
113
|
-
avoidQuotes:
|
|
114
|
-
ignoreConstructors:
|
|
111
|
+
avoidQuotes: !0,
|
|
112
|
+
ignoreConstructors: !1
|
|
115
113
|
}
|
|
116
114
|
],
|
|
117
115
|
"require-atomic-updates": "error",
|
|
@@ -120,26 +118,26 @@ function defineEslintConfig(...args) {
|
|
|
120
118
|
"error",
|
|
121
119
|
{
|
|
122
120
|
properties: "always",
|
|
123
|
-
ignoreGlobals:
|
|
121
|
+
ignoreGlobals: !0
|
|
124
122
|
}
|
|
125
123
|
],
|
|
126
124
|
"no-promise-executor-return": [
|
|
127
125
|
"error",
|
|
128
126
|
{
|
|
129
|
-
allowVoid:
|
|
127
|
+
allowVoid: !0
|
|
130
128
|
}
|
|
131
129
|
],
|
|
132
130
|
"array-callback-return": [
|
|
133
131
|
"error",
|
|
134
132
|
{
|
|
135
|
-
allowImplicit:
|
|
133
|
+
allowImplicit: !0
|
|
136
134
|
}
|
|
137
135
|
],
|
|
138
136
|
"accessor-pairs": [
|
|
139
137
|
"error",
|
|
140
138
|
{
|
|
141
|
-
enforceForClassMembers:
|
|
142
|
-
setWithoutGet:
|
|
139
|
+
enforceForClassMembers: !0,
|
|
140
|
+
setWithoutGet: !0
|
|
143
141
|
}
|
|
144
142
|
],
|
|
145
143
|
"block-scoped-var": "error",
|
|
@@ -147,16 +145,16 @@ function defineEslintConfig(...args) {
|
|
|
147
145
|
"dot-notation": [
|
|
148
146
|
"error",
|
|
149
147
|
{
|
|
150
|
-
allowKeywords:
|
|
148
|
+
allowKeywords: !0
|
|
151
149
|
}
|
|
152
150
|
],
|
|
153
151
|
eqeqeq: ["error", "smart"],
|
|
154
152
|
"new-cap": [
|
|
155
153
|
"error",
|
|
156
154
|
{
|
|
157
|
-
capIsNew:
|
|
158
|
-
newIsCap:
|
|
159
|
-
properties:
|
|
155
|
+
capIsNew: !1,
|
|
156
|
+
newIsCap: !0,
|
|
157
|
+
properties: !0
|
|
160
158
|
}
|
|
161
159
|
],
|
|
162
160
|
"no-alert": "error",
|
|
@@ -165,7 +163,7 @@ function defineEslintConfig(...args) {
|
|
|
165
163
|
"no-empty": [
|
|
166
164
|
"error",
|
|
167
165
|
{
|
|
168
|
-
allowEmptyCatch:
|
|
166
|
+
allowEmptyCatch: !0
|
|
169
167
|
}
|
|
170
168
|
],
|
|
171
169
|
"no-eval": "error",
|
|
@@ -176,8 +174,8 @@ function defineEslintConfig(...args) {
|
|
|
176
174
|
"no-labels": [
|
|
177
175
|
"error",
|
|
178
176
|
{
|
|
179
|
-
allowLoop:
|
|
180
|
-
allowSwitch:
|
|
177
|
+
allowLoop: !1,
|
|
178
|
+
allowSwitch: !1
|
|
181
179
|
}
|
|
182
180
|
],
|
|
183
181
|
"no-lone-blocks": "error",
|
|
@@ -235,7 +233,7 @@ function defineEslintConfig(...args) {
|
|
|
235
233
|
"no-unneeded-ternary": [
|
|
236
234
|
"error",
|
|
237
235
|
{
|
|
238
|
-
defaultAssignment:
|
|
236
|
+
defaultAssignment: !1
|
|
239
237
|
}
|
|
240
238
|
],
|
|
241
239
|
"no-unreachable": "error",
|
|
@@ -253,15 +251,15 @@ function defineEslintConfig(...args) {
|
|
|
253
251
|
"prefer-arrow-callback": [
|
|
254
252
|
"error",
|
|
255
253
|
{
|
|
256
|
-
allowNamedFunctions:
|
|
257
|
-
allowUnboundThis:
|
|
254
|
+
allowNamedFunctions: !1,
|
|
255
|
+
allowUnboundThis: !0
|
|
258
256
|
}
|
|
259
257
|
],
|
|
260
258
|
"prefer-const": [
|
|
261
259
|
"error",
|
|
262
260
|
{
|
|
263
261
|
destructuring: "all",
|
|
264
|
-
ignoreReadBeforeAssign:
|
|
262
|
+
ignoreReadBeforeAssign: !0
|
|
265
263
|
}
|
|
266
264
|
],
|
|
267
265
|
"prefer-exponentiation-operator": "error",
|
|
@@ -269,7 +267,7 @@ function defineEslintConfig(...args) {
|
|
|
269
267
|
"prefer-regex-literals": [
|
|
270
268
|
"error",
|
|
271
269
|
{
|
|
272
|
-
disallowRedundantWrapping:
|
|
270
|
+
disallowRedundantWrapping: !0
|
|
273
271
|
}
|
|
274
272
|
],
|
|
275
273
|
"prefer-template": "error",
|
|
@@ -278,13 +276,13 @@ function defineEslintConfig(...args) {
|
|
|
278
276
|
"use-isnan": [
|
|
279
277
|
"error",
|
|
280
278
|
{
|
|
281
|
-
enforceForIndexOf:
|
|
282
|
-
enforceForSwitchCase:
|
|
279
|
+
enforceForIndexOf: !0,
|
|
280
|
+
enforceForSwitchCase: !0
|
|
283
281
|
}
|
|
284
282
|
],
|
|
285
283
|
"valid-typeof": [
|
|
286
284
|
"error",
|
|
287
|
-
{ requireStringLiterals:
|
|
285
|
+
{ requireStringLiterals: !0 }
|
|
288
286
|
],
|
|
289
287
|
yoda: ["error", "never"],
|
|
290
288
|
// ============================================================================
|
|
@@ -294,7 +292,7 @@ function defineEslintConfig(...args) {
|
|
|
294
292
|
"@typescript-eslint/no-unused-expressions": [
|
|
295
293
|
"error",
|
|
296
294
|
{
|
|
297
|
-
enforceForJSX:
|
|
295
|
+
enforceForJSX: !0
|
|
298
296
|
}
|
|
299
297
|
],
|
|
300
298
|
// "@typescript-eslint/no-unused-vars": [
|
|
@@ -388,8 +386,8 @@ function defineEslintConfig(...args) {
|
|
|
388
386
|
"unicorn/import-style": [
|
|
389
387
|
"error",
|
|
390
388
|
{
|
|
391
|
-
extendDefaultStyles:
|
|
392
|
-
checkDynamicImport:
|
|
389
|
+
extendDefaultStyles: !1,
|
|
390
|
+
checkDynamicImport: !1
|
|
393
391
|
}
|
|
394
392
|
],
|
|
395
393
|
"unicorn/new-for-builtins": "error",
|
|
@@ -443,7 +441,7 @@ function defineEslintConfig(...args) {
|
|
|
443
441
|
"unicorn/text-encoding-identifier-case": [
|
|
444
442
|
"error",
|
|
445
443
|
{
|
|
446
|
-
withDash:
|
|
444
|
+
withDash: !0
|
|
447
445
|
}
|
|
448
446
|
],
|
|
449
447
|
// ============================================================================
|
|
@@ -634,32 +632,32 @@ function defineEslintConfig(...args) {
|
|
|
634
632
|
"@stylistic/jsx-self-closing-comp": [
|
|
635
633
|
"error",
|
|
636
634
|
{
|
|
637
|
-
component:
|
|
638
|
-
html:
|
|
635
|
+
component: !0,
|
|
636
|
+
html: !0
|
|
639
637
|
}
|
|
640
638
|
],
|
|
641
639
|
"@stylistic/jsx-newline": [
|
|
642
640
|
"error",
|
|
643
641
|
{
|
|
644
|
-
prevent:
|
|
645
|
-
allowMultilines:
|
|
642
|
+
prevent: !0,
|
|
643
|
+
allowMultilines: !0
|
|
646
644
|
}
|
|
647
645
|
],
|
|
648
646
|
"@stylistic/curly-newline": [
|
|
649
647
|
"error",
|
|
650
648
|
{
|
|
651
|
-
consistent:
|
|
649
|
+
consistent: !0
|
|
652
650
|
}
|
|
653
651
|
],
|
|
654
652
|
"@stylistic/jsx-sort-props": [
|
|
655
653
|
"error",
|
|
656
654
|
{
|
|
657
|
-
callbacksLast:
|
|
658
|
-
shorthandFirst:
|
|
659
|
-
shorthandLast:
|
|
655
|
+
callbacksLast: !0,
|
|
656
|
+
shorthandFirst: !0,
|
|
657
|
+
shorthandLast: !1,
|
|
660
658
|
multiline: "last",
|
|
661
|
-
ignoreCase:
|
|
662
|
-
noSortAlphabetically:
|
|
659
|
+
ignoreCase: !0,
|
|
660
|
+
noSortAlphabetically: !1,
|
|
663
661
|
reservedFirst: ["key", "ref"]
|
|
664
662
|
}
|
|
665
663
|
],
|
|
@@ -682,36 +680,36 @@ function defineEslintConfig(...args) {
|
|
|
682
680
|
"error",
|
|
683
681
|
{
|
|
684
682
|
ObjectExpression: {
|
|
685
|
-
multiline:
|
|
686
|
-
consistent:
|
|
683
|
+
multiline: !0,
|
|
684
|
+
consistent: !0,
|
|
687
685
|
minProperties: 3
|
|
688
686
|
},
|
|
689
687
|
ObjectPattern: {
|
|
690
|
-
multiline:
|
|
691
|
-
consistent:
|
|
688
|
+
multiline: !0,
|
|
689
|
+
consistent: !0,
|
|
692
690
|
minProperties: 3
|
|
693
691
|
},
|
|
694
692
|
ImportDeclaration: {
|
|
695
|
-
consistent:
|
|
696
|
-
multiline:
|
|
693
|
+
consistent: !0,
|
|
694
|
+
multiline: !0
|
|
697
695
|
},
|
|
698
696
|
ExportDeclaration: {
|
|
699
|
-
consistent:
|
|
700
|
-
multiline:
|
|
697
|
+
consistent: !0,
|
|
698
|
+
multiline: !0
|
|
701
699
|
}
|
|
702
700
|
}
|
|
703
701
|
],
|
|
704
702
|
"@stylistic/object-property-newline": [
|
|
705
703
|
"error",
|
|
706
704
|
{
|
|
707
|
-
allowAllPropertiesOnSameLine:
|
|
705
|
+
allowAllPropertiesOnSameLine: !0
|
|
708
706
|
}
|
|
709
707
|
],
|
|
710
708
|
"@stylistic/multiline-comment-style": [
|
|
711
709
|
"error",
|
|
712
710
|
"separate-lines",
|
|
713
711
|
{
|
|
714
|
-
checkJSDoc:
|
|
712
|
+
checkJSDoc: !1
|
|
715
713
|
}
|
|
716
714
|
],
|
|
717
715
|
"@stylistic/implicit-arrow-linebreak": [
|
|
@@ -726,7 +724,7 @@ function defineEslintConfig(...args) {
|
|
|
726
724
|
"@stylistic/array-bracket-newline": [
|
|
727
725
|
"error",
|
|
728
726
|
{
|
|
729
|
-
multiline:
|
|
727
|
+
multiline: !0
|
|
730
728
|
}
|
|
731
729
|
],
|
|
732
730
|
"@stylistic/function-paren-newline": ["error", "multiline-arguments"],
|
|
@@ -762,25 +760,25 @@ function defineEslintConfig(...args) {
|
|
|
762
760
|
"@stylistic/jsx-pascal-case": [
|
|
763
761
|
"error",
|
|
764
762
|
{
|
|
765
|
-
allowAllCaps:
|
|
766
|
-
allowLeadingUnderscore:
|
|
767
|
-
allowNamespace:
|
|
763
|
+
allowAllCaps: !1,
|
|
764
|
+
allowLeadingUnderscore: !1,
|
|
765
|
+
allowNamespace: !1,
|
|
768
766
|
ignore: []
|
|
769
767
|
}
|
|
770
768
|
],
|
|
771
769
|
"@stylistic/switch-colon-spacing": [
|
|
772
770
|
"error",
|
|
773
771
|
{
|
|
774
|
-
before:
|
|
775
|
-
after:
|
|
772
|
+
before: !1,
|
|
773
|
+
after: !0
|
|
776
774
|
}
|
|
777
775
|
],
|
|
778
776
|
"@stylistic/no-extra-parens": [
|
|
779
777
|
"error",
|
|
780
778
|
"all",
|
|
781
779
|
{
|
|
782
|
-
nestedBinaryExpressions:
|
|
783
|
-
ternaryOperandBinaryExpressions:
|
|
780
|
+
nestedBinaryExpressions: !1,
|
|
781
|
+
ternaryOperandBinaryExpressions: !1,
|
|
784
782
|
ignoreJSX: "multi-line"
|
|
785
783
|
}
|
|
786
784
|
],
|
|
@@ -795,15 +793,15 @@ function defineEslintConfig(...args) {
|
|
|
795
793
|
"@stylistic/generator-star-spacing": [
|
|
796
794
|
"error",
|
|
797
795
|
{
|
|
798
|
-
after:
|
|
799
|
-
before:
|
|
796
|
+
after: !0,
|
|
797
|
+
before: !1
|
|
800
798
|
}
|
|
801
799
|
],
|
|
802
800
|
"@stylistic/yield-star-spacing": [
|
|
803
801
|
"error",
|
|
804
802
|
{
|
|
805
|
-
after:
|
|
806
|
-
before:
|
|
803
|
+
after: !0,
|
|
804
|
+
before: !1
|
|
807
805
|
}
|
|
808
806
|
],
|
|
809
807
|
"@stylistic/max-statements-per-line": [
|
|
@@ -823,16 +821,16 @@ function defineEslintConfig(...args) {
|
|
|
823
821
|
{
|
|
824
822
|
files: ["**/*.css"],
|
|
825
823
|
languageOptions: {
|
|
826
|
-
parser:
|
|
824
|
+
parser: e.parserPlain
|
|
827
825
|
},
|
|
828
826
|
plugins: {
|
|
829
|
-
format
|
|
827
|
+
format: e
|
|
830
828
|
},
|
|
831
829
|
rules: {
|
|
832
830
|
"format/prettier": [
|
|
833
831
|
"error",
|
|
834
832
|
{
|
|
835
|
-
...
|
|
833
|
+
...r,
|
|
836
834
|
parser: "css"
|
|
837
835
|
}
|
|
838
836
|
]
|
|
@@ -841,16 +839,16 @@ function defineEslintConfig(...args) {
|
|
|
841
839
|
{
|
|
842
840
|
files: ["**/*.scss"],
|
|
843
841
|
languageOptions: {
|
|
844
|
-
parser:
|
|
842
|
+
parser: e.parserPlain
|
|
845
843
|
},
|
|
846
844
|
plugins: {
|
|
847
|
-
format
|
|
845
|
+
format: e
|
|
848
846
|
},
|
|
849
847
|
rules: {
|
|
850
848
|
"format/prettier": [
|
|
851
849
|
"error",
|
|
852
850
|
{
|
|
853
|
-
...
|
|
851
|
+
...r,
|
|
854
852
|
parser: "scss"
|
|
855
853
|
}
|
|
856
854
|
]
|
|
@@ -859,16 +857,16 @@ function defineEslintConfig(...args) {
|
|
|
859
857
|
{
|
|
860
858
|
files: ["**/*.html"],
|
|
861
859
|
languageOptions: {
|
|
862
|
-
parser:
|
|
860
|
+
parser: e.parserPlain
|
|
863
861
|
},
|
|
864
862
|
plugins: {
|
|
865
|
-
format
|
|
863
|
+
format: e
|
|
866
864
|
},
|
|
867
865
|
rules: {
|
|
868
866
|
"format/prettier": [
|
|
869
867
|
"error",
|
|
870
868
|
{
|
|
871
|
-
...
|
|
869
|
+
...r,
|
|
872
870
|
parser: "html"
|
|
873
871
|
}
|
|
874
872
|
]
|
|
@@ -877,16 +875,16 @@ function defineEslintConfig(...args) {
|
|
|
877
875
|
{
|
|
878
876
|
files: ["**/*.json"],
|
|
879
877
|
languageOptions: {
|
|
880
|
-
parser:
|
|
878
|
+
parser: e.parserPlain
|
|
881
879
|
},
|
|
882
880
|
plugins: {
|
|
883
|
-
format
|
|
881
|
+
format: e
|
|
884
882
|
},
|
|
885
883
|
rules: {
|
|
886
884
|
"format/prettier": [
|
|
887
885
|
"error",
|
|
888
886
|
{
|
|
889
|
-
...
|
|
887
|
+
...r,
|
|
890
888
|
parser: "json"
|
|
891
889
|
}
|
|
892
890
|
]
|
|
@@ -895,16 +893,16 @@ function defineEslintConfig(...args) {
|
|
|
895
893
|
{
|
|
896
894
|
files: ["**/*.jsonc"],
|
|
897
895
|
languageOptions: {
|
|
898
|
-
parser:
|
|
896
|
+
parser: e.parserPlain
|
|
899
897
|
},
|
|
900
898
|
plugins: {
|
|
901
|
-
format
|
|
899
|
+
format: e
|
|
902
900
|
},
|
|
903
901
|
rules: {
|
|
904
902
|
"format/prettier": [
|
|
905
903
|
"error",
|
|
906
904
|
{
|
|
907
|
-
...
|
|
905
|
+
...r,
|
|
908
906
|
parser: "jsonc"
|
|
909
907
|
}
|
|
910
908
|
]
|
|
@@ -913,16 +911,16 @@ function defineEslintConfig(...args) {
|
|
|
913
911
|
{
|
|
914
912
|
files: ["**/*.md"],
|
|
915
913
|
languageOptions: {
|
|
916
|
-
parser:
|
|
914
|
+
parser: e.parserPlain
|
|
917
915
|
},
|
|
918
916
|
plugins: {
|
|
919
|
-
format
|
|
917
|
+
format: e
|
|
920
918
|
},
|
|
921
919
|
rules: {
|
|
922
920
|
"format/prettier": [
|
|
923
921
|
"error",
|
|
924
922
|
{
|
|
925
|
-
...
|
|
923
|
+
...r,
|
|
926
924
|
parser: "markdown",
|
|
927
925
|
embeddedLanguageFormatting: "off",
|
|
928
926
|
printWidth: 320
|
|
@@ -933,16 +931,16 @@ function defineEslintConfig(...args) {
|
|
|
933
931
|
{
|
|
934
932
|
files: ["**/*.mdx"],
|
|
935
933
|
languageOptions: {
|
|
936
|
-
parser:
|
|
934
|
+
parser: e.parserPlain
|
|
937
935
|
},
|
|
938
936
|
plugins: {
|
|
939
|
-
format
|
|
937
|
+
format: e
|
|
940
938
|
},
|
|
941
939
|
rules: {
|
|
942
940
|
"format/prettier": [
|
|
943
941
|
"error",
|
|
944
942
|
{
|
|
945
|
-
...
|
|
943
|
+
...r,
|
|
946
944
|
parser: "mdx",
|
|
947
945
|
embeddedLanguageFormatting: "off",
|
|
948
946
|
printWidth: 320
|
|
@@ -950,9 +948,9 @@ function defineEslintConfig(...args) {
|
|
|
950
948
|
]
|
|
951
949
|
}
|
|
952
950
|
},
|
|
953
|
-
...
|
|
951
|
+
...t
|
|
954
952
|
);
|
|
955
|
-
return config;
|
|
956
953
|
}
|
|
957
|
-
|
|
958
|
-
|
|
954
|
+
export {
|
|
955
|
+
T as defineEslintConfig
|
|
956
|
+
};
|
package/dist/es/lint/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
1
|
+
import { defineCommitlintConfig as o } from "./commitlint.js";
|
|
2
|
+
import { defineEslintConfig as n } from "./eslint.js";
|
|
3
|
+
import { defineStylelintConfig as r } from "./stylelint.js";
|
|
4
|
+
export {
|
|
5
|
+
o as defineCommitlintConfig,
|
|
6
|
+
n as defineEslintConfig,
|
|
7
|
+
r as defineStylelintConfig
|
|
8
|
+
};
|