From 3445080c3311a7416bcd4cca7b00821720088b3f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 14 Mar 2019 13:28:42 -0700 Subject: [PATCH] tools: tidy function arguments in eslint rules Remove unused arguments from function invocations in ESLint custom rules. PR-URL: https://github.com/nodejs/node/pull/26668 Reviewed-By: Richard Lau Reviewed-By: Daijiro Wachi Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater --- tools/eslint-rules/crypto-check.js | 2 +- tools/eslint-rules/eslint-check.js | 2 +- tools/eslint-rules/inspector-check.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/eslint-rules/crypto-check.js b/tools/eslint-rules/crypto-check.js index 42b17b0c80a225..7a93cba0ea5ff5 100644 --- a/tools/eslint-rules/crypto-check.js +++ b/tools/eslint-rules/crypto-check.js @@ -101,6 +101,6 @@ module.exports = function(context) { 'CallExpression': (node) => testCryptoUsage(node), 'IfStatement:exit': (node) => testIfStatement(node), 'MemberExpression:exit': (node) => testMemberExpression(node), - 'Program:exit': (node) => reportIfMissingCheck(node) + 'Program:exit': () => reportIfMissingCheck() }; }; diff --git a/tools/eslint-rules/eslint-check.js b/tools/eslint-rules/eslint-check.js index 00a5234733ec05..df75835f387b0d 100644 --- a/tools/eslint-rules/eslint-check.js +++ b/tools/eslint-rules/eslint-check.js @@ -55,6 +55,6 @@ module.exports = function(context) { return { 'CallExpression': (node) => testEslintUsage(context, node), 'MemberExpression': (node) => checkMemberExpression(context, node), - 'Program:exit': (node) => reportIfMissing(context, node) + 'Program:exit': () => reportIfMissing(context) }; }; diff --git a/tools/eslint-rules/inspector-check.js b/tools/eslint-rules/inspector-check.js index 189b023efc6195..ca866e764f91a3 100644 --- a/tools/eslint-rules/inspector-check.js +++ b/tools/eslint-rules/inspector-check.js @@ -56,6 +56,6 @@ module.exports = function(context) { return { 'CallExpression': (node) => testInspectorUsage(context, node), 'MemberExpression': (node) => checkMemberExpression(context, node), - 'Program:exit': (node) => reportIfMissing(context, node) + 'Program:exit': () => reportIfMissing(context) }; };