mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
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:
1 parent
6608cf286d
commit
2f9c9eebb4
3 files changed
+3
-3
No files matched your search
@@ -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)
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user