tools: change var to const in ./eslint-rules
PR-URL: https://github.com/nodejs/node/pull/13732 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
a7e1ceee8d
commit
ea67c27168
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Rule Definition
|
// Rule Definition
|
||||||
@ -14,7 +14,7 @@ module.exports = function(context) {
|
|||||||
// trim required module names
|
// trim required module names
|
||||||
var requiredModules = context.options;
|
var requiredModules = context.options;
|
||||||
|
|
||||||
var foundModules = [];
|
const foundModules = [];
|
||||||
|
|
||||||
// if no modules are required we don't need to check the CallExpressions
|
// if no modules are required we don't need to check the CallExpressions
|
||||||
if (requiredModules.length === 0) {
|
if (requiredModules.length === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user