Moomoo
Moomoo•2y ago

Can I disable type checking for specific files or folders?

I've got a few git submodules that I don't want to type check, as those repositories are not controlled by me. Is there a way for me to skip type checking on those submodules while still checking my own code?
6 Replies
dan.the.discloser
dan.the.discloser•2y ago
in my deno.json file I liberally exclude directories
{
"lint": {
"files": {
"exclude": [
"junk",
".git"
]
}
},
"fmt": {
"files": {
"exclude": [
"junk",
".git"
]
}
},
"check": {
"files": {
"exclude": [
"junk",
".git"
]
}
},
"test": {
"files": {
"exclude": [
"junk",
".git"
]
}
}
}
{
"lint": {
"files": {
"exclude": [
"junk",
".git"
]
}
},
"fmt": {
"files": {
"exclude": [
"junk",
".git"
]
}
},
"check": {
"files": {
"exclude": [
"junk",
".git"
]
}
},
"test": {
"files": {
"exclude": [
"junk",
".git"
]
}
}
}
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Moomoo
Moomoo•2y ago
Yeah I exclude the folders for linting and formatting already, but because there's nothing in the docs for configuring type checking I didn't think to try. I just tried and it doesn't work, I'm afraid
dan.the.discloser
dan.the.discloser•2y ago
Sorry. My mistake. My Makefile calls deno check with a pattern the excludes the directories I don't want. I hadn't realized that I also had had that in place.
Moomoo
Moomoo•2y ago
I see. How does that work? My code imports stuff from those submodules so if I run just deno check main.ts it checks those submodules automatically.
dan.the.discloser
dan.the.discloser•2y ago
sounds likely that my system probably doesn't actually work 😦 just happens to be failing in wasy I am not noticing / aren't impaciting me