npm i -D tsc-exclude
Add your ignore patterns to tsconfig.json
exclude field
{
"exclude": ["../api/**", "../../node_modules/**"]
}
Then pipe the output of vue-tsc
to tsc-exclude
vue-tsc --pretty | tsc-exclude
or use npm script
{
"scripts": {
"lint": "vue-tsc --pretty | tsc-exclude"
}
}
- Apply stream