# es/no-object-freeze

disallow the Object.freeze method

  • ✅ The following configurations enable this rule: plugin:es/no-new-in-es5 and plugin:es/restrict-to-es3

This rule reports ES5 Object.freeze method as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-object-freeze: error */ Object.freeze(obj)
Now loading...

# 📚 References