Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
use astUtils.getStaticPropertyName in no-prototype-builtins #13088
What rule do you want to change?
Does this change cause the rule to produce more or fewer warnings?
How will the change be implemented? (New option, new default behavior, etc.)?
new default behavior
Please provide some example code that this change will affect:
/*eslint no-prototype-builtins: "error"*/ var hasBarProperty = foo["hasOwnProperty"]("bar"); var isPrototypeOfBar = foo['isPrototypeOf'](bar); var barIsEnumerable = foo[`propertyIsEnumerable`]("bar");
What does the rule currently do for this code?
What will the rule do after it's changed?
Are you willing to submit a pull request to implement this change?