prefer-set-has
seems to be giving false positives in cases where a string variable has an .includes()
method called twice:
const text = "abc".slice();
// ~~~~
// `text` should be a `Set`, and use `text.has()` to check existence or non-existence.
text.includes("ab") || text.includes("bc");
Seen in real world code: eslint/eslint@59845bd
(#17515)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too