| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- /*
- * @Description: unplugin-auto-import eslint 配置
- * @Author: wsy
- * @Date: 2022-01-18 15:41:57
- * @LastEditTime: 2022-05-19 19:58:04
- * @LastEditors: wsy
- */
- module.exports = {
- globals: {
- /**
- |--------------------------------------------------
- | vue
- |--------------------------------------------------
- */
- // lifecycle
- onActivated: 'readonly',
- onBeforeMount: 'readonly',
- onBeforeUnmount: 'readonly',
- onBeforeUpdate: 'readonly',
- onDeactivated: 'readonly',
- onErrorCaptured: 'readonly',
- onMounted: 'readonly',
- onServerPrefetch: 'readonly',
- onUnmounted: 'readonly',
- onUpdated: 'readonly',
- // reactivity
- computed: 'readonly',
- customRef: 'readonly',
- isReadonly: 'readonly',
- isRef: 'readonly',
- isReactive: 'readonly',
- markRaw: 'readonly',
- reactive: 'readonly',
- readonly: 'readonly',
- ref: 'readonly',
- shallowReactive: 'readonly',
- shallowReadonly: 'readonly',
- shallowRef: 'readonly',
- toRaw: 'readonly',
- toRef: 'readonly',
- toRefs: 'readonly',
- triggerRef: 'readonly',
- unref: 'readonly',
- watch: 'readonly',
- watchEffect: 'readonly',
- // component
- defineComponent: 'readonly',
- defineAsyncComponent: 'readonly',
- getCurrentInstance: 'readonly',
- resolveDynamicComponent: 'readonly',
- h: 'readonly',
- inject: 'readonly',
- nextTick: 'readonly',
- provide: 'readonly',
- useCssModule: 'readonly',
- useAttrs: 'readonly',
- /**
- |--------------------------------------------------
- | other
- |--------------------------------------------------
- */
- defineProps: 'readonly',
- defineEmits: 'readonly',
- defineExpose: 'readonly',
- withDefaults: 'readonly',
- /**
- |--------------------------------------------------
- | vue-router
- |--------------------------------------------------
- */
- useRoute: 'readonly',
- useRouter: 'readonly',
- onBeforeRouteUpdate: 'readonly',
- onBeforeRouteLeave: 'readonly',
- /**
- |--------------------------------------------------
- | vue-router
- |--------------------------------------------------
- */
- useStore: 'readonly',
- /**
- |--------------------------------------------------
- | api
- |--------------------------------------------------
- */
- useRequest: 'readonly',
- defineRequest: 'readonly',
- /**
- |--------------------------------------------------
- | i18n
- |--------------------------------------------------
- */
- useI18n: 'readonly',
- /**
- |--------------------------------------------------
- | env
- |--------------------------------------------------
- */
- __DEV__: 'readonly'
- }
- }
|