We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a regular expression literal appears in a conditional, such as:
if (/abc?/) { foo() } else { bar() }
It would be helpful warn that bar() is unreachable. The programmer likely meant to call /abc?/.test(...)
bar()
/abc?/.test(...)
TypeScript could help catch this easy to make mistake
We recently were bitten by this in VS Code. It slipped through code review too
Help programmers catch an easy to make mistake
The text was updated successfully, but these errors were encountered:
Investigatory patch for microsoft#59001
30d5cf1
No branches or pull requests
π Search Terms
β Viability Checklist
β Suggestion
When a regular expression literal appears in a conditional, such as:
It would be helpful warn that
bar()
is unreachable. The programmer likely meant to call/abc?/.test(...)
TypeScript could help catch this easy to make mistake
π Motivating Example
We recently were bitten by this in VS Code. It slipped through code review too
π» Use Cases
Help programmers catch an easy to make mistake
The text was updated successfully, but these errors were encountered: