mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
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>
This commit is contained in:
parent
85c356c10e
commit
adaaba0094
135 changed files with 247 additions and 4882 deletions
4
tools/node_modules/eslint/lib/rules/complexity.js
generated
vendored
4
tools/node_modules/eslint/lib/rules/complexity.js
generated
vendored
|
@ -61,10 +61,10 @@ module.exports = {
|
|||
const option = context.options[0];
|
||||
let THRESHOLD = 20;
|
||||
|
||||
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") {
|
||||
THRESHOLD = 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") {
|
||||
THRESHOLD = option.max;
|
||||
}
|
||||
if (typeof option === "number") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue