# es/no-exponential-operators

disallow exponential operators

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

This rule reports ES2016 exponential operators (opens new window) as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-exponential-operators: error */ let a = b ** 2 a **= b
Now loading...

# 📚 References