summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/max-nested-callbacks.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-12-31 21:40:59 -0800
committerRich Trott <rtrott@gmail.com>2017-01-06 14:36:27 -0800
commitf44969a5aba6b447f7c1a715c5009644cbd49a5b (patch)
tree52cf860a27ad101bee24f4588d93d1c9fc6dba7f /tools/eslint/lib/rules/max-nested-callbacks.js
parenta68987c154fbc041ea6d03ffdafa447e8c8a26f5 (diff)
downloadnode-new-f44969a5aba6b447f7c1a715c5009644cbd49a5b.tar.gz
tools: update ESLint to current version
We have been stalled on ESLint 3.8.0 for some time. Current ESLint is 3.13.0. We have been unable to upgrade because of more aggressive reporting on some rules, including indentation. ESLint configuration options and bugfixes are now such that we can reasonably upgrade. PR-URL: https://github.com/nodejs/node/pull/10561 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'tools/eslint/lib/rules/max-nested-callbacks.js')
-rw-r--r--tools/eslint/lib/rules/max-nested-callbacks.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/lib/rules/max-nested-callbacks.js b/tools/eslint/lib/rules/max-nested-callbacks.js
index 7e0c3d2473..a89f49ae02 100644
--- a/tools/eslint/lib/rules/max-nested-callbacks.js
+++ b/tools/eslint/lib/rules/max-nested-callbacks.js
@@ -81,9 +81,9 @@ module.exports = {
}
if (callbackStack.length > THRESHOLD) {
- const opts = {num: callbackStack.length, max: THRESHOLD};
+ const opts = { num: callbackStack.length, max: THRESHOLD };
- context.report(node, "Too many nested callbacks ({{num}}). Maximum allowed is {{max}}.", opts);
+ context.report({ node, message: "Too many nested callbacks ({{num}}). Maximum allowed is {{max}}.", data: opts });
}
}