tools: fix indentation in required-modules.js
In preparation for applying the more strict indentation linting available in ESLint 4.0.0, correct minor indentation issues in tools/eslint-rules/required-modules.js. This is the only file with indentation that does not conform to the stricter checks. PR-URL: https://github.com/nodejs/node/pull/13758 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
parent
4885982ee2
commit
491f838511
@ -77,13 +77,13 @@ module.exports = function(context) {
|
|||||||
function(module) {
|
function(module) {
|
||||||
return foundModules.indexOf(module === -1);
|
return foundModules.indexOf(module === -1);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
missingModules.forEach(function(moduleName) {
|
missingModules.forEach(function(moduleName) {
|
||||||
context.report(
|
context.report(
|
||||||
node,
|
node,
|
||||||
'Mandatory module "{{moduleName}}" must be loaded.',
|
'Mandatory module "{{moduleName}}" must be loaded.',
|
||||||
{ moduleName: moduleName }
|
{ moduleName: moduleName }
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user