[no-var-requires] false negative when require statement includes a type cast #2125
Labels
bug
Something isn't working
good first issue
Good for newcomers
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
(initially encountered in this PR)
Expected Result
lint error on this require statement, just like the TSLint rule
Actual Result
no error
Additional Info
easy enough to work around, since I can change the syntax and the rule will report the error as expected:
.. but nonetheless I think the rule should report an error in both cases.
Versions
@typescript-eslint/eslint-plugin
3.0.1
@typescript-eslint/parser
3.0.1
TypeScript
3.9.3
ESLint
7.1.0
node
12.16.2
The text was updated successfully, but these errors were encountered: