no-restricted-globals rule crashes with 'hasOwnProperty' as restricted global #10660
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
good first issue
Good for people who haven't worked on ESLint before
rule
Relates to ESLint's core rules
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using? default
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
Should get a warning for using the global "hasOwnProperty".
What actually happened? Please include the actual, raw output from ESLint.
The issue is this line in
no-restricted-globals.js
:which should be:
The text was updated successfully, but these errors were encountered: