diff options
Diffstat (limited to 'tools/eslint/lib/rules/newline-per-chained-call.js')
-rw-r--r-- | tools/eslint/lib/rules/newline-per-chained-call.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/lib/rules/newline-per-chained-call.js b/tools/eslint/lib/rules/newline-per-chained-call.js index 8959742d34..5b005f6da2 100644 --- a/tools/eslint/lib/rules/newline-per-chained-call.js +++ b/tools/eslint/lib/rules/newline-per-chained-call.js @@ -31,7 +31,7 @@ module.exports = { }] }, - create: function(context) { + create(context) { const options = context.options[0] || {}, ignoreChainWithDepth = options.ignoreChainWithDepth || 2; @@ -54,7 +54,7 @@ module.exports = { } return { - "CallExpression:exit": function(node) { + "CallExpression:exit"(node) { if (!node.callee || node.callee.type !== "MemberExpression") { return; } |