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 <riclau@uk.ibm.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Rich Trott committed 2019-03-16 20:00:55 -07:00
1 parent 6608cf286d
commit 2f9c9eebb4
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -117,6 +117,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()
};
};
+1 -1
View File
@@ -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)
};
};
+1 -1
View File
@@ -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)
};
};