create-packer 1.45.1 → 1.45.3
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/package.json +1 -1
- package/template/lib/workspace/eslint.config.mjs +118 -116
- package/template/web-app/react-rsbuild/.env +0 -1
- package/template/web-app/react-rsbuild/.env.development +0 -1
- package/template/web-app/react-rsbuild/domain/router/components/index.ts +2 -2
- package/template/web-app/react-rsbuild/domain/router/components/route-layout.tsx +19 -19
- package/template/web-app/react-rsbuild/domain/router/components/sub-route-outlet.tsx +22 -22
- package/template/web-app/react-rsbuild/domain/router/home/routes.tsx +1 -1
- package/template/web-app/react-rsbuild/domain/router/index.ts +4 -4
- package/template/web-app/react-rsbuild/env.d.ts +20 -21
- package/template/web-app/react-rsbuild/eslint.config.js +106 -104
- package/template/web-app/react-rsbuild/main.css +2 -2
- package/template/web-app/react-rsbuild/package.json +6 -5
- package/template/web-app/react-rsbuild/pages/home/index.ts +1 -1
- package/template/web-app/react-rsbuild/shared/components/componentInstance.tsx +80 -80
- package/template/web-app/react-rsbuild/shared/components/index.ts +1 -1
- package/template/web-app/react-rsbuild/shared/types/utils.ts +1 -1
- package/template/web-app/react-vite/domain/router/home/routes.tsx +1 -1
- package/template/web-app/react-vite/eslint.config.js +3 -1
- package/template/web-app/react-vite/package.json +1 -1
- package/template/web-app/react-vite/shared/types/utils.ts +1 -1
- package/template/web-app/svelte/.env +1 -1
- package/template/web-app/svelte/.svelte-kit/ambient.d.ts +12 -14
- package/template/web-app/svelte/eslint.config.js +2 -0
- package/template/web-app/svelte/package.json +1 -1
- package/template/web-app/vue/eslint.config.js +3 -1
- package/template/web-app/vue/package.json +1 -1
- package/template/web-app/vue/shared/hooks/useList.ts +1 -1
- package/template/web-app/vue/vite-env.d.ts +1 -1
- package/template/web-app/vue-rsbuild/env.d.ts +1 -1
- package/template/web-app/vue-rsbuild/eslint.config.js +113 -111
- package/template/web-app/vue-rsbuild/package.json +1 -1
- package/template/web-app/vue-rsbuild/shared/hooks/useList.ts +1 -1
- package/template/web-extension/entrypoints/popup/index.html +0 -1
- package/template/web-extension/eslint.config.js +107 -105
- package/template/web-extension/package.json +1 -1
- package/template/web-extension/shared/types/utils.ts +1 -1
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@tanstack/react-query": "5.51.15",
|
|
23
23
|
"axios": "1.7.9",
|
|
24
24
|
"define-zustand": "3.4.0",
|
|
25
|
-
"es-toolkit": "1.
|
|
25
|
+
"es-toolkit": "1.39.8",
|
|
26
26
|
"immer": "10.0.1",
|
|
27
27
|
"qs": "6.11.2",
|
|
28
28
|
"react": "18.3.1",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@commitlint/config-conventional": "17.6.1",
|
|
39
39
|
"@commitlint/cz-commitlint": "17.5.0",
|
|
40
40
|
"@eslint/js": "9.15.0",
|
|
41
|
-
"@rsbuild/core": "1.
|
|
41
|
+
"@rsbuild/core": "1.4.12",
|
|
42
42
|
"@rsbuild/plugin-eslint": "1.1.1",
|
|
43
|
-
"@rsbuild/plugin-react": "1.
|
|
44
|
-
"@rsbuild/plugin-svgr": "1.
|
|
45
|
-
"@rsbuild/plugin-type-check": "1.2.
|
|
43
|
+
"@rsbuild/plugin-react": "1.3.4",
|
|
44
|
+
"@rsbuild/plugin-svgr": "1.2.1",
|
|
45
|
+
"@rsbuild/plugin-type-check": "1.2.3",
|
|
46
46
|
"@rsdoctor/rspack-plugin": "0.4.13",
|
|
47
47
|
"@tailwindcss/postcss": "4.1.4",
|
|
48
48
|
"@types/node": "18.16.0",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"postcss": "8.4.35",
|
|
64
64
|
"postcss-import": "16.0.1",
|
|
65
65
|
"postcss-nesting": "12.0.3",
|
|
66
|
+
"postcss-styled-syntax": "0.6.4",
|
|
66
67
|
"prettier": "3.2.5",
|
|
67
68
|
"stylelint": "16.10.0",
|
|
68
69
|
"stylelint-config-standard": "36.0.1",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from './view'
|
|
1
|
+
export { default } from './view'
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
forwardRef,
|
|
3
|
-
ForwardRefExoticComponent,
|
|
4
|
-
FunctionComponent,
|
|
5
|
-
PropsWithChildren,
|
|
6
|
-
PropsWithoutRef,
|
|
7
|
-
RefAttributes,
|
|
8
|
-
useImperativeHandle,
|
|
9
|
-
useRef,
|
|
10
|
-
useState
|
|
11
|
-
} from 'react'
|
|
12
|
-
import { createRoot } from 'react-dom/client'
|
|
13
|
-
|
|
14
|
-
const instanceMap: Record<string, { pending: Promise<any>; instance: any }> = {}
|
|
15
|
-
|
|
16
|
-
export interface refsType<P> {
|
|
17
|
-
$setProps: (newProps: P) => void
|
|
18
|
-
$updateProps: (newProps: Partial<P>) => void
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function create(Context?: FunctionComponent<PropsWithChildren<any>>) {
|
|
22
|
-
return async function <P extends Record<string, any>, Refs extends Record<string, any>>(
|
|
23
|
-
key: string,
|
|
24
|
-
Component: ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<Refs>>,
|
|
25
|
-
props?: P
|
|
26
|
-
) {
|
|
27
|
-
let current = instanceMap[key]
|
|
28
|
-
if (!current) {
|
|
29
|
-
const div = document.createElement('div')
|
|
30
|
-
document.body.appendChild(div)
|
|
31
|
-
const ApiComponent = forwardRef<Refs & refsType<P>>((__, refs) => {
|
|
32
|
-
const ref = useRef<Refs>(null)
|
|
33
|
-
const [state, setState] = useState<Partial<P>>(props || {})
|
|
34
|
-
|
|
35
|
-
useImperativeHandle(refs, () => {
|
|
36
|
-
return {
|
|
37
|
-
$setProps: newProps => {
|
|
38
|
-
setState(() => newProps)
|
|
39
|
-
},
|
|
40
|
-
$updateProps: newProps => {
|
|
41
|
-
if (newProps) {
|
|
42
|
-
setState(state => ({ ...state, ...newProps }))
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
...ref.current
|
|
46
|
-
} as Refs & refsType<P>
|
|
47
|
-
})
|
|
48
|
-
if (Context) {
|
|
49
|
-
return (
|
|
50
|
-
<Context>
|
|
51
|
-
<Component ref={ref} {...(state as any)} />
|
|
52
|
-
</Context>
|
|
53
|
-
)
|
|
54
|
-
}
|
|
55
|
-
return <Component ref={ref} {...(state as any)} />
|
|
56
|
-
})
|
|
57
|
-
current = instanceMap[key] = {
|
|
58
|
-
instance: void 0,
|
|
59
|
-
pending: new Promise<void>(resolve => {
|
|
60
|
-
createRoot(div).render(
|
|
61
|
-
(
|
|
62
|
-
<ApiComponent
|
|
63
|
-
ref={instance => {
|
|
64
|
-
current.instance = instanceMap[key].instance = instance!
|
|
65
|
-
resolve()
|
|
66
|
-
}}
|
|
67
|
-
/>
|
|
68
|
-
) as never
|
|
69
|
-
)
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
await current.pending
|
|
74
|
-
current.instance.$setProps(props)
|
|
75
|
-
// Delay return to avoid sync issue
|
|
76
|
-
// ------------------------------------------------------------------------
|
|
77
|
-
await new Promise(resolve => setTimeout(resolve))
|
|
78
|
-
return current.instance as Refs & refsType<P>
|
|
79
|
-
}
|
|
80
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
forwardRef,
|
|
3
|
+
ForwardRefExoticComponent,
|
|
4
|
+
FunctionComponent,
|
|
5
|
+
PropsWithChildren,
|
|
6
|
+
PropsWithoutRef,
|
|
7
|
+
RefAttributes,
|
|
8
|
+
useImperativeHandle,
|
|
9
|
+
useRef,
|
|
10
|
+
useState
|
|
11
|
+
} from 'react'
|
|
12
|
+
import { createRoot } from 'react-dom/client'
|
|
13
|
+
|
|
14
|
+
const instanceMap: Record<string, { pending: Promise<any>; instance: any }> = {}
|
|
15
|
+
|
|
16
|
+
export interface refsType<P> {
|
|
17
|
+
$setProps: (newProps: P) => void
|
|
18
|
+
$updateProps: (newProps: Partial<P>) => void
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function create(Context?: FunctionComponent<PropsWithChildren<any>>) {
|
|
22
|
+
return async function <P extends Record<string, any>, Refs extends Record<string, any>>(
|
|
23
|
+
key: string,
|
|
24
|
+
Component: ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<Refs>>,
|
|
25
|
+
props?: P
|
|
26
|
+
) {
|
|
27
|
+
let current = instanceMap[key]
|
|
28
|
+
if (!current) {
|
|
29
|
+
const div = document.createElement('div')
|
|
30
|
+
document.body.appendChild(div)
|
|
31
|
+
const ApiComponent = forwardRef<Refs & refsType<P>>((__, refs) => {
|
|
32
|
+
const ref = useRef<Refs>(null)
|
|
33
|
+
const [state, setState] = useState<Partial<P>>(props || {})
|
|
34
|
+
|
|
35
|
+
useImperativeHandle(refs, () => {
|
|
36
|
+
return {
|
|
37
|
+
$setProps: newProps => {
|
|
38
|
+
setState(() => newProps)
|
|
39
|
+
},
|
|
40
|
+
$updateProps: newProps => {
|
|
41
|
+
if (newProps) {
|
|
42
|
+
setState(state => ({ ...state, ...newProps }))
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
...ref.current
|
|
46
|
+
} as Refs & refsType<P>
|
|
47
|
+
})
|
|
48
|
+
if (Context) {
|
|
49
|
+
return (
|
|
50
|
+
<Context>
|
|
51
|
+
<Component ref={ref} {...(state as any)} />
|
|
52
|
+
</Context>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
return <Component ref={ref} {...(state as any)} />
|
|
56
|
+
})
|
|
57
|
+
current = instanceMap[key] = {
|
|
58
|
+
instance: void 0,
|
|
59
|
+
pending: new Promise<void>(resolve => {
|
|
60
|
+
createRoot(div).render(
|
|
61
|
+
(
|
|
62
|
+
<ApiComponent
|
|
63
|
+
ref={instance => {
|
|
64
|
+
current.instance = instanceMap[key].instance = instance!
|
|
65
|
+
resolve()
|
|
66
|
+
}}
|
|
67
|
+
/>
|
|
68
|
+
) as never
|
|
69
|
+
)
|
|
70
|
+
})
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
await current.pending
|
|
74
|
+
current.instance.$setProps(props)
|
|
75
|
+
// Delay return to avoid sync issue
|
|
76
|
+
// ------------------------------------------------------------------------
|
|
77
|
+
await new Promise(resolve => setTimeout(resolve))
|
|
78
|
+
return current.instance as Refs & refsType<P>
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as componentInstance from './componentInstance'
|
|
1
|
+
export * as componentInstance from './componentInstance'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type UseBoundStore, type StoreApi } from 'zustand'
|
|
2
2
|
export type ExtractModelType<T> = T extends UseBoundStore<StoreApi<infer S>> ? S : unknown
|
|
@@ -52,6 +52,8 @@ export default tseslint.config([
|
|
|
52
52
|
'import/export': 'off',
|
|
53
53
|
'import/namespace': 'off',
|
|
54
54
|
'import/default': 'off',
|
|
55
|
+
'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
|
|
56
|
+
'import/no-duplicates': ['error', { 'prefer-inline': true }],
|
|
55
57
|
'import/no-named-as-default-member': 'off',
|
|
56
58
|
'import/no-named-as-default': 'off',
|
|
57
59
|
'import/order': [
|
|
@@ -73,7 +75,7 @@ export default tseslint.config([
|
|
|
73
75
|
{ pattern: 'react-router', group: 'external', position: 'before' },
|
|
74
76
|
{ pattern: 'react-router-dom', group: 'external', position: 'before' }
|
|
75
77
|
],
|
|
76
|
-
pathGroupsExcludedImportTypes: ['
|
|
78
|
+
pathGroupsExcludedImportTypes: ['builtin']
|
|
77
79
|
}
|
|
78
80
|
],
|
|
79
81
|
'no-case-declarations': 'off',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type UseBoundStore, type StoreApi } from 'zustand'
|
|
2
2
|
export type ExtractModelType<T> = T extends UseBoundStore<StoreApi<infer S>> ? S : unknown
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
VITE_BASE_URL
|
|
1
|
+
VITE_BASE_URL=
|
|
2
2
|
VITE_API_HOST=
|
|
@@ -37,6 +37,7 @@ declare module '$env/static/private' {
|
|
|
37
37
|
export const CONDA_PROMPT_MODIFIER: string;
|
|
38
38
|
export const configsetroot: string;
|
|
39
39
|
export const DriverData: string;
|
|
40
|
+
export const FIG_TERM: string;
|
|
40
41
|
export const FNM_ARCH: string;
|
|
41
42
|
export const FNM_COREPACK_ENABLED: string;
|
|
42
43
|
export const FNM_DIR: string;
|
|
@@ -49,16 +50,13 @@ declare module '$env/static/private' {
|
|
|
49
50
|
export const HOME: string;
|
|
50
51
|
export const HOMEDRIVE: string;
|
|
51
52
|
export const HOMEPATH: string;
|
|
52
|
-
export const HTTPS_PROXY: string;
|
|
53
|
-
export const HTTP_PROXY: string;
|
|
54
53
|
export const IJ_RESTARTER_LOG: string;
|
|
55
54
|
export const INIT_CWD: string;
|
|
55
|
+
export const INTELLIJ_TERMINAL_COMMAND_BLOCKS_REWORKED: string;
|
|
56
56
|
export const JETBRAINS_INTELLIJ_COMMAND_END_MARKER: string;
|
|
57
57
|
export const LOCALAPPDATA: string;
|
|
58
58
|
export const LOGONSERVER: string;
|
|
59
|
-
export const MODE: string;
|
|
60
59
|
export const NODE: string;
|
|
61
|
-
export const NODE_ENV: string;
|
|
62
60
|
export const NODE_PATH: string;
|
|
63
61
|
export const npm_command: string;
|
|
64
62
|
export const npm_config_engine_strict: string;
|
|
@@ -74,7 +72,7 @@ declare module '$env/static/private' {
|
|
|
74
72
|
export const npm_lifecycle_event: string;
|
|
75
73
|
export const npm_lifecycle_script: string;
|
|
76
74
|
export const npm_node_execpath: string;
|
|
77
|
-
export const
|
|
75
|
+
export const npm_package_dependencies_es_toolkit: string;
|
|
78
76
|
export const npm_package_dependencies_svelte: string;
|
|
79
77
|
export const npm_package_devDependencies_commitizen: string;
|
|
80
78
|
export const npm_package_devDependencies_cross_env: string;
|
|
@@ -98,14 +96,12 @@ declare module '$env/static/private' {
|
|
|
98
96
|
export const npm_package_devDependencies_typescript_eslint: string;
|
|
99
97
|
export const npm_package_devDependencies_vite: string;
|
|
100
98
|
export const npm_package_devDependencies_vite_plugin_checker: string;
|
|
101
|
-
export const npm_package_devDependencies_vite_plugin_stylelint: string;
|
|
102
99
|
export const npm_package_devDependencies__commitlint_cli: string;
|
|
103
100
|
export const npm_package_devDependencies__commitlint_config_conventional: string;
|
|
104
101
|
export const npm_package_devDependencies__commitlint_cz_commitlint: string;
|
|
105
102
|
export const npm_package_devDependencies__sveltejs_adapter_auto: string;
|
|
106
103
|
export const npm_package_devDependencies__sveltejs_kit: string;
|
|
107
104
|
export const npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
|
|
108
|
-
export const npm_package_devDependencies__types_lodash_es: string;
|
|
109
105
|
export const npm_package_name: string;
|
|
110
106
|
export const npm_package_private: string;
|
|
111
107
|
export const npm_package_scripts_build: string;
|
|
@@ -143,6 +139,8 @@ declare module '$env/static/private' {
|
|
|
143
139
|
export const PROCESSOR_IDENTIFIER: string;
|
|
144
140
|
export const PROCESSOR_LEVEL: string;
|
|
145
141
|
export const PROCESSOR_REVISION: string;
|
|
142
|
+
export const PROCESS_LAUNCHED_BY_CW: string;
|
|
143
|
+
export const PROCESS_LAUNCHED_BY_Q: string;
|
|
146
144
|
export const ProgramData: string;
|
|
147
145
|
export const ProgramFiles: string;
|
|
148
146
|
export const ProgramW6432: string;
|
|
@@ -154,6 +152,7 @@ declare module '$env/static/private' {
|
|
|
154
152
|
export const SystemDrive: string;
|
|
155
153
|
export const SystemRoot: string;
|
|
156
154
|
export const TEMP: string;
|
|
155
|
+
export const TERM: string;
|
|
157
156
|
export const TERMINAL_EMULATOR: string;
|
|
158
157
|
export const TERM_SESSION_ID: string;
|
|
159
158
|
export const TMP: string;
|
|
@@ -206,6 +205,7 @@ declare module '$env/dynamic/private' {
|
|
|
206
205
|
CONDA_PROMPT_MODIFIER: string;
|
|
207
206
|
configsetroot: string;
|
|
208
207
|
DriverData: string;
|
|
208
|
+
FIG_TERM: string;
|
|
209
209
|
FNM_ARCH: string;
|
|
210
210
|
FNM_COREPACK_ENABLED: string;
|
|
211
211
|
FNM_DIR: string;
|
|
@@ -218,16 +218,13 @@ declare module '$env/dynamic/private' {
|
|
|
218
218
|
HOME: string;
|
|
219
219
|
HOMEDRIVE: string;
|
|
220
220
|
HOMEPATH: string;
|
|
221
|
-
HTTPS_PROXY: string;
|
|
222
|
-
HTTP_PROXY: string;
|
|
223
221
|
IJ_RESTARTER_LOG: string;
|
|
224
222
|
INIT_CWD: string;
|
|
223
|
+
INTELLIJ_TERMINAL_COMMAND_BLOCKS_REWORKED: string;
|
|
225
224
|
JETBRAINS_INTELLIJ_COMMAND_END_MARKER: string;
|
|
226
225
|
LOCALAPPDATA: string;
|
|
227
226
|
LOGONSERVER: string;
|
|
228
|
-
MODE: string;
|
|
229
227
|
NODE: string;
|
|
230
|
-
NODE_ENV: string;
|
|
231
228
|
NODE_PATH: string;
|
|
232
229
|
npm_command: string;
|
|
233
230
|
npm_config_engine_strict: string;
|
|
@@ -243,7 +240,7 @@ declare module '$env/dynamic/private' {
|
|
|
243
240
|
npm_lifecycle_event: string;
|
|
244
241
|
npm_lifecycle_script: string;
|
|
245
242
|
npm_node_execpath: string;
|
|
246
|
-
|
|
243
|
+
npm_package_dependencies_es_toolkit: string;
|
|
247
244
|
npm_package_dependencies_svelte: string;
|
|
248
245
|
npm_package_devDependencies_commitizen: string;
|
|
249
246
|
npm_package_devDependencies_cross_env: string;
|
|
@@ -267,14 +264,12 @@ declare module '$env/dynamic/private' {
|
|
|
267
264
|
npm_package_devDependencies_typescript_eslint: string;
|
|
268
265
|
npm_package_devDependencies_vite: string;
|
|
269
266
|
npm_package_devDependencies_vite_plugin_checker: string;
|
|
270
|
-
npm_package_devDependencies_vite_plugin_stylelint: string;
|
|
271
267
|
npm_package_devDependencies__commitlint_cli: string;
|
|
272
268
|
npm_package_devDependencies__commitlint_config_conventional: string;
|
|
273
269
|
npm_package_devDependencies__commitlint_cz_commitlint: string;
|
|
274
270
|
npm_package_devDependencies__sveltejs_adapter_auto: string;
|
|
275
271
|
npm_package_devDependencies__sveltejs_kit: string;
|
|
276
272
|
npm_package_devDependencies__sveltejs_vite_plugin_svelte: string;
|
|
277
|
-
npm_package_devDependencies__types_lodash_es: string;
|
|
278
273
|
npm_package_name: string;
|
|
279
274
|
npm_package_private: string;
|
|
280
275
|
npm_package_scripts_build: string;
|
|
@@ -312,6 +307,8 @@ declare module '$env/dynamic/private' {
|
|
|
312
307
|
PROCESSOR_IDENTIFIER: string;
|
|
313
308
|
PROCESSOR_LEVEL: string;
|
|
314
309
|
PROCESSOR_REVISION: string;
|
|
310
|
+
PROCESS_LAUNCHED_BY_CW: string;
|
|
311
|
+
PROCESS_LAUNCHED_BY_Q: string;
|
|
315
312
|
ProgramData: string;
|
|
316
313
|
ProgramFiles: string;
|
|
317
314
|
ProgramW6432: string;
|
|
@@ -323,6 +320,7 @@ declare module '$env/dynamic/private' {
|
|
|
323
320
|
SystemDrive: string;
|
|
324
321
|
SystemRoot: string;
|
|
325
322
|
TEMP: string;
|
|
323
|
+
TERM: string;
|
|
326
324
|
TERMINAL_EMULATOR: string;
|
|
327
325
|
TERM_SESSION_ID: string;
|
|
328
326
|
TMP: string;
|
|
@@ -46,6 +46,8 @@ export default tseslint.config([
|
|
|
46
46
|
'import/export': 'off',
|
|
47
47
|
'import/namespace': 'off',
|
|
48
48
|
'import/default': 'off',
|
|
49
|
+
'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
|
|
50
|
+
'import/no-duplicates': ['error', { 'prefer-inline': true }],
|
|
49
51
|
'import/no-named-as-default-member': 'off',
|
|
50
52
|
'import/no-named-as-default': 'off',
|
|
51
53
|
'import/order': [
|
|
@@ -49,6 +49,8 @@ export default tseslint.config([
|
|
|
49
49
|
'import/export': 'off',
|
|
50
50
|
'import/namespace': 'off',
|
|
51
51
|
'import/default': 'off',
|
|
52
|
+
'import/consistent-type-specifier-style': ['error', 'prefer-inline'],
|
|
53
|
+
'import/no-duplicates': ['error', { 'prefer-inline': true }],
|
|
52
54
|
'import/no-named-as-default-member': 'off',
|
|
53
55
|
'import/no-named-as-default': 'off',
|
|
54
56
|
'import/order': [
|
|
@@ -68,7 +70,7 @@ export default tseslint.config([
|
|
|
68
70
|
{ pattern: 'vue', group: 'external', position: 'before' },
|
|
69
71
|
{ pattern: 'vue-router', group: 'external', position: 'before' }
|
|
70
72
|
],
|
|
71
|
-
pathGroupsExcludedImportTypes: ['
|
|
73
|
+
pathGroupsExcludedImportTypes: ['builtin']
|
|
72
74
|
}
|
|
73
75
|
],
|
|
74
76
|
'no-case-declarations': 'off',
|
|
@@ -51,7 +51,7 @@ export default function createListStore<
|
|
|
51
51
|
assign(
|
|
52
52
|
params,
|
|
53
53
|
cloneDeep(config.defaultParams),
|
|
54
|
-
pick(params, config?.initConfig?.keepParamsKeys || [])
|
|
54
|
+
pick(params, (config?.initConfig?.keepParamsKeys || []) as never)
|
|
55
55
|
)
|
|
56
56
|
}
|
|
57
57
|
assign(params, arg?.params)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="vite-svg-loader" />
|
|
3
3
|
|
|
4
4
|
declare module '*.vue' {
|
|
5
|
-
import type
|
|
5
|
+
import { type DefineComponent } from 'vue'
|
|
6
6
|
const component: DefineComponent<Record<string, any>, Record<string, any>, any>
|
|
7
7
|
export default component
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@rsbuild/core/types" />
|
|
2
2
|
|
|
3
3
|
declare module '*.vue' {
|
|
4
|
-
import type
|
|
4
|
+
import { type DefineComponent } from 'vue'
|
|
5
5
|
const component: DefineComponent<Record<string, any>, Record<string, any>, any>
|
|
6
6
|
export default component
|
|
7
7
|
}
|