From 4768188e7fbffd0ee9cdc6ff48c5f33259b52cca Mon Sep 17 00:00:00 2001 From: Sanders DeNardi Date: Sat, 2 Feb 2019 21:01:49 -0500 Subject: [PATCH] fix: remove global window from Map() usage, update eslint rules for new es6 environment (#1195) --- .eslintrc | 3 ++- src/utils/Resources.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index e761f5d6a..9232aca57 100644 --- a/.eslintrc +++ b/.eslintrc @@ -2,7 +2,8 @@ parser: babel-eslint extends: - jason/react - prettier - +env: + es6: true rules: global-require: off no-unused-vars: [2, { diff --git a/src/utils/Resources.js b/src/utils/Resources.js index b825ef993..6c01555fb 100644 --- a/src/utils/Resources.js +++ b/src/utils/Resources.js @@ -10,7 +10,7 @@ export default function Resources(resources, accessors) { }, groupEvents(events) { - const eventsByResource = new window.Map() + const eventsByResource = new Map() if (!resources) { // Return all events if resources are not provided