diff --git a/.eslint-global-variables.json b/.eslint-global-variables.json new file mode 100644 index 0000000..4336802 --- /dev/null +++ b/.eslint-global-variables.json @@ -0,0 +1,62 @@ +{ + "globals": { + "$loadingBar": true, + "$message": true, + "defineOptions": true, + "$dialog": true, + "$notification": true, + "EffectScope": true, + "computed": true, + "createApp": true, + "customRef": true, + "defineAsyncComponent": true, + "defineComponent": true, + "effectScope": true, + "getCurrentInstance": true, + "getCurrentScope": true, + "h": true, + "inject": true, + "isProxy": true, + "isReactive": true, + "isReadonly": true, + "isRef": true, + "markRaw": true, + "nextTick": true, + "onActivated": true, + "onBeforeMount": true, + "onBeforeUnmount": true, + "onBeforeUpdate": true, + "onDeactivated": true, + "onErrorCaptured": true, + "onMounted": true, + "onRenderTracked": true, + "onRenderTriggered": true, + "onScopeDispose": true, + "onServerPrefetch": true, + "onUnmounted": true, + "onUpdated": true, + "provide": true, + "reactive": true, + "readonly": true, + "ref": true, + "resolveComponent": true, + "shallowReactive": true, + "shallowReadonly": true, + "shallowRef": true, + "toRaw": true, + "toRef": true, + "toRefs": true, + "triggerRef": true, + "unref": true, + "useAttrs": true, + "useCssModule": true, + "useCssVars": true, + "useRoute": true, + "useRouter": true, + "useSlots": true, + "watch": true, + "watchEffect": true, + "watchPostEffect": true, + "watchSyncEffect": true + } +} diff --git a/package.json b/package.json index b5cded0..e53b0a1 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,9 @@ ] }, "eslintConfig": { - "extends":["@zclzone"] + "extends": [ + "@zclzone", + ".eslint-global-variables.json" + ] } } diff --git a/src/layout/components/tags/ContextMenu.vue b/src/layout/components/tags/ContextMenu.vue index eed499b..7b69ff8 100644 --- a/src/layout/components/tags/ContextMenu.vue +++ b/src/layout/components/tags/ContextMenu.vue @@ -13,7 +13,6 @@