diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 8f507007..00000000 --- a/.eslintrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "extends": [ - "@kirklin" - ], - "rules": { - "@typescript-eslint/no-unsafe-argument": "off", - "@typescript-eslint/no-unsafe-assignment": "off", - "@typescript-eslint/no-unsafe-call": "off", - "@typescript-eslint/no-unsafe-return": "off", - "@typescript-eslint/no-unsafe-member-access": "off" - } -} diff --git a/apps/admin/src/apis/index.ts b/apps/admin/src/apis/index.ts index 829e2be8..d5cc7845 100644 --- a/apps/admin/src/apis/index.ts +++ b/apps/admin/src/apis/index.ts @@ -8,7 +8,6 @@ const vueQueryOptions: VueQueryPluginOptions = { queryClientConfig: { defaultOptions: { queries: { - cacheTime: 1000 * 60 * 60 * 24, staleTime: 1000 * 60 * 60 * 24, }, }, diff --git a/apps/admin/src/composables/setting/useGlobSetting.ts b/apps/admin/src/composables/setting/useGlobSetting.ts index fee52817..27f14812 100644 --- a/apps/admin/src/composables/setting/useGlobSetting.ts +++ b/apps/admin/src/composables/setting/useGlobSetting.ts @@ -1,7 +1,7 @@ import type { GlobConfig, GlobEnvConfig } from "@celeris/types"; import { getAppGlobalConfig } from "@celeris/utils"; -export const useGlobSetting = (): Readonly => { +export function useGlobSetting(): Readonly { const glob = getAppGlobalConfig(import.meta.env); return glob as Readonly; -}; +} diff --git a/apps/admin/src/directives/permission.ts b/apps/admin/src/directives/permission.ts index c0067a14..89347c02 100644 --- a/apps/admin/src/directives/permission.ts +++ b/apps/admin/src/directives/permission.ts @@ -17,9 +17,9 @@ function isAuth(el: Element, binding: any) { } } -const mounted = (el: Element, binding: DirectiveBinding) => { +function mounted(el: Element, binding: DirectiveBinding) { isAuth(el, binding); -}; +} const authDirective: Directive = { mounted, diff --git a/apps/admin/src/layouts/header/components/IconButtonWithToolTip.vue b/apps/admin/src/layouts/header/components/IconButtonWithToolTip.vue index 781528ce..e8ab6a17 100644 --- a/apps/admin/src/layouts/header/components/IconButtonWithToolTip.vue +++ b/apps/admin/src/layouts/header/components/IconButtonWithToolTip.vue @@ -2,7 +2,8 @@ import ToolTipper from "~/layouts/header/components/ToolTipper.vue"; withDefaults( - defineProps<{ tooltipText?: string;icon: string;color: string }>(), { + defineProps<{ tooltipText?: string;icon: string;color: string }>(), + { tooltipText: "icon Button", icon: "i-mdi-alert ", color: "gray", diff --git a/apps/admin/src/layouts/header/components/LocaleSwitcher.vue b/apps/admin/src/layouts/header/components/LocaleSwitcher.vue index d079b5d2..e510dabd 100644 --- a/apps/admin/src/layouts/header/components/LocaleSwitcher.vue +++ b/apps/admin/src/layouts/header/components/LocaleSwitcher.vue @@ -13,11 +13,11 @@ const options = computed( key: item, })), ); -const handleSelect = (key: string) => { +function handleSelect(key: string) { setProjectSetting({ locale: key }); locale.value = key; LocalesEngine.setLocale(key); -}; +}