johnsoncodehk/vue-tsc

Only validate files with lang="ts"

NikhilVerma opened this issue · 2 comments

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.

You could config "allowJs": false in tsconfig to ignore <script lang="js">.

@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.