Skip to content

Commit

Permalink
[eslint config] [base] [breaking] prefer ** over Math.pow
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb authored and jaylaw81 committed Sep 19, 2017
1 parent b4c6914 commit f70e4a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eslint-config-airbnb-base/rules/best-practices.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ module.exports = {
}, {
property: '__defineSetter__',
message: 'Please use Object.defineProperty instead.',
}, {
object: 'Math',
property: 'pow',
message: 'Use the exponentiation operator (**) instead.',
}],

// disallow use of assignment in return statement
Expand Down

0 comments on commit f70e4a0

Please sign in to comment.