DenoDDeno
Powered by
j-kJ
Denoβ€’17mo 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;
  }
  if (typeof progress?.completedAt === "string") {
    // we're done already
    return;
  }


completedAt
completedAt
can only be
Date | null | undefined
Date | null | undefined
so this will never be
"string"
"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?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Not getting NPM type definitions in VSCode
AapoAlasAAapoAlas / help
4y ago
No Auto Complete Suggestions for `@/` Alias in Deno with VSCode
PhilPPhil / help
2y ago