j-k
j-k4w ago

I'm not getting any warnings for no-overlap in vscode

I have some code which is actually bad and should be caught by SAST
if (typeof progress?.completedAt === "string") {
// we're done already
return;
}
if (typeof progress?.completedAt === "string") {
// we're done already
return;
}
completedAt can only be Date | null | undefined so this will never be "string" but nothing is complaining about no-overlap. Is this something deno lint should be picking up? How can I make my vscode with the deno extension catch this? Or do I need to use something else?
0 Replies
No replies yetBe the first to reply to this messageJoin