fix: eslint .tsx file failed (#8358)
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
Reference in New Issue
Block a user