Skip to content

es-x/no-nonstandard-symbol-prototype-properties ​

disallow non-standard properties on Symbol instance

This rule reports non-standard properties on Symbol instance as errors.

💡 Examples ​

â›” Examples of incorrect code for this rule:

Now loading...

🔧 Options ​

This rule has an option.

jsonc
{
  "rules": {
    "es-x/no-nonstandard-symbol-prototype-properties": [
      "error",
      {
        "allow": []
      }
    ]
  }
}

allow: string[] ​

An array of non-standard property names to allow.

🚀 Version ​

This rule was introduced in v8.2.0.

📚 References ​