Skip to content

es-x/no-object-preventextensions

disallow the Object.preventExtensions method

This rule reports ES5 Object.preventExtensions method as errors.

💡 Examples

⛔ Examples of incorrect code for this rule:

Now loading...

🚀 Version

This rule was introduced in eslint-plugin-es v3.0.0.

📚 References