summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-restricted-globals.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-restricted-globals.js')
-rw-r--r--tools/eslint/lib/rules/no-restricted-globals.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/lib/rules/no-restricted-globals.js b/tools/eslint/lib/rules/no-restricted-globals.js
index 19bd6a94ae..3617f1a8d7 100644
--- a/tools/eslint/lib/rules/no-restricted-globals.js
+++ b/tools/eslint/lib/rules/no-restricted-globals.js
@@ -26,7 +26,7 @@ module.exports = {
},
create: function(context) {
- let restrictedGlobals = context.options;
+ const restrictedGlobals = context.options;
// if no globals are restricted we don't need to check
if (restrictedGlobals.length === 0) {
@@ -57,7 +57,7 @@ module.exports = {
return {
Program: function() {
- let scope = context.getScope();
+ const scope = context.getScope();
// Report variables declared elsewhere (ex: variables defined as "global" by eslint)
scope.variables.forEach(function(variable) {