tools: tidy function arguments in eslint rules · nodejs/node@72cda51 (original) (raw)

3 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -117,6 +117,6 @@ module.exports = function(context) {
117 117 'CallExpression': (node) => testCryptoUsage(node),
118 118 'IfStatement:exit': (node) => testIfStatement(node),
119 119 'MemberExpression:exit': (node) => testMemberExpression(node),
120 -'Program:exit': (node) => reportIfMissingCheck(node)
120 +'Program:exit': () => reportIfMissingCheck()
121 121 };
122 122 };
Original file line number Diff line number Diff line change
@@ -55,6 +55,6 @@ module.exports = function(context) {
55 55 return {
56 56 'CallExpression': (node) => testEslintUsage(context, node),
57 57 'MemberExpression': (node) => checkMemberExpression(context, node),
58 -'Program:exit': (node) => reportIfMissing(context, node)
58 +'Program:exit': () => reportIfMissing(context)
59 59 };
60 60 };
Original file line number Diff line number Diff line change
@@ -56,6 +56,6 @@ module.exports = function(context) {
56 56 return {
57 57 'CallExpression': (node) => testInspectorUsage(context, node),
58 58 'MemberExpression': (node) => checkMemberExpression(context, node),
59 -'Program:exit': (node) => reportIfMissing(context, node)
59 +'Program:exit': () => reportIfMissing(context)
60 60 };
61 61 };