-
-
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
ember/no-runloop
brings false positive error with function name hasOwnProperty
#2150
Labels
Comments
mkszepp
changed the title
May 22, 2024
ember/no-runloop
brings false positive error with functionname hasOwnProperty
ember/no-runloop
brings false positive error with function name hasOwnProperty
i'm seeying a false positive too at line 34 using 12.1.1
|
Looks like when a function is named like a Object.prototype property (https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes) there is a false positive error... hasOwnProperty()
isPrototypeOf()
propertyIsEnumerable()
toLocaleString()
toString()
valueOf()
constructor() |
@mkszepp did you find a work around? |
@basz atm i have disabled... i have not really experience with eslint rules, but i have commitet a possible fix... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After cleanup of all
ember/runloops
, i have removed the ruleember/no-runloop
.Now i'm getting a false positive error.
Example:
While the lint rules brings wrong errors, there is necessary to disable the rule, because there is not allowed to set
hasOwnproperty
inallowedList
.Version:
The text was updated successfully, but these errors were encountered: