.eslintrc-auto-import.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * @Description: unplugin-auto-import eslint 配置
  3. * @Author: wsy
  4. * @Date: 2022-01-18 15:41:57
  5. * @LastEditTime: 2022-05-19 19:58:04
  6. * @LastEditors: wsy
  7. */
  8. module.exports = {
  9. globals: {
  10. /**
  11. |--------------------------------------------------
  12. | vue
  13. |--------------------------------------------------
  14. */
  15. // lifecycle
  16. onActivated: 'readonly',
  17. onBeforeMount: 'readonly',
  18. onBeforeUnmount: 'readonly',
  19. onBeforeUpdate: 'readonly',
  20. onDeactivated: 'readonly',
  21. onErrorCaptured: 'readonly',
  22. onMounted: 'readonly',
  23. onServerPrefetch: 'readonly',
  24. onUnmounted: 'readonly',
  25. onUpdated: 'readonly',
  26. // reactivity
  27. computed: 'readonly',
  28. customRef: 'readonly',
  29. isReadonly: 'readonly',
  30. isRef: 'readonly',
  31. isReactive: 'readonly',
  32. markRaw: 'readonly',
  33. reactive: 'readonly',
  34. readonly: 'readonly',
  35. ref: 'readonly',
  36. shallowReactive: 'readonly',
  37. shallowReadonly: 'readonly',
  38. shallowRef: 'readonly',
  39. toRaw: 'readonly',
  40. toRef: 'readonly',
  41. toRefs: 'readonly',
  42. triggerRef: 'readonly',
  43. unref: 'readonly',
  44. watch: 'readonly',
  45. watchEffect: 'readonly',
  46. // component
  47. defineComponent: 'readonly',
  48. defineAsyncComponent: 'readonly',
  49. getCurrentInstance: 'readonly',
  50. resolveDynamicComponent: 'readonly',
  51. h: 'readonly',
  52. inject: 'readonly',
  53. nextTick: 'readonly',
  54. provide: 'readonly',
  55. useCssModule: 'readonly',
  56. useAttrs: 'readonly',
  57. /**
  58. |--------------------------------------------------
  59. | other
  60. |--------------------------------------------------
  61. */
  62. defineProps: 'readonly',
  63. defineEmits: 'readonly',
  64. defineExpose: 'readonly',
  65. withDefaults: 'readonly',
  66. /**
  67. |--------------------------------------------------
  68. | vue-router
  69. |--------------------------------------------------
  70. */
  71. useRoute: 'readonly',
  72. useRouter: 'readonly',
  73. onBeforeRouteUpdate: 'readonly',
  74. onBeforeRouteLeave: 'readonly',
  75. /**
  76. |--------------------------------------------------
  77. | vue-router
  78. |--------------------------------------------------
  79. */
  80. useStore: 'readonly',
  81. /**
  82. |--------------------------------------------------
  83. | api
  84. |--------------------------------------------------
  85. */
  86. useRequest: 'readonly',
  87. defineRequest: 'readonly',
  88. /**
  89. |--------------------------------------------------
  90. | i18n
  91. |--------------------------------------------------
  92. */
  93. useI18n: 'readonly',
  94. /**
  95. |--------------------------------------------------
  96. | env
  97. |--------------------------------------------------
  98. */
  99. __DEV__: 'readonly'
  100. }
  101. }