Only validate files with lang="ts"
NikhilVerma opened this issue · 2 comments
NikhilVerma commented
Currently vue-tsc seems to validate all vue
files regardless if they use Typescript or not. If a project is adopting Typescript it makes it difficult to use vue-tsc.
johnsoncodehk commented
You could config "allowJs": false
in tsconfig to ignore <script lang="js">
.
NikhilVerma commented
@johnsoncodehk What you are referring to is the checkJs
flag. allowJs
flag simply allows TS to scan JS files, not validate them. I believe this issue is still relevant.