mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
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:
parent
5e00a013eb
commit
0863a0e528
403 changed files with 14432 additions and 7438 deletions
8
tools/node_modules/eslint/lib/rules/complexity.js
generated
vendored
8
tools/node_modules/eslint/lib/rules/complexity.js
generated
vendored
|
@ -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 }
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue