Skip to content

Commit 72cda51

Browse files
Trotttargos
authored andcommitted
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>
1 parent 875ddcb commit 72cda51

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/eslint-rules/crypto-check.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,6 @@ module.exports = function(context) {
117117
'CallExpression': (node) => testCryptoUsage(node),
118118
'IfStatement:exit': (node) => testIfStatement(node),
119119
'MemberExpression:exit': (node) => testMemberExpression(node),
120-
'Program:exit': (node) => reportIfMissingCheck(node)
120+
'Program:exit': () => reportIfMissingCheck()
121121
};
122122
};

tools/eslint-rules/eslint-check.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ module.exports = function(context) {
5555
return {
5656
'CallExpression': (node) => testEslintUsage(context, node),
5757
'MemberExpression': (node) => checkMemberExpression(context, node),
58-
'Program:exit': (node) => reportIfMissing(context, node)
58+
'Program:exit': () => reportIfMissing(context)
5959
};
6060
};

tools/eslint-rules/inspector-check.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ module.exports = function(context) {
5656
return {
5757
'CallExpression': (node) => testInspectorUsage(context, node),
5858
'MemberExpression': (node) => checkMemberExpression(context, node),
59-
'Program:exit': (node) => reportIfMissing(context, node)
59+
'Program:exit': () => reportIfMissing(context)
6060
};
6161
};

0 commit comments

Comments
 (0)