tools: update ESLint to 4.19.1

A few bug fixes result in more stringent linting rules.

PR-URL: https://github.com/nodejs/node/pull/19528
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott 2018-03-21 22:44:47 -07:00
parent 5e00a013eb
commit 0863a0e528
403 changed files with 14432 additions and 7438 deletions

View file

@ -50,7 +50,11 @@ module.exports = {
}
]
}
]
],
messages: {
complex: "{{name}} has a complexity of {{complexity}}."
}
},
create(context) {
@ -96,7 +100,7 @@ module.exports = {
if (complexity > THRESHOLD) {
context.report({
node,
message: "{{name}} has a complexity of {{complexity}}.",
messageId: "complex",
data: { name, complexity }
});
}