diff --git a/.eslintrc b/.eslintrc index 2c8a8f8..6fe7864 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,16 +1,13 @@ { - "extends": ["eslint:recommended", "plugin:import/errors"], - "parser": "babel-eslint", "env": { + "es6": true, "node": true }, + "extends": ["eslint:recommended", "plugin:import/errors"], + "parser": "babel-eslint", "rules": { "no-console": 0 }, - "globals": { - "fetch": true, - "Promise": true - }, "settings": { "import/resolver": { "node": { diff --git a/modules/utils/cloudflare.js b/modules/utils/cloudflare.js index 580f123..1a12262 100644 --- a/modules/utils/cloudflare.js +++ b/modules/utils/cloudflare.js @@ -1,4 +1,4 @@ -import 'isomorphic-fetch'; +import fetch from 'isomorphic-fetch'; import invariant from 'invariant'; import gunzip from 'gunzip-maybe'; import ndjson from 'ndjson';