aboutsummaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/max-depth.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-08-21 20:20:52 -0700
committerRich Trott <rtrott@gmail.com>2018-08-23 21:40:22 -0700
commitadaaba009421fcdd302f5b6706c0c1315811de1d (patch)
tree798ca70a412264ca280782f5ba8315dd9720d217 /tools/node_modules/eslint/lib/rules/max-depth.js
parent85c356c10eec14f96eaf92ffc9a8481b591e3652 (diff)
downloadandroid-node-v8-adaaba009421fcdd302f5b6706c0c1315811de1d.tar.gz
android-node-v8-adaaba009421fcdd302f5b6706c0c1315811de1d.tar.bz2
android-node-v8-adaaba009421fcdd302f5b6706c0c1315811de1d.zip
tools: update ESLint to 5.4.0
Update ESLint from 5.3.0 to 5.4.0. PR-URL: https://github.com/nodejs/node/pull/22454 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/max-depth.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/max-depth.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/node_modules/eslint/lib/rules/max-depth.js b/tools/node_modules/eslint/lib/rules/max-depth.js
index ead44b90cb..368dcfa668 100644
--- a/tools/node_modules/eslint/lib/rules/max-depth.js
+++ b/tools/node_modules/eslint/lib/rules/max-depth.js
@@ -54,10 +54,10 @@ module.exports = {
option = context.options[0];
let maxDepth = 4;
- if (typeof option === "object" && option.hasOwnProperty("maximum") && typeof option.maximum === "number") {
+ if (typeof option === "object" && Object.prototype.hasOwnProperty.call(option, "maximum") && typeof option.maximum === "number") {
maxDepth = option.maximum;
}
- if (typeof option === "object" && option.hasOwnProperty("max") && typeof option.max === "number") {
+ if (typeof option === "object" && Object.prototype.hasOwnProperty.call(option, "max") && typeof option.max === "number") {
maxDepth = option.max;
}
if (typeof option === "number") {