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 [
7777 // [!DISCOURAGED]
7878 // Set to `true` to allow plain `<script>` or `<script setup>` blocks.
7979 // 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.
8182 js: false ,
8283
8384 // [!STRONGLY DISCOURAGED]
Original file line number Diff line number Diff line change 11<script setup>
22import HelloWorld from ' ./components/HelloWorld.vue'
33import TheWelcome from ' ./components/TheWelcome.vue'
4+
45 </script >
56
67<template >
Original file line number Diff line number Diff line change 1111 "@/*" : [" ./src/*" ]
1212 },
1313
14- "allowJs" : true
14+ "allowJs" : true ,
15+ "checkJs" : true
1516 }
1617}
Original file line number Diff line number Diff line change @@ -4,7 +4,3 @@ import { createApp } from 'vue'
44import App from './App.vue'
55
66createApp ( 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 1111 "@/*" : [" ./src/*" ]
1212 },
1313
14- "allowJs" : true
14+ "allowJs" : true ,
15+ "checkJs" : true
1516 }
1617}
Original file line number Diff line number Diff line change 1010 "paths" : {
1111 "@/*" : [" ./src/*" ]
1212 },
13- "allowJs" : true
13+ "allowJs" : true ,
14+ "checkJs" : true
1415 }
1516}
Original file line number Diff line number Diff line change 1414
1515 // Allow JS files to be imported from TS and vice versa
1616 "allowJs" : true ,
17+ "checkJs" : true ,
1718
1819 // Use correct ESM import behavior
1920 "esModuleInterop" : true ,
You can’t perform that action at this time.
0 commit comments