mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-26 08:36:19 +08:00
perf: 新包使用更严格的eslint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ['@vben'],
|
||||
extends: ['@vben/eslint-config/strict'],
|
||||
};
|
||||
|
@@ -1,5 +1,4 @@
|
||||
export * from './onMountedOrActivated';
|
||||
export * from './useAttrs';
|
||||
export * from './useRefs';
|
||||
|
||||
export { useTimeoutFn } from '@vueuse/core';
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { type AnyFunction } from '@vben/types';
|
||||
import { nextTick, onMounted, onActivated } from 'vue';
|
||||
import { nextTick, onActivated, onMounted } from 'vue';
|
||||
|
||||
/**
|
||||
* 在 OnMounted 或者 OnActivated 时触发
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { getCurrentInstance, reactive, shallowRef, watchEffect } from 'vue';
|
||||
import { type Recordable } from '@vben/types';
|
||||
import { getCurrentInstance, reactive, shallowRef, watchEffect } from 'vue';
|
||||
|
||||
interface Options {
|
||||
excludeListeners?: boolean;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import type { Ref } from 'vue';
|
||||
import { ref, onBeforeUpdate } from 'vue';
|
||||
import { onBeforeUpdate, ref } from 'vue';
|
||||
|
||||
export function useRefs(): [Ref<HTMLElement[]>, (index: number) => (el: HTMLElement) => void] {
|
||||
const refs = ref([]) as Ref<HTMLElement[]>;
|
||||
|
Reference in New Issue
Block a user