Browse Source

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>
v6
Rich Trott 8 years ago
parent
commit
491f838511
  1. 4
      tools/eslint-rules/required-modules.js

4
tools/eslint-rules/required-modules.js

@ -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…
Cancel
Save