mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
fix: eslint .tsx file failed (#8358)
This commit is contained in:
23
packages/vant-eslint-config/test/vue-tsx/index.tsx
Normal file
23
packages/vant-eslint-config/test/vue-tsx/index.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { defineComponent, ref } from 'vue';
|
||||
import App from './app';
|
||||
|
||||
const h2 = 1;
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Index',
|
||||
setup() {
|
||||
const count = ref(0);
|
||||
|
||||
count++;
|
||||
count + 1;
|
||||
1 + count;
|
||||
|
||||
return () => (
|
||||
<>
|
||||
<h1>About</h1>
|
||||
|
||||
<App />
|
||||
</>
|
||||
);
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user