diff --git a/.eslintrc b/.eslintrc index a6a31f00..5d08d033 100644 --- a/.eslintrc +++ b/.eslintrc @@ -28,15 +28,32 @@ } }, "env": { - "browser": true, "node": true, "amd": true, "es6": true, "jest": true }, + // TODO: Consider removing some of these. + // https://github.com/facebook/create-react-app/pull/1840 + // Create React App and "Standard" only allow the following: + // * document + // * window + // * console + // * navigator "globals": { - "page": true, - "browser": true + "window": true, + "document": true, + "console": true, + "navigator": true, + "alert": true, + "Blob": true, + "fetch": true, + "FileReader": true, + "Element": true, + "AudioNode": true, + "MutationObserver": true, + "Image": true, + "location": true }, "rules": { "no-multiple-empty-lines": [ diff --git a/js/__tests__/baseline.integration-test.js b/js/__tests__/baseline.integration-test.js index 38dafff7..ef457e81 100644 --- a/js/__tests__/baseline.integration-test.js +++ b/js/__tests__/baseline.integration-test.js @@ -1,3 +1,4 @@ +/* global page */ const { toMatchImageSnapshot } = require("jest-image-snapshot"); expect.extend({ toMatchImageSnapshot });