Skip to content

es-x/no-weakrefs

disallow the WeakRef and FinalizationRegistry class

This rule reports ES2021 WeakRefs as errors. This proposal includes the following two:

  • WeakRef class
  • FinalizationRegistry class

💡 Examples

⛔ Examples of incorrect code for this rule:

Now loading...

🚀 Version

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

📚 References