@vef-framework/dev 1.0.128 → 1.0.130
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/cjs/cli.cjs +4 -227
- package/cjs/commitlint-config.cjs +1 -13
- package/cjs/config.cjs +1 -81
- package/cjs/constants.cjs +1 -26
- package/cjs/eslint-config.cjs +1 -412
- package/cjs/index.cjs +1 -15
- package/cjs/json/monaco.nls.json.cjs +15920 -7
- package/cjs/json/monaco.theme.github-light.json.cjs +349 -7
- package/cjs/modules.d.cjs +0 -2
- package/cjs/plugin-app-config.cjs +1 -36
- package/cjs/plugin-conventional-config.cjs +3 -107
- package/cjs/plugin-eslint.cjs +1 -22
- package/cjs/plugin-html.cjs +2 -70
- package/cjs/plugin-icons.cjs +1 -20
- package/cjs/plugin-initialization.cjs +3 -26
- package/cjs/plugin-injection.cjs +2 -19
- package/cjs/plugin-inspect.cjs +1 -13
- package/cjs/plugin-monaco-nls.cjs +3 -59
- package/cjs/plugin-react-swc.cjs +1 -12
- package/cjs/plugin-router.cjs +4 -40
- package/cjs/plugin-stylelint.cjs +1 -22
- package/cjs/plugin-svgr.cjs +1 -57
- package/cjs/plugin-tailwind.cjs +1 -10
- package/cjs/plugin-tailwindcss.cjs +2 -23
- package/cjs/plugin-tsconfig-paths.cjs +1 -12
- package/cjs/plugin-visualizer.cjs +1 -14
- package/cjs/plugin-webfont.cjs +1 -13
- package/cjs/stylelint-config.cjs +1 -66
- package/cjs/tailwind-config.cjs +1 -394
- package/cjs/types.cjs +0 -2
- package/esm/cli.js +4 -225
- package/esm/commitlint-config.js +1 -11
- package/esm/config.js +1 -79
- package/esm/constants.js +1 -14
- package/esm/eslint-config.js +1 -410
- package/esm/index.js +1 -7
- package/esm/json/monaco.nls.json.js +15920 -3
- package/esm/json/monaco.theme.github-light.json.js +349 -3
- package/esm/plugin-app-config.js +1 -34
- package/esm/plugin-conventional-config.js +3 -105
- package/esm/plugin-eslint.js +1 -20
- package/esm/plugin-html.js +2 -68
- package/esm/plugin-icons.js +1 -17
- package/esm/plugin-initialization.js +3 -24
- package/esm/plugin-injection.js +2 -17
- package/esm/plugin-inspect.js +1 -11
- package/esm/plugin-monaco-nls.js +3 -56
- package/esm/plugin-react-swc.js +1 -10
- package/esm/plugin-router.js +4 -38
- package/esm/plugin-stylelint.js +1 -20
- package/esm/plugin-svgr.js +1 -55
- package/esm/plugin-tailwind.js +1 -8
- package/esm/plugin-tailwindcss.js +2 -21
- package/esm/plugin-tsconfig-paths.js +1 -10
- package/esm/plugin-visualizer.js +1 -12
- package/esm/plugin-webfont.js +1 -11
- package/esm/stylelint-config.js +1 -64
- package/esm/tailwind-config.js +1 -392
- package/package.json +1 -1
- package/template/_package.json +5 -5
package/cjs/eslint-config.cjs
CHANGED
|
@@ -1,413 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
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;
|
|
2
|
+
"use strict";var r=require("@antfu/eslint-config"),e=require("@tanstack/eslint-plugin-router");function o(){return r.antfu({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"])}exports.defineEslintConfig=o;
|
package/cjs/index.cjs
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
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;
|
|
2
|
+
"use strict";var i=require("./commitlint-config.cjs"),n=require("./config.cjs"),e=require("./eslint-config.cjs"),f=require("./stylelint-config.cjs"),t=require("./tailwind-config.cjs");exports.defineCommitlintConfig=i.defineCommitlintConfig,exports.defineConfig=n.defineConfig,exports.defineEslintConfig=e.defineEslintConfig,exports.defineStylelintConfig=f.defineStylelintConfig,exports.defineTailwindConfig=t.defineTailwindConfig;
|