fix: eslint .tsx file failed (#8358)

This commit is contained in:
zoy-l
2021-03-16 09:46:50 +08:00
committed by GitHub
parent d9ed5b9fb0
commit 2c43e68aff
9 changed files with 122 additions and 1 deletions
@@ -0,0 +1,12 @@
import { defineComponent } from 'vue'
export default defineComponent({
name: 'App',
setup() {
return () => (
<>
<h1>App</h1>
</>
)
}
})
@@ -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 />
</>
);
},
});
@@ -0,0 +1 @@
interface Foo {}
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": ["**/*.ts", "**/*.tsx", "**/*.vue"],
"exclude": ["node_modules"]
}