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:
parent
6608cf286d
commit
2f9c9eebb4
@ -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)
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user