Skip to content

Commit 1399b3c

Browse files
committed
[eslint config] [base] [breaking] prefer ** over Math.pow
1 parent 436cf3e commit 1399b3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/eslint-config-airbnb-base/rules/best-practices.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ module.exports = {
186186
}, {
187187
property: '__defineSetter__',
188188
message: 'Please use Object.defineProperty instead.',
189+
}, {
190+
object: 'Math',
191+
property: 'pow',
192+
message: 'Use the exponentiation operator (**) instead.',
189193
}],
190194

191195
// disallow use of assignment in return statement

0 commit comments

Comments
 (0)