-
-
Notifications
You must be signed in to change notification settings - Fork 1k
📎 Expand useIncludes with more cases #10552
Copy link
Copy link
Labels
A-AnalyzerArea: analyzerArea: analyzerL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-EnhancementStatus: Improve an existing featureStatus: Improve an existing featureS-Help-wantedStatus: you're familiar with the code base and want to help the projectStatus: you're familiar with the code base and want to help the project
Metadata
Metadata
Assignees
Labels
A-AnalyzerArea: analyzerArea: analyzerL-JavaScriptLanguage: JavaScript and super languagesLanguage: JavaScript and super languagesS-EnhancementStatus: Improve an existing featureStatus: Improve an existing featureS-Help-wantedStatus: you're familiar with the code base and want to help the projectStatus: you're familiar with the code base and want to help the project
Type
Fields
Give feedbackNo fields configured for Task.
Description
Now that typescript-eslint's useIncludes is in (#10516 / #7654), let's make the rule more powerful like eslint-unicorn's version (https://github.com/sindresorhus/eslint-plugin-unicorn/blob/HEAD/docs%2Frules%2Fprefer-includes.md) by covering
lastIndexOf()&some()