Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 17a18fc9
authored
May 03, 2025
by
Vben
Committed by
GitHub
May 03, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: close eslint object sorting (#6101)
1 parent
41152d17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
44 additions
and
32 deletions
apps/web-antd/src/adapter/component/index.ts
apps/web-ele/src/adapter/component/index.ts
apps/web-naive/src/adapter/component/index.ts
internal/lint-configs/eslint-config/src/configs/perfectionist.ts
internal/lint-configs/eslint-config/src/custom-config.ts
packages/@core/ui-kit/form-ui/src/use-vben-form.ts
packages/@core/ui-kit/popup-ui/src/drawer/use-drawer.ts
packages/@core/ui-kit/popup-ui/src/modal/use-modal.ts
packages/@core/ui-kit/tabs-ui/src/components/tabs-chrome/tabs.vue
packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue
packages/effects/layouts/src/widgets/language-toggle.vue
packages/effects/layouts/src/widgets/layout-toggle.vue
packages/effects/layouts/src/widgets/theme-toggle/theme-toggle.vue
playground/src/adapter/component/index.ts
pnpm-lock.yaml
pnpm-workspace.yaml
apps/web-antd/src/adapter/component/index.ts
View file @
17a18fc
...
@@ -73,8 +73,8 @@ const withDefaultPlaceholder = <T extends Component>(
...
@@ -73,8 +73,8 @@ const withDefaultPlaceholder = <T extends Component>(
componentProps
:
Recordable
<
any
>
=
{},
componentProps
:
Recordable
<
any
>
=
{},
)
=>
{
)
=>
{
return
defineComponent
({
return
defineComponent
({
inheritAttrs
:
false
,
name
:
component
.
name
,
name
:
component
.
name
,
inheritAttrs
:
false
,
setup
:
(
props
:
any
,
{
attrs
,
expose
,
slots
})
=>
{
setup
:
(
props
:
any
,
{
attrs
,
expose
,
slots
})
=>
{
const
placeholder
=
const
placeholder
=
props
?.
placeholder
||
props
?.
placeholder
||
...
...
apps/web-ele/src/adapter/component/index.ts
View file @
17a18fc
...
@@ -130,8 +130,8 @@ const withDefaultPlaceholder = <T extends Component>(
...
@@ -130,8 +130,8 @@ const withDefaultPlaceholder = <T extends Component>(
componentProps
:
Recordable
<
any
>
=
{},
componentProps
:
Recordable
<
any
>
=
{},
)
=>
{
)
=>
{
return
defineComponent
({
return
defineComponent
({
inheritAttrs
:
false
,
name
:
component
.
name
,
name
:
component
.
name
,
inheritAttrs
:
false
,
setup
:
(
props
:
any
,
{
attrs
,
expose
,
slots
})
=>
{
setup
:
(
props
:
any
,
{
attrs
,
expose
,
slots
})
=>
{
const
placeholder
=
const
placeholder
=
props
?.
placeholder
||
props
?.
placeholder
||
...
...
apps/web-naive/src/adapter/component/index.ts
View file @
17a18fc
...
@@ -76,8 +76,8 @@ const withDefaultPlaceholder = <T extends Component>(
...
@@ -76,8 +76,8 @@ const withDefaultPlaceholder = <T extends Component>(
componentProps
:
Recordable
<
any
>
=
{},
componentProps
:
Recordable
<
any
>
=
{},
)
=>
{
)
=>
{
return
defineComponent
({
return
defineComponent
({
inheritAttrs
:
false
,
name
:
component
.
name
,
name
:
component
.
name
,
inheritAttrs
:
false
,
setup
:
(
props
:
any
,
{
attrs
,
expose
,
slots
})
=>
{
setup
:
(
props
:
any
,
{
attrs
,
expose
,
slots
})
=>
{
const
placeholder
=
const
placeholder
=
props
?.
placeholder
||
props
?.
placeholder
||
...
...
internal/lint-configs/eslint-config/src/configs/perfectionist.ts
View file @
17a18fc
...
@@ -70,7 +70,7 @@ export async function perfectionist(): Promise<Linter.Config[]> {
...
@@ -70,7 +70,7 @@ export async function perfectionist(): Promise<Linter.Config[]> {
},
},
],
],
'perfectionist/sort-objects'
:
[
'perfectionist/sort-objects'
:
[
'
error
'
,
'
off
'
,
{
{
customGroups
:
{
customGroups
:
{
items
:
'items'
,
items
:
'items'
,
...
...
internal/lint-configs/eslint-config/src/custom-config.ts
View file @
17a18fc
...
@@ -29,6 +29,13 @@ const customConfig: Linter.Config[] = [
...
@@ -29,6 +29,13 @@ const customConfig: Linter.Config[] = [
},
},
},
},
{
{
files
:
[
'**/**.vue'
],
ignores
:
restrictedImportIgnores
,
rules
:
{
'perfectionist/sort-objects'
:
'off'
,
},
},
{
// apps内部的一些基础规则
// apps内部的一些基础规则
files
:
[
'apps/**/**'
],
files
:
[
'apps/**/**'
],
ignores
:
restrictedImportIgnores
,
ignores
:
restrictedImportIgnores
,
...
...
packages/@core/ui-kit/form-ui/src/use-vben-form.ts
View file @
17a18fc
...
@@ -31,8 +31,8 @@ export function useVbenForm<
...
@@ -31,8 +31,8 @@ export function useVbenForm<
h
(
VbenUseForm
,
{
...
props
,
...
attrs
,
formApi
:
extendedApi
},
slots
);
h
(
VbenUseForm
,
{
...
props
,
...
attrs
,
formApi
:
extendedApi
},
slots
);
},
},
{
{
inheritAttrs
:
false
,
name
:
'VbenUseForm'
,
name
:
'VbenUseForm'
,
inheritAttrs
:
false
,
},
},
);
);
// Add reactivity support
// Add reactivity support
...
...
packages/@core/ui-kit/popup-ui/src/drawer/use-drawer.ts
View file @
17a18fc
...
@@ -64,9 +64,10 @@ export function useVbenDrawer<
...
@@ -64,9 +64,10 @@ export function useVbenDrawer<
slots
,
slots
,
);
);
},
},
// eslint-disable-next-line vue/one-component-per-file
{
{
inheritAttrs
:
false
,
name
:
'VbenParentDrawer'
,
name
:
'VbenParentDrawer'
,
inheritAttrs
:
false
,
},
},
);
);
return
[
Drawer
,
extendedApi
as
ExtendedDrawerApi
]
as
const
;
return
[
Drawer
,
extendedApi
as
ExtendedDrawerApi
]
as
const
;
...
@@ -105,9 +106,10 @@ export function useVbenDrawer<
...
@@ -105,9 +106,10 @@ export function useVbenDrawer<
return
()
=>
return
()
=>
h
(
VbenDrawer
,
{
...
props
,
...
attrs
,
drawerApi
:
extendedApi
},
slots
);
h
(
VbenDrawer
,
{
...
props
,
...
attrs
,
drawerApi
:
extendedApi
},
slots
);
},
},
// eslint-disable-next-line vue/one-component-per-file
{
{
inheritAttrs
:
false
,
name
:
'VbenDrawer'
,
name
:
'VbenDrawer'
,
inheritAttrs
:
false
,
},
},
);
);
injectData
.
extendApi
?.(
extendedApi
);
injectData
.
extendApi
?.(
extendedApi
);
...
...
packages/@core/ui-kit/popup-ui/src/modal/use-modal.ts
View file @
17a18fc
...
@@ -63,9 +63,10 @@ export function useVbenModal<TParentModalProps extends ModalProps = ModalProps>(
...
@@ -63,9 +63,10 @@ export function useVbenModal<TParentModalProps extends ModalProps = ModalProps>(
slots
,
slots
,
);
);
},
},
// eslint-disable-next-line vue/one-component-per-file
{
{
inheritAttrs
:
false
,
name
:
'VbenParentModal'
,
name
:
'VbenParentModal'
,
inheritAttrs
:
false
,
},
},
);
);
return
[
Modal
,
extendedApi
as
ExtendedModalApi
]
as
const
;
return
[
Modal
,
extendedApi
as
ExtendedModalApi
]
as
const
;
...
@@ -112,9 +113,10 @@ export function useVbenModal<TParentModalProps extends ModalProps = ModalProps>(
...
@@ -112,9 +113,10 @@ export function useVbenModal<TParentModalProps extends ModalProps = ModalProps>(
slots
,
slots
,
);
);
},
},
// eslint-disable-next-line vue/one-component-per-file
{
{
inheritAttrs
:
false
,
name
:
'VbenModal'
,
name
:
'VbenModal'
,
inheritAttrs
:
false
,
},
},
);
);
injectData
.
extendApi
?.(
extendedApi
);
injectData
.
extendApi
?.(
extendedApi
);
...
...
packages/@core/ui-kit/tabs-ui/src/components/tabs-chrome/tabs.vue
View file @
17a18fc
...
@@ -12,7 +12,6 @@ interface Props extends TabsProps {}
...
@@ -12,7 +12,6 @@ interface Props extends TabsProps {}
defineOptions
({
defineOptions
({
name
:
'VbenTabsChrome'
,
name
:
'VbenTabsChrome'
,
// eslint-disable-next-line perfectionist/sort-objects
inheritAttrs
:
false
,
inheritAttrs
:
false
,
});
});
...
...
packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue
View file @
17a18fc
...
@@ -12,7 +12,7 @@ interface Props extends TabsProps {}
...
@@ -12,7 +12,7 @@ interface Props extends TabsProps {}
defineOptions
({
defineOptions
({
name
:
'VbenTabs'
,
name
:
'VbenTabs'
,
// eslint-disable-next-line perfectionist/sort-objects
inheritAttrs
:
false
,
inheritAttrs
:
false
,
});
});
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
...
...
packages/effects/layouts/src/widgets/language-toggle.vue
View file @
17a18fc
...
@@ -12,7 +12,8 @@ defineOptions({
...
@@ -12,7 +12,8 @@ defineOptions({
name
:
'LanguageToggle'
,
name
:
'LanguageToggle'
,
});
});
async
function
handleUpdate
(
value
:
string
)
{
async
function
handleUpdate
(
value
:
string
|
undefined
)
{
if
(
!
value
)
return
;
const
locale
=
value
as
SupportedLanguagesType
;
const
locale
=
value
as
SupportedLanguagesType
;
updatePreferences
({
updatePreferences
({
app
:
{
app
:
{
...
...
packages/effects/layouts/src/widgets/layout-toggle.vue
View file @
17a18fc
...
@@ -39,7 +39,8 @@ const menus = computed((): VbenDropdownMenuItem[] => [
...
@@ -39,7 +39,8 @@ const menus = computed((): VbenDropdownMenuItem[] => [
const
{
authPanelCenter
,
authPanelLeft
,
authPanelRight
}
=
usePreferences
();
const
{
authPanelCenter
,
authPanelLeft
,
authPanelRight
}
=
usePreferences
();
function
handleUpdate
(
value
:
string
)
{
function
handleUpdate
(
value
:
string
|
undefined
)
{
if
(
!
value
)
return
;
updatePreferences
({
updatePreferences
({
app
:
{
app
:
{
authPageLayout
:
value
as
AuthPageLayoutType
,
authPageLayout
:
value
as
AuthPageLayoutType
,
...
...
packages/effects/layouts/src/widgets/theme-toggle/theme-toggle.vue
View file @
17a18fc
...
@@ -25,7 +25,7 @@ withDefaults(defineProps<{ shouldOnHover?: boolean }>(), {
...
@@ -25,7 +25,7 @@ withDefaults(defineProps<{ shouldOnHover?: boolean }>(), {
shouldOnHover
:
false
,
shouldOnHover
:
false
,
});
});
function
handleChange
(
isDark
:
boolean
)
{
function
handleChange
(
isDark
:
boolean
|
undefined
)
{
updatePreferences
({
updatePreferences
({
theme
:
{
mode
:
isDark
?
'dark'
:
'light'
},
theme
:
{
mode
:
isDark
?
'dark'
:
'light'
},
});
});
...
...
playground/src/adapter/component/index.ts
View file @
17a18fc
...
@@ -73,8 +73,8 @@ const withDefaultPlaceholder = <T extends Component>(
...
@@ -73,8 +73,8 @@ const withDefaultPlaceholder = <T extends Component>(
componentProps
:
Recordable
<
any
>
=
{},
componentProps
:
Recordable
<
any
>
=
{},
)
=>
{
)
=>
{
return
defineComponent
({
return
defineComponent
({
inheritAttrs
:
false
,
name
:
component
.
name
,
name
:
component
.
name
,
inheritAttrs
:
false
,
setup
:
(
props
:
any
,
{
attrs
,
expose
,
slots
})
=>
{
setup
:
(
props
:
any
,
{
attrs
,
expose
,
slots
})
=>
{
const
placeholder
=
const
placeholder
=
props
?.
placeholder
||
props
?.
placeholder
||
...
...
pnpm-lock.yaml
View file @
17a18fc
This diff is collapsed.
Click to expand it.
pnpm-workspace.yaml
View file @
17a18fc
...
@@ -21,22 +21,22 @@ catalog:
...
@@ -21,22 +21,22 @@ catalog:
'
@commitlint/cli'
:
^19.8.0
'
@commitlint/cli'
:
^19.8.0
'
@commitlint/config-conventional'
:
^19.8.0
'
@commitlint/config-conventional'
:
^19.8.0
'
@ctrl/tinycolor'
:
^4.1.0
'
@ctrl/tinycolor'
:
^4.1.0
'
@eslint/js'
:
^9.2
5.1
'
@eslint/js'
:
^9.2
6.0
'
@faker-js/faker'
:
^9.7.0
'
@faker-js/faker'
:
^9.7.0
'
@iconify/json'
:
^2.2.33
2
'
@iconify/json'
:
^2.2.33
4
'
@iconify/tailwind'
:
^1.2.0
'
@iconify/tailwind'
:
^1.2.0
'
@iconify/vue'
:
^
4.3
.0
'
@iconify/vue'
:
^
5.0
.0
'
@intlify/core-base'
:
^11.1.3
'
@intlify/core-base'
:
^11.1.3
'
@intlify/unplugin-vue-i18n'
:
^6.0.8
'
@intlify/unplugin-vue-i18n'
:
^6.0.8
'
@jspm/generator'
:
^2.5.1
'
@jspm/generator'
:
^2.5.1
'
@manypkg/get-packages'
:
^
2.2.2
'
@manypkg/get-packages'
:
^
3.0.0
'
@nolebase/vitepress-plugin-git-changelog'
:
^2.17.0
'
@nolebase/vitepress-plugin-git-changelog'
:
^2.17.0
'
@playwright/test'
:
^1.52.0
'
@playwright/test'
:
^1.52.0
'
@pnpm/workspace.read-manifest'
:
^1000.1.4
'
@pnpm/workspace.read-manifest'
:
^1000.1.4
'
@stylistic/stylelint-plugin'
:
^3.1.2
'
@stylistic/stylelint-plugin'
:
^3.1.2
'
@tailwindcss/nesting'
:
0.0.0-insiders.565cd3e
'
@tailwindcss/nesting'
:
0.0.0-insiders.565cd3e
'
@tailwindcss/typography'
:
^0.5.16
'
@tailwindcss/typography'
:
^0.5.16
'
@tanstack/vue-query'
:
^5.7
4.7
'
@tanstack/vue-query'
:
^5.7
5.1
'
@tanstack/vue-store'
:
^0.7.0
'
@tanstack/vue-store'
:
^0.7.0
'
@types/archiver'
:
^6.0.3
'
@types/archiver'
:
^6.0.3
'
@types/eslint'
:
^9.6.1
'
@types/eslint'
:
^9.6.1
...
@@ -46,14 +46,14 @@ catalog:
...
@@ -46,14 +46,14 @@ catalog:
'
@types/lodash.get'
:
^4.4.9
'
@types/lodash.get'
:
^4.4.9
'
@types/lodash.isequal'
:
^4.5.8
'
@types/lodash.isequal'
:
^4.5.8
'
@types/lodash.set'
:
^4.3.9
'
@types/lodash.set'
:
^4.3.9
'
@types/node'
:
^22.15.
2
'
@types/node'
:
^22.15.
3
'
@types/nprogress'
:
^0.2.3
'
@types/nprogress'
:
^0.2.3
'
@types/postcss-import'
:
^14.0.3
'
@types/postcss-import'
:
^14.0.3
'
@types/qrcode'
:
^1.5.5
'
@types/qrcode'
:
^1.5.5
'
@types/qs'
:
^6.9.18
'
@types/qs'
:
^6.9.18
'
@types/sortablejs'
:
^1.15.8
'
@types/sortablejs'
:
^1.15.8
'
@typescript-eslint/eslint-plugin'
:
^8.31.
0
'
@typescript-eslint/eslint-plugin'
:
^8.31.
1
'
@typescript-eslint/parser'
:
^8.31.
0
'
@typescript-eslint/parser'
:
^8.31.
1
'
@vee-validate/zod'
:
^4.15.0
'
@vee-validate/zod'
:
^4.15.0
'
@vite-pwa/vitepress'
:
^1.0.0
'
@vite-pwa/vitepress'
:
^1.0.0
'
@vitejs/plugin-vue'
:
^5.2.3
'
@vitejs/plugin-vue'
:
^5.2.3
...
@@ -88,7 +88,7 @@ catalog:
...
@@ -88,7 +88,7 @@ catalog:
dotenv
:
^16.5.0
dotenv
:
^16.5.0
echarts
:
^5.6.0
echarts
:
^5.6.0
element-plus
:
^2.9.9
element-plus
:
^2.9.9
eslint
:
^9.2
5.1
eslint
:
^9.2
6.0
eslint-config-turbo
:
^2.5.2
eslint-config-turbo
:
^2.5.2
eslint-plugin-command
:
^3.2.0
eslint-plugin-command
:
^3.2.0
eslint-plugin-eslint-comments
:
^3.2.0
eslint-plugin-eslint-comments
:
^3.2.0
...
@@ -103,13 +103,13 @@ catalog:
...
@@ -103,13 +103,13 @@ catalog:
eslint-plugin-unicorn
:
^59.0.0
eslint-plugin-unicorn
:
^59.0.0
eslint-plugin-unused-imports
:
^4.1.4
eslint-plugin-unused-imports
:
^4.1.4
eslint-plugin-vitest
:
^0.5.4
eslint-plugin-vitest
:
^0.5.4
eslint-plugin-vue
:
^10.
0
.0
eslint-plugin-vue
:
^10.
1
.0
execa
:
^9.5.2
execa
:
^9.5.2
find-up
:
^7.0.0
find-up
:
^7.0.0
get-port
:
^7.1.0
get-port
:
^7.1.0
globals
:
^16.0.0
globals
:
^16.0.0
h3
:
^1.15.3
h3
:
^1.15.3
happy-dom
:
^17.4.
4
happy-dom
:
^17.4.
6
html-minifier-terser
:
^7.2.0
html-minifier-terser
:
^7.2.0
husky
:
^9.1.7
husky
:
^9.1.7
is-ci
:
^4.1.0
is-ci
:
^4.1.0
...
@@ -120,7 +120,7 @@ catalog:
...
@@ -120,7 +120,7 @@ catalog:
lodash.get
:
^4.4.2
lodash.get
:
^4.4.2
lodash.set
:
^4.3.2
lodash.set
:
^4.3.2
lodash.isequal
:
^4.5.0
lodash.isequal
:
^4.5.0
lucide-vue-next
:
^0.50
3
.0
lucide-vue-next
:
^0.50
7
.0
medium-zoom
:
^1.1.0
medium-zoom
:
^1.1.0
naive-ui
:
^2.41.0
naive-ui
:
^2.41.0
nitropack
:
^2.11.11
nitropack
:
^2.11.11
...
@@ -144,7 +144,7 @@ catalog:
...
@@ -144,7 +144,7 @@ catalog:
radix-vue
:
^1.9.17
radix-vue
:
^1.9.17
resolve.exports
:
^2.0.3
resolve.exports
:
^2.0.3
rimraf
:
^6.0.1
rimraf
:
^6.0.1
rollup
:
^4.40.
0
rollup
:
^4.40.
1
rollup-plugin-visualizer
:
^5.14.0
rollup-plugin-visualizer
:
^5.14.0
sass
:
^1.87.0
sass
:
^1.87.0
secure-ls
:
^2.0.0
secure-ls
:
^2.0.0
...
@@ -168,7 +168,7 @@ catalog:
...
@@ -168,7 +168,7 @@ catalog:
unbuild
:
^3.5.0
unbuild
:
^3.5.0
unplugin-element-plus
:
^0.10.0
unplugin-element-plus
:
^0.10.0
vee-validate
:
^4.15.0
vee-validate
:
^4.15.0
vite
:
^6.3.
3
vite
:
^6.3.
4
vite-plugin-compression
:
^0.5.1
vite-plugin-compression
:
^0.5.1
vite-plugin-dts
:
^4.5.3
vite-plugin-dts
:
^4.5.3
vite-plugin-html
:
^3.2.2
vite-plugin-html
:
^3.2.2
...
@@ -184,9 +184,9 @@ catalog:
...
@@ -184,9 +184,9 @@ catalog:
vue-json-viewer
:
^3.0.4
vue-json-viewer
:
^3.0.4
vue-router
:
^4.5.1
vue-router
:
^4.5.1
vue-tippy
:
^6.7.0
vue-tippy
:
^6.7.0
vue-tsc
:
2.
1
.10
vue-tsc
:
2.
2
.10
vxe-pc-ui
:
^4.5.
14
vxe-pc-ui
:
^4.5.
35
vxe-table
:
^4.13.1
4
vxe-table
:
^4.13.1
6
watermark-js-plus
:
^1.6.0
watermark-js-plus
:
^1.6.0
zod
:
^3.24.3
zod
:
^3.24.3
zod-defaults
:
^0.1.3
zod-defaults
:
^0.1.3
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment