mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-11 15:57:59 -05:00
[readme] Updates ESLint rule in section 12.3 (exponentiation-operator)
The change itself has already been made in f3d3a075cd
(tracked in/acording to https://github.com/airbnb/javascript/issues/2421#issuecomment-1371305010).
#2421
Remove Math.pow from `no-restricted-properties` and use `prefer-exponentiation-operator` instead.
This commit is contained in:
@@ -1621,7 +1621,7 @@ Other Style Guides
|
||||
```
|
||||
|
||||
<a name="es2016-properties--exponentiation-operator"></a>
|
||||
- [12.3](#es2016-properties--exponentiation-operator) Use exponentiation operator `**` when calculating exponentiations. eslint: [`no-restricted-properties`](https://eslint.org/docs/rules/no-restricted-properties).
|
||||
- [12.3](#es2016-properties--exponentiation-operator) Use exponentiation operator `**` when calculating exponentiations. eslint: [`prefer-exponentiation-operator`](https://eslint.org/docs/rules/prefer-exponentiation-operator).
|
||||
|
||||
```javascript
|
||||
// bad
|
||||
|
||||
Reference in New Issue
Block a user