create-bubbles 0.0.11 → 0.0.16
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/index.js +3 -3
- package/package.json +41 -38
- package/template-react-rsbuild/.env +2 -2
- package/template-react-rsbuild/.gitignore +7 -0
- package/template-react-rsbuild/.npmrc +1 -0
- package/template-react-rsbuild/.prettierignore +33 -33
- package/template-react-rsbuild/.prettierrc +17 -17
- package/template-react-rsbuild/.vscode/settings.json +21 -0
- package/template-react-rsbuild/README.md +29 -29
- package/template-react-rsbuild/biome.json +102 -102
- package/template-react-rsbuild/commitlint.config.js +1 -1
- package/template-react-rsbuild/index.html +6 -6
- package/template-react-rsbuild/lefthook.yml +14 -14
- package/template-react-rsbuild/package.json +40 -39
- package/template-react-rsbuild/rsbuild.config.ts +34 -28
- package/template-react-rsbuild/src/App.tsx +9 -9
- package/template-react-rsbuild/src/components/Loading/PageLoading.tsx +11 -11
- package/template-react-rsbuild/src/env.d.ts +1 -1
- package/template-react-rsbuild/src/index.tsx +20 -20
- package/template-react-rsbuild/src/pages/home/index.tsx +5 -26
- package/template-react-rsbuild/src/router/index.tsx +27 -27
- package/template-react-rsbuild/src/store/modules/user.ts +11 -11
- package/template-react-rsbuild/src/styles/index.css +16 -16
- package/template-react-rsbuild/src/types/auto-import.d.ts +47 -47
- package/template-react-rsbuild/src/utils/request/axios.ts +82 -82
- package/template-react-rsbuild/src/utils/request/index.ts +77 -77
- package/template-react-rsbuild/tsconfig.json +29 -29
- package/template-react-rsbuild/uno.config.ts +8 -8
- package/template-vue-rsbuild/.env +2 -2
- package/template-vue-rsbuild/.gitignore +10 -0
- package/template-vue-rsbuild/.npmrc +1 -0
- package/template-vue-rsbuild/.prettierignore +4 -4
- package/template-vue-rsbuild/.prettierrc +18 -17
- package/template-vue-rsbuild/.vscode/settings.json +7 -0
- package/template-vue-rsbuild/README.md +29 -29
- package/template-vue-rsbuild/biome.json +102 -113
- package/template-vue-rsbuild/index.html +6 -6
- package/template-vue-rsbuild/lefthook.yml +11 -0
- package/template-vue-rsbuild/package.json +32 -31
- package/template-vue-rsbuild/rsbuild.config.ts +35 -28
- package/template-vue-rsbuild/src/App.vue +3 -29
- package/template-vue-rsbuild/src/index.ts +15 -15
- package/template-vue-rsbuild/src/router/modules/index.tsx +2 -2
- package/template-vue-rsbuild/src/store/index.ts +7 -7
- package/template-vue-rsbuild/src/store/modules/user.ts +16 -16
- package/template-vue-rsbuild/src/styles/index.css +16 -16
- package/template-vue-rsbuild/src/types/auto-import.d.ts +91 -91
- package/template-vue-rsbuild/src/types/env.d.ts +17 -0
- package/template-vue-rsbuild/src/utils/request/axios.ts +83 -83
- package/template-vue-rsbuild/src/utils/request/index.ts +77 -77
- package/template-vue-rsbuild/src/views/home/index.vue +11 -13
- package/template-vue-rsbuild/tsconfig.json +29 -29
- package/template-vue-rsbuild/uno.config.ts +9 -9
- package/template-vue-rsbuild-eslint/.env +3 -0
- package/template-vue-rsbuild-eslint/.gitignore +13 -0
- package/template-vue-rsbuild-eslint/.prettierignore +4 -0
- package/template-vue-rsbuild-eslint/.prettierrc +17 -0
- package/{template-vue-rsbuild → template-vue-rsbuild-eslint}/.vscode/extensions.json +3 -3
- package/template-vue-rsbuild-eslint/README.md +29 -0
- package/template-vue-rsbuild-eslint/biome.json +110 -0
- package/template-vue-rsbuild-eslint/index.html +7 -0
- package/template-vue-rsbuild-eslint/package.json +31 -0
- package/template-vue-rsbuild-eslint/postcss.config.mjs +5 -0
- package/template-vue-rsbuild-eslint/public/.gitkeep +0 -0
- package/template-vue-rsbuild-eslint/rsbuild.config.ts +28 -0
- package/template-vue-rsbuild-eslint/src/App.vue +29 -0
- package/{template-vue-rsbuild → template-vue-rsbuild-eslint}/src/env.d.ts +5 -5
- package/{template-vue-rsbuild → template-vue-rsbuild-eslint}/src/index.css +6 -6
- package/template-vue-rsbuild-eslint/src/index.ts +15 -0
- package/template-vue-rsbuild-eslint/src/router/guard/index.tsx +6 -0
- package/template-vue-rsbuild-eslint/src/router/guard/permissionGuard.ts +8 -0
- package/template-vue-rsbuild-eslint/src/router/index.tsx +14 -0
- package/template-vue-rsbuild-eslint/src/router/modules/index.tsx +10 -0
- package/template-vue-rsbuild-eslint/src/store/index.ts +7 -0
- package/template-vue-rsbuild-eslint/src/store/modules/user.ts +16 -0
- package/template-vue-rsbuild-eslint/src/styles/index.css +16 -0
- package/template-vue-rsbuild-eslint/src/types/auto-import.d.ts +91 -0
- package/template-vue-rsbuild-eslint/src/utils/request/axios.ts +83 -0
- package/template-vue-rsbuild-eslint/src/utils/request/index.ts +77 -0
- package/template-vue-rsbuild-eslint/src/views/home/index.vue +13 -0
- package/template-vue-rsbuild-eslint/tsconfig.json +29 -0
- package/template-vue-rsbuild-eslint/uno.config.ts +9 -0
- package/template-react-rsbuild/postcss.config.mjs +0 -5
- package/template-vue-rsbuild/postcss.config.mjs +0 -5
- /package/{template-react-rsbuild/index.en-US.md → template-vue-rsbuild-eslint/.env.development} +0 -0
- /package/{template-react-rsbuild/index.zh-CN.md → template-vue-rsbuild-eslint/.env.production} +0 -0
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import type { AxiosRequestConfig } from 'axios'
|
|
2
|
-
|
|
3
|
-
import request, { type CustomConfig } from './axios'
|
|
4
|
-
|
|
5
|
-
interface createAxiosType {
|
|
6
|
-
get: <T = any>(
|
|
7
|
-
config: {
|
|
8
|
-
url: string
|
|
9
|
-
params?: AxiosRequestConfig['params']
|
|
10
|
-
config?: AxiosRequestConfig<any>
|
|
11
|
-
},
|
|
12
|
-
option?: CustomConfig,
|
|
13
|
-
) => Promise<T>
|
|
14
|
-
post: <T = any>(
|
|
15
|
-
config: {
|
|
16
|
-
url: string
|
|
17
|
-
data?: AxiosRequestConfig['data']
|
|
18
|
-
params?: AxiosRequestConfig['params']
|
|
19
|
-
config?: AxiosRequestConfig<any>
|
|
20
|
-
},
|
|
21
|
-
option?: CustomConfig,
|
|
22
|
-
) => Promise<T>
|
|
23
|
-
put: <T = any>(
|
|
24
|
-
config: {
|
|
25
|
-
url: string
|
|
26
|
-
data?: AxiosRequestConfig['data']
|
|
27
|
-
config?: AxiosRequestConfig<any>
|
|
28
|
-
},
|
|
29
|
-
option?: CustomConfig,
|
|
30
|
-
) => Promise<T>
|
|
31
|
-
delete: <T = any>(
|
|
32
|
-
config: {
|
|
33
|
-
url: string
|
|
34
|
-
data?: AxiosRequestConfig['data']
|
|
35
|
-
config?: AxiosRequestConfig<any>
|
|
36
|
-
},
|
|
37
|
-
option?: CustomConfig,
|
|
38
|
-
) => Promise<T>
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const createAxios: createAxiosType = {
|
|
42
|
-
get: (config, option) =>
|
|
43
|
-
request(option).get(config.url, {
|
|
44
|
-
params: config.params,
|
|
45
|
-
...config?.config,
|
|
46
|
-
}),
|
|
47
|
-
post: (
|
|
48
|
-
config: {
|
|
49
|
-
url: string
|
|
50
|
-
params?: Record<string, string>
|
|
51
|
-
data?: any
|
|
52
|
-
config?: AxiosRequestConfig<any>
|
|
53
|
-
},
|
|
54
|
-
option?: CustomConfig,
|
|
55
|
-
) => {
|
|
56
|
-
let url = config.url
|
|
57
|
-
if (config.params instanceof Object) {
|
|
58
|
-
url += '?'
|
|
59
|
-
const entries = Object.entries(config.params)
|
|
60
|
-
for (let i = 0; i < entries.length; i++) {
|
|
61
|
-
const [key, value] = entries[i]
|
|
62
|
-
url += `${key}=${value}${i < entries.length - 1 ? '&' : ''}`
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return request(option).post(url, config?.data, config?.config)
|
|
66
|
-
},
|
|
67
|
-
put: (
|
|
68
|
-
config: { url: string; data?: any; config?: AxiosRequestConfig<any> },
|
|
69
|
-
option?: CustomConfig,
|
|
70
|
-
) => request(option).put(config.url, config?.data, config?.config),
|
|
71
|
-
delete: (
|
|
72
|
-
config: { url: string; config?: AxiosRequestConfig<any> },
|
|
73
|
-
customConfig?: CustomConfig,
|
|
74
|
-
) => request(customConfig).delete(config.url, config?.config),
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export default createAxios
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios'
|
|
2
|
+
|
|
3
|
+
import request, { type CustomConfig } from './axios'
|
|
4
|
+
|
|
5
|
+
interface createAxiosType {
|
|
6
|
+
get: <T = any>(
|
|
7
|
+
config: {
|
|
8
|
+
url: string
|
|
9
|
+
params?: AxiosRequestConfig['params']
|
|
10
|
+
config?: AxiosRequestConfig<any>
|
|
11
|
+
},
|
|
12
|
+
option?: CustomConfig,
|
|
13
|
+
) => Promise<T>
|
|
14
|
+
post: <T = any>(
|
|
15
|
+
config: {
|
|
16
|
+
url: string
|
|
17
|
+
data?: AxiosRequestConfig['data']
|
|
18
|
+
params?: AxiosRequestConfig['params']
|
|
19
|
+
config?: AxiosRequestConfig<any>
|
|
20
|
+
},
|
|
21
|
+
option?: CustomConfig,
|
|
22
|
+
) => Promise<T>
|
|
23
|
+
put: <T = any>(
|
|
24
|
+
config: {
|
|
25
|
+
url: string
|
|
26
|
+
data?: AxiosRequestConfig['data']
|
|
27
|
+
config?: AxiosRequestConfig<any>
|
|
28
|
+
},
|
|
29
|
+
option?: CustomConfig,
|
|
30
|
+
) => Promise<T>
|
|
31
|
+
delete: <T = any>(
|
|
32
|
+
config: {
|
|
33
|
+
url: string
|
|
34
|
+
data?: AxiosRequestConfig['data']
|
|
35
|
+
config?: AxiosRequestConfig<any>
|
|
36
|
+
},
|
|
37
|
+
option?: CustomConfig,
|
|
38
|
+
) => Promise<T>
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const createAxios: createAxiosType = {
|
|
42
|
+
get: (config, option) =>
|
|
43
|
+
request(option).get(config.url, {
|
|
44
|
+
params: config.params,
|
|
45
|
+
...config?.config,
|
|
46
|
+
}),
|
|
47
|
+
post: (
|
|
48
|
+
config: {
|
|
49
|
+
url: string
|
|
50
|
+
params?: Record<string, string>
|
|
51
|
+
data?: any
|
|
52
|
+
config?: AxiosRequestConfig<any>
|
|
53
|
+
},
|
|
54
|
+
option?: CustomConfig,
|
|
55
|
+
) => {
|
|
56
|
+
let url = config.url
|
|
57
|
+
if (config.params instanceof Object) {
|
|
58
|
+
url += '?'
|
|
59
|
+
const entries = Object.entries(config.params)
|
|
60
|
+
for (let i = 0; i < entries.length; i++) {
|
|
61
|
+
const [key, value] = entries[i]
|
|
62
|
+
url += `${key}=${value}${i < entries.length - 1 ? '&' : ''}`
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return request(option).post(url, config?.data, config?.config)
|
|
66
|
+
},
|
|
67
|
+
put: (
|
|
68
|
+
config: { url: string; data?: any; config?: AxiosRequestConfig<any> },
|
|
69
|
+
option?: CustomConfig,
|
|
70
|
+
) => request(option).put(config.url, config?.data, config?.config),
|
|
71
|
+
delete: (
|
|
72
|
+
config: { url: string; config?: AxiosRequestConfig<any> },
|
|
73
|
+
customConfig?: CustomConfig,
|
|
74
|
+
) => request(customConfig).delete(config.url, config?.config),
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export default createAxios
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["DOM", "ES2020"],
|
|
4
|
-
"jsx": "react-jsx",
|
|
5
|
-
"target": "ES2020",
|
|
6
|
-
"noEmit": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"useDefineForClassFields": true,
|
|
9
|
-
|
|
10
|
-
/* modules */
|
|
11
|
-
"module": "ESNext",
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"moduleResolution": "Bundler",
|
|
15
|
-
"allowImportingTsExtensions": true,
|
|
16
|
-
|
|
17
|
-
/* type checking */
|
|
18
|
-
"strict": true,
|
|
19
|
-
"noUnusedLocals": true,
|
|
20
|
-
"noUnusedParameters": true,
|
|
21
|
-
|
|
22
|
-
"baseUrl": "./",
|
|
23
|
-
"paths": {
|
|
24
|
-
"@/*": ["src/*"]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"include": ["src"],
|
|
28
|
-
"exclude": ["node_modules", "dist"]
|
|
29
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["DOM", "ES2020"],
|
|
4
|
+
"jsx": "react-jsx",
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"useDefineForClassFields": true,
|
|
9
|
+
|
|
10
|
+
/* modules */
|
|
11
|
+
"module": "ESNext",
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"moduleResolution": "Bundler",
|
|
15
|
+
"allowImportingTsExtensions": true,
|
|
16
|
+
|
|
17
|
+
/* type checking */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
|
|
22
|
+
"baseUrl": "./",
|
|
23
|
+
"paths": {
|
|
24
|
+
"@/*": ["src/*"]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"include": ["src"],
|
|
28
|
+
"exclude": ["node_modules", "dist"]
|
|
29
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineConfig,
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
content: {
|
|
5
|
-
filesystem: ['**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}'],
|
|
6
|
-
},
|
|
7
|
-
presets: [
|
|
8
|
-
})
|
|
1
|
+
import { defineConfig, presetWind3 } from 'unocss'
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
content: {
|
|
5
|
+
filesystem: ['**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}'],
|
|
6
|
+
},
|
|
7
|
+
presets: [presetWind3()],
|
|
8
|
+
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# port
|
|
2
|
-
PUBLIC_PORT = 9200
|
|
1
|
+
# port
|
|
2
|
+
PUBLIC_PORT = 9200
|
|
3
3
|
PUBLIC_PATH = '/'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
registry=https://registry.npmmirror.com/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Lock files
|
|
2
|
-
package-lock.json
|
|
3
|
-
pnpm-lock.yaml
|
|
4
|
-
yarn.lock
|
|
1
|
+
# Lock files
|
|
2
|
+
package-lock.json
|
|
3
|
+
pnpm-lock.yaml
|
|
4
|
+
yarn.lock
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"singleQuote": true,
|
|
3
|
-
"jsxSingleQuote": false,
|
|
4
|
-
"trailingComma": "all",
|
|
5
|
-
"printWidth": 100,
|
|
6
|
-
"proseWrap": "never",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
{
|
|
2
|
+
"singleQuote": true,
|
|
3
|
+
"jsxSingleQuote": false,
|
|
4
|
+
"trailingComma": "all",
|
|
5
|
+
"printWidth": 100,
|
|
6
|
+
"proseWrap": "never",
|
|
7
|
+
"semi": false,
|
|
8
|
+
"importOrder": ["^(vue|vue-router)$", "^([a-z]|@[a-z])", "", ".*"],
|
|
9
|
+
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
|
|
10
|
+
"overrides": [
|
|
11
|
+
{
|
|
12
|
+
"files": ".prettierrc",
|
|
13
|
+
"options": {
|
|
14
|
+
"parser": "json"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
# Rsbuild project
|
|
2
|
-
|
|
3
|
-
## Setup
|
|
4
|
-
|
|
5
|
-
Install the dependencies:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pnpm install
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Get started
|
|
12
|
-
|
|
13
|
-
Start the dev server:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
pnpm dev
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
Build the app for production:
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
pnpm build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Preview the production build locally:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pnpm preview
|
|
29
|
-
```
|
|
1
|
+
# Rsbuild project
|
|
2
|
+
|
|
3
|
+
## Setup
|
|
4
|
+
|
|
5
|
+
Install the dependencies:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm install
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Get started
|
|
12
|
+
|
|
13
|
+
Start the dev server:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm dev
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Build the app for production:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Preview the production build locally:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pnpm preview
|
|
29
|
+
```
|
|
@@ -1,113 +1,102 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files": {
|
|
3
|
-
"ignoreUnknown": true,
|
|
4
|
-
"ignore": [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
},
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
"a11y": {
|
|
105
|
-
"useValidAnchor": "off",
|
|
106
|
-
"useAnchorContent": "off",
|
|
107
|
-
"useKeyWithClickEvents": "off"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"files": {
|
|
3
|
+
"ignoreUnknown": true,
|
|
4
|
+
"ignore": ["dist/*", "node_modules", "package.json"]
|
|
5
|
+
},
|
|
6
|
+
"formatter": {
|
|
7
|
+
"enabled": true,
|
|
8
|
+
"indentStyle": "space",
|
|
9
|
+
"lineWidth": 100,
|
|
10
|
+
"indentWidth": 2
|
|
11
|
+
},
|
|
12
|
+
"javascript": {
|
|
13
|
+
"formatter": {
|
|
14
|
+
"quoteStyle": "single",
|
|
15
|
+
"semicolons": "asNeeded"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"organizeImports": {
|
|
19
|
+
"enabled": false
|
|
20
|
+
},
|
|
21
|
+
"linter": {
|
|
22
|
+
"rules": {
|
|
23
|
+
"style": {
|
|
24
|
+
"useImportType": "off",
|
|
25
|
+
"useNumberNamespace": "off",
|
|
26
|
+
"useNodejsImportProtocol": "off",
|
|
27
|
+
"noNonNullAssertion": "off",
|
|
28
|
+
"noUnusedTemplateLiteral": "off"
|
|
29
|
+
},
|
|
30
|
+
"complexity": {
|
|
31
|
+
"noUselessTypeConstraint": "off",
|
|
32
|
+
"noForEach": "off"
|
|
33
|
+
},
|
|
34
|
+
"correctness": {
|
|
35
|
+
"useExhaustiveDependencies": "off"
|
|
36
|
+
},
|
|
37
|
+
"suspicious": {
|
|
38
|
+
"noGlobalIsNan": "off",
|
|
39
|
+
"noGlobalIsFinite": "off",
|
|
40
|
+
"noExplicitAny": "off",
|
|
41
|
+
"noArrayIndexKey": "off",
|
|
42
|
+
"noConfusingVoidType": "off",
|
|
43
|
+
"noThenProperty": "off"
|
|
44
|
+
},
|
|
45
|
+
"performance": {
|
|
46
|
+
"noDelete": "off",
|
|
47
|
+
"noAccumulatingSpread": "off"
|
|
48
|
+
},
|
|
49
|
+
"a11y": {
|
|
50
|
+
"noAriaHiddenOnFocusable": "off",
|
|
51
|
+
"noLabelWithoutControl": "off",
|
|
52
|
+
"useFocusableInteractive": "off",
|
|
53
|
+
"useKeyWithClickEvents": "off",
|
|
54
|
+
"useSemanticElements": "off"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"css": {
|
|
59
|
+
"formatter": {
|
|
60
|
+
"quoteStyle": "single"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"overrides": [
|
|
64
|
+
{
|
|
65
|
+
"include": ["**/*.test.ts", "**/*.test.tsx", "tests/**/*", "scripts/**/*", ".dumi/**/*"],
|
|
66
|
+
"linter": {
|
|
67
|
+
"rules": {
|
|
68
|
+
"style": {
|
|
69
|
+
"noParameterAssign": "off"
|
|
70
|
+
},
|
|
71
|
+
"suspicious": {
|
|
72
|
+
"noThenProperty": "off",
|
|
73
|
+
"noImplicitAnyLet": "off"
|
|
74
|
+
},
|
|
75
|
+
"complexity": {
|
|
76
|
+
"noUselessFragments": "off"
|
|
77
|
+
},
|
|
78
|
+
"a11y": {
|
|
79
|
+
"useValidAnchor": "off",
|
|
80
|
+
"useAnchorContent": "off",
|
|
81
|
+
"useKeyWithClickEvents": "off"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"include": ["components/*/demo/*"],
|
|
88
|
+
"linter": {
|
|
89
|
+
"rules": {
|
|
90
|
+
"correctness": {
|
|
91
|
+
"noVoidTypeReturn": "off"
|
|
92
|
+
},
|
|
93
|
+
"a11y": {
|
|
94
|
+
"useValidAnchor": "off",
|
|
95
|
+
"useAnchorContent": "off",
|
|
96
|
+
"useKeyWithClickEvents": "off"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head></head>
|
|
4
|
-
<body>
|
|
5
|
-
<div id="<%= mountId %>"></div>
|
|
6
|
-
</body>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
<head></head>
|
|
4
|
+
<body>
|
|
5
|
+
<div id="<%= mountId %>"></div>
|
|
6
|
+
</body>
|
|
7
7
|
</html>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
pre-commit:
|
|
2
|
+
commands:
|
|
3
|
+
check:
|
|
4
|
+
glob: '*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,vue}'
|
|
5
|
+
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
|
|
6
|
+
stage_fixed: true
|
|
7
|
+
|
|
8
|
+
commit-msg:
|
|
9
|
+
commands:
|
|
10
|
+
'lint commit message':
|
|
11
|
+
run: npx commitlint --edit {1}
|