Skip to content

Commit 2186ed8

Browse files
committed
fixup! lib: add lint rule to enforce use of kEmptyObject
1 parent 2ae7d88 commit 2186ed8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/eslint-rules/avoid-prototype-pollution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ module.exports = {
251251
if (node.right.properties.some((p) => p.key.name === '__proto__')) return;
252252
context.report({
253253
node: node.right,
254-
message: `Add __proto__: null to avoid inheriting from Object.prototype, or __proto__: ObjectPrototype if inheritance is desirable`,
254+
message: `Add '__proto__: null' to avoid inheriting from Object.prototype, or '__proto__: ObjectPrototype' if inheritance is desirable`,
255255
});
256256
},
257257
};

0 commit comments

Comments
 (0)