From ab5c0f5aa1f915bca462fbc290e7d36187a987e2 Mon Sep 17 00:00:00 2001 From: zhiyuanzmj <260480378@qq.com> Date: Mon, 7 Oct 2024 15:00:39 +0800 Subject: [PATCH] chore: fix lint --- README.md | 1 - playground/src/count.tsx | 2 -- pnpm-workspace.yaml | 12 ++++++------ src/core/utils.ts | 3 --- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index c108847..a54df66 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,6 @@ export default const Comp = defineComponent(({ foo }) => { return <>{foo} }) - // Will be convert to: const Comp = defineComponent((_props) => { return <>{_props.foo} diff --git a/playground/src/count.tsx b/playground/src/count.tsx index 329a94b..fb7e92e 100644 --- a/playground/src/count.tsx +++ b/playground/src/count.tsx @@ -1,5 +1,3 @@ -import { defineComponent } from 'vue' - export default { props: { value: String, diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index b17876a..f83cf31 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,10 +1,10 @@ catalog: - "@vue/compiler-core": "https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-core@2eae25e" - "@vue/compiler-dom": "https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-dom@2eae25e" - "@vue/compiler-vapor": "https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-vapor@2eae25e" - "@vue/runtime-vapor": "https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-vapor@2eae25e" - "@vue/shared": "https://pkg.pr.new/vuejs/core-vapor/@vue/shared@2eae25e" - "vue": "https://pkg.pr.new/vuejs/core-vapor/vue@2eae25e" + '@vue/compiler-core': 'https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-core@2eae25e' + '@vue/compiler-dom': 'https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-dom@2eae25e' + '@vue/compiler-vapor': 'https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-vapor@2eae25e' + '@vue/runtime-vapor': 'https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-vapor@2eae25e' + '@vue/shared': 'https://pkg.pr.new/vuejs/core-vapor/@vue/shared@2eae25e' + vue: 'https://pkg.pr.new/vuejs/core-vapor/vue@2eae25e' packages: - . - playground diff --git a/src/core/utils.ts b/src/core/utils.ts index f38b0b1..926d739 100644 --- a/src/core/utils.ts +++ b/src/core/utils.ts @@ -1,9 +1,6 @@ import { isMapCallExpression } from './compiler/utils' import type { - ArrowFunctionExpression, ConditionalExpression, - FunctionDeclaration, - FunctionExpression, JSXElement, JSXFragment, LogicalExpression,