mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
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';
|
||||
|
||||
var path = require('path');
|
||||
const path = require('path');
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Rule Definition
|
||||
@ -14,7 +14,7 @@ module.exports = function(context) {
|
||||
// trim required module names
|
||||
var requiredModules = context.options;
|
||||
|
||||
var foundModules = [];
|
||||
const foundModules = [];
|
||||
|
||||
// if no modules are required we don't need to check the CallExpressions
|
||||
if (requiredModules.length === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user