File tree Expand file tree Collapse file tree 7 files changed +10
-8
lines changed Expand file tree Collapse file tree 7 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ export default [
77
77
// [!DISCOURAGED]
78
78
// Set to `true` to allow plain `<script>` or `<script setup>` blocks.
79
79
// This might result-in false positive or negatives in some rules for `.vue` files.
80
- // Note you also need to configure `allowJs: true` in corresponding `tsconfig.json` files.
80
+ // Note you also need to configure `allowJs: true` and `checkJs: true`
81
+ // in corresponding `tsconfig.json` files.
81
82
js: false ,
82
83
83
84
// [!STRONGLY DISCOURAGED]
Original file line number Diff line number Diff line change 1
1
<script setup>
2
2
import HelloWorld from ' ./components/HelloWorld.vue'
3
3
import TheWelcome from ' ./components/TheWelcome.vue'
4
+
4
5
</script >
5
6
6
7
<template >
Original file line number Diff line number Diff line change 11
11
"@/*" : [" ./src/*" ]
12
12
},
13
13
14
- "allowJs" : true
14
+ "allowJs" : true ,
15
+ "checkJs" : true
15
16
}
16
17
}
Original file line number Diff line number Diff line change @@ -4,7 +4,3 @@ import { createApp } from 'vue'
4
4
import App from './App.vue'
5
5
6
6
createApp ( App ) . mount ( '#app' )
7
-
8
- let a : number = 1
9
- a = 'a'
10
- console . log ( 'a' , a )
Original file line number Diff line number Diff line change 11
11
"@/*" : [" ./src/*" ]
12
12
},
13
13
14
- "allowJs" : true
14
+ "allowJs" : true ,
15
+ "checkJs" : true
15
16
}
16
17
}
Original file line number Diff line number Diff line change 10
10
"paths" : {
11
11
"@/*" : [" ./src/*" ]
12
12
},
13
- "allowJs" : true
13
+ "allowJs" : true ,
14
+ "checkJs" : true
14
15
}
15
16
}
Original file line number Diff line number Diff line change 14
14
15
15
// Allow JS files to be imported from TS and vice versa
16
16
"allowJs" : true ,
17
+ "checkJs" : true ,
17
18
18
19
// Use correct ESM import behavior
19
20
"esModuleInterop" : true ,
You can’t perform that action at this time.
0 commit comments