-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Additional false positives with no-array-prototype-extensions
rule
#1537
Comments
Thanks a lot for this report! Ignoring
For
|
I began a fix with one of the heuristics in #1538. |
I'm reopening this because there are still some improvements needed to cover the original scenario:
class MyClass {
foo = new Set();
myFunc() { this.foo.clear() }
}
class MyClass {
#foo: Set<UploadFile> = new Set();
myFunc() {
this.#foo.clear();
}
} I'll try to look into how to improve upon my solution from #1538 in the coming week. |
no-array-prototype-extensions
ruleno-array-prototype-extensions
rule
Awesome work @bmish 🙌🏻 |
Further to #1534 there are additional false positives when this rule is run against ember-file-upload.
.clear()
on aSet
(probably on a Map, too)RSVP.reject()
If I have time tomorrow I'll open a PR to address.
The text was updated successfully, but these errors were encountered: