Skip to content

es-x/no-nonstandard-bigint-properties ​

disallow non-standard static properties on BigInt class

This rule reports non-standard static properties on BigInt class as errors.

💡 Examples ​

â›” Examples of incorrect code for this rule:

🔧 Options ​

This rule has an option.

jsonc
{
  "rules": {
    "es-x/no-nonstandard-bigint-properties": [
      "error",
      {
        "allow": [],
        "allowTestedProperty": false
      }
    ]
  }
}

allow: string[] ​

An array of non-standard property names to allow.

allowTestedProperty: boolean ​

Configure the allowTestedProperty mode for only this rule. This is prior to the settings['es-x'].allowTestedProperty setting.

🚀 Version ​

This rule was introduced in v8.2.0.

📚 References ​