diff --git a/eslint.config.js b/eslint.config.js index 09443b9..2606913 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -47,6 +47,7 @@ export default antfu( 'style/brace-style': [2, '1tbs', { allowSingleLine: true }], // 对块执行一致的大括号样式 'style/comma-dangle': [2, 'never'], // 要求或不允许尾随逗号 'ts/consistent-type-definitions': 0, + 'ts/no-unused-expressions': 0, 'node/prefer-global/process': 0, 'antfu/top-level-function': 0, 'antfu/if-newline': 0 diff --git a/src/components/GiCodeView/index.vue b/src/components/GiCodeView/index.vue index fe7c3b9..9f9bbd1 100644 --- a/src/components/GiCodeView/index.vue +++ b/src/components/GiCodeView/index.vue @@ -37,11 +37,6 @@ const defaultConfig = { const config = defaultConfig const codeValue = computed(() => props.codeJson) -const visible = ref(false) -// 打开 -const open = () => { - visible.value = true -} const extensions = computed(() => { const arr = [isDark.value ? oneDark : githubLight] @@ -53,8 +48,6 @@ const extensions = computed(() => { } return arr }) - -defineExpose({ open })