2 * @fileoverview Rule to flag usage of __proto__ property
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
17 description: "disallow the use of the `__proto__` property",
18 category: "Best Practices",
20 url: "https://eslint.org/docs/rules/no-proto"
30 MemberExpression(node) {
33 (node.property.type === "Identifier" && node.property.name === "__proto__" && !node.computed) ||
34 (node.property.type === "Literal" && node.property.value === "__proto__")) {
35 context.report({ node, message: "The '__proto__' property is deprecated." });