mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 00:28:25 -05:00
[eslint config] [base] [breaking] prefer ** over Math.pow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user