@4399ywkf/core 5.0.25 → 5.0.27
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/biome.json +88 -0
- package/dist/cli/index.js +2 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js.map +1 -1
- package/dist/index.d.ts +17 -29
- package/dist/index.js +26 -119
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.d.ts +2 -2
- package/dist/rspack/index.d.ts +1 -1
- package/dist/rspack/index.js +2 -1
- package/dist/rspack/index.js.map +1 -1
- package/dist/{schema-CGQSqjRr.d.ts → schema-runIYOB7.d.ts} +17 -0
- package/package.json +5 -3
package/biome.json
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
3
|
+
"vcs": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"defaultBranch": "main",
|
|
6
|
+
"clientKind": "git",
|
|
7
|
+
"useIgnoreFile": true
|
|
8
|
+
},
|
|
9
|
+
"formatter": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"indentStyle": "space"
|
|
12
|
+
},
|
|
13
|
+
"css": {
|
|
14
|
+
"formatter": {
|
|
15
|
+
"quoteStyle": "single"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"javascript": {
|
|
19
|
+
"formatter": {
|
|
20
|
+
"quoteStyle": "single",
|
|
21
|
+
"arrowParentheses": "asNeeded",
|
|
22
|
+
"jsxQuoteStyle": "double",
|
|
23
|
+
"lineWidth": 100
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"linter": {
|
|
27
|
+
"enabled": true,
|
|
28
|
+
"rules": {
|
|
29
|
+
"recommended": true,
|
|
30
|
+
"style": {
|
|
31
|
+
"useNodejsImportProtocol": "off",
|
|
32
|
+
"noNonNullAssertion": "off",
|
|
33
|
+
"noUnusedTemplateLiteral": "off",
|
|
34
|
+
"noUselessElse": "off",
|
|
35
|
+
"useNumberNamespace": "off",
|
|
36
|
+
"useFragmentSyntax": "off"
|
|
37
|
+
},
|
|
38
|
+
"suspicious": {
|
|
39
|
+
"noDuplicateFontNames": "off",
|
|
40
|
+
"noExplicitAny": "off",
|
|
41
|
+
"noConfusingVoidType": "off",
|
|
42
|
+
"noImplicitAnyLet": "off",
|
|
43
|
+
"noAssignInExpressions": "off",
|
|
44
|
+
"noPrototypeBuiltins": "off"
|
|
45
|
+
},
|
|
46
|
+
"complexity": {
|
|
47
|
+
"noBannedTypes": "off",
|
|
48
|
+
"noForEach": "off",
|
|
49
|
+
"noUselessThisAlias": "off",
|
|
50
|
+
"noStaticOnlyClass": "off",
|
|
51
|
+
"useArrowFunction": "off"
|
|
52
|
+
},
|
|
53
|
+
"correctness": {
|
|
54
|
+
"useExhaustiveDependencies": "off"
|
|
55
|
+
},
|
|
56
|
+
"a11y": {
|
|
57
|
+
"useAltText": "off",
|
|
58
|
+
"useKeyWithClickEvents": "off",
|
|
59
|
+
"useButtonType": "off",
|
|
60
|
+
"noSvgWithoutTitle": "off"
|
|
61
|
+
},
|
|
62
|
+
"performance": {
|
|
63
|
+
"noDelete": "off"
|
|
64
|
+
},
|
|
65
|
+
"security": {
|
|
66
|
+
"noDangerouslySetInnerHtml": "off"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"assist": {
|
|
71
|
+
"actions": {
|
|
72
|
+
"source": {
|
|
73
|
+
"organizeImports": "on"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"files": {
|
|
78
|
+
"ignoreUnknown": true,
|
|
79
|
+
"includes": [
|
|
80
|
+
"**",
|
|
81
|
+
"!**/.vscode/**/*",
|
|
82
|
+
"!**/node_modules/**/*",
|
|
83
|
+
"!**/dist/**/*",
|
|
84
|
+
"!**/.ywkf/**/*",
|
|
85
|
+
"!**/public/**/*.html"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
package/dist/cli/index.js
CHANGED
|
@@ -1052,7 +1052,8 @@ var YwkfGenerator = class {
|
|
|
1052
1052
|
const generator = new ConventionalRouteGenerator({
|
|
1053
1053
|
pagesDir,
|
|
1054
1054
|
outputDir,
|
|
1055
|
-
basename: config.router.basename
|
|
1055
|
+
basename: config.router.basename,
|
|
1056
|
+
loading: config.router.loading
|
|
1056
1057
|
});
|
|
1057
1058
|
const content = generator.generateCode();
|
|
1058
1059
|
const routesPath = join3(outputDir, "routes.tsx");
|