diff options
Diffstat (limited to 'tools/eslint/lib/rules/no-restricted-globals.js')
-rw-r--r-- | tools/eslint/lib/rules/no-restricted-globals.js | 4 |
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 3617f1a8d7..07ff8b532d 100644 --- a/tools/eslint/lib/rules/no-restricted-globals.js +++ b/tools/eslint/lib/rules/no-restricted-globals.js @@ -25,7 +25,7 @@ module.exports = { } }, - create: function(context) { + create(context) { const restrictedGlobals = context.options; // if no globals are restricted we don't need to check @@ -56,7 +56,7 @@ module.exports = { } return { - Program: function() { + Program() { const scope = context.getScope(); // Report variables declared elsewhere (ex: variables defined as "global" by eslint) |