Skip to content

Commit

Permalink
fix: remove global window from Map() usage, update eslint rules for n…
Browse files Browse the repository at this point in the history
…ew es6 environment (jquense#1195)
  • Loading branch information
sedenardi authored and jquense committed Feb 3, 2019
1 parent f2e5909 commit 4768188
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ parser: babel-eslint
extends:
- jason/react
- prettier

env:
es6: true
rules:
global-require: off
no-unused-vars: [2, {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4768188

Please sign in to comment.