chore(lint): 升级检查依赖并统一格式化与提交规范

This commit is contained in:
Ray.Hao
2026-11-01 14:13:06 +08:00
parent 1383b58e80
commit c10ccad472
107 changed files with 2420 additions and 2190 deletions

View File

@@ -7,7 +7,7 @@ import type { PageQuery, PageResult } from "@/api/common";
* 分页查询只接收最近一次请求的结果;勾选与弹窗状态由页面持有。
*/
export function usePageTable<T, Q extends PageQuery = PageQuery>(
options: UsePageTableOptions<T, Q>
options: UsePageTableOptions<T, Q>,
): UsePageTableReturn<T, Q> {
const { request, onBeforeReset } = options;
const initialParams = cloneDeep(options.initialParams);

View File

@@ -230,7 +230,7 @@ export function provideRealtime(): RealtimeContext {
[...(user.userInfo.perms ?? [])].sort().join(),
].join("|"),
resetConnection,
{ flush: "sync" }
{ flush: "sync" },
);
const context: RealtimeContext = {

View File

@@ -15,7 +15,7 @@ export function useTableSelection<T extends { id?: string | number }>() {
*/
function handleSelectionChange(selection: T[]): void {
selectedIds.value = selection.flatMap((item) =>
item.id === undefined || item.id === null ? [] : [item.id]
item.id === undefined || item.id === null ? [] : [item.id],
);
}