Skip to content
Permalink
Browse files

tools: tidy function arguments in eslint rules

Remove unused arguments from function invocations in ESLint custom
rules.

PR-URL: #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>
  • Loading branch information...
Trott committed Mar 14, 2019
1 parent 6608cf2 commit 2f9c9eebb43696bda0467f119951b5914a348994
@@ -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()
};
};
@@ -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)
};
};
@@ -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)
};
};

0 comments on commit 2f9c9ee

Please sign in to comment.
You can’t perform that action at this time.