-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[prefer-includes] Should not auto fix simple Regex #2349
New issue
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
Comments
This rule probably should just be restricted to |
I'll try this!😊 |
@sudalqueen - awesome thanks! To be clear: the bug here is not that it's running on a non- Before reporting an error for |
@bradzacher Thank you for the kind explanation😊 So to fix the bug, What I'm have to do is make this rule report and fix a error when the type has the |
I think |
I made PR! 😊 |
Repro
Expected Result
false
Actual Result
TypeError: xxx.includes is not a function
Additional Info
Versions
@typescript-eslint/eslint-plugin
3.7.1
@typescript-eslint/parser
3.7.1
TypeScript
3.9.7
ESLint
7.6.0
node
12.13.1
npm
6.14.5
The text was updated successfully, but these errors were encountered: