j-kJ
Denoβ€’15mo ago
j-k

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;
  }


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?
Was this page helpful?