diff --git a/package.json b/package.json index 51aa504e..c6ae69fe 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.25.0", - "babel-eslint": "^8.0.0", + "babel-eslint": "^8.0.1", "babel-loader": "^7.1.2", "babel-plugin-add-module-exports": "^0.2.1", "babel-preset-es2015": "^6.24.1", @@ -32,9 +32,9 @@ "babel-preset-stage-2": "^6.24.1", "coveralls": "^2.13.1", "cross-env": "^5.0.1", - "eslint": "^4.7.1", + "eslint": "^4.8.0", "eslint-plugin-jsx-a11y": "^6.0.2", - "eslint-plugin-react": "^7.1.0", + "eslint-plugin-react": "^7.4.0", "gitbook-cli": "^2.3.0", "istanbul-instrumenter-loader": "^3.0.0", "karma": "^1.3.0", diff --git a/src/helpers/ariaAppHider.js b/src/helpers/ariaAppHider.js index 20b85abf..135bc8c7 100644 --- a/src/helpers/ariaAppHider.js +++ b/src/helpers/ariaAppHider.js @@ -31,10 +31,11 @@ export function tryForceFallback() { export function validateElement(appElement) { if (!appElement && !globalElement && !tryForceFallback()) { throw new Error([ - 'react-modal: Cannot fallback to `document.body`, because it\'s not ready or available.', - 'If you are doing server-side rendering, use this function to defined an element.', - '`Modal.setAppElement(el)` to make this accessible' - ]); + 'react-modal: Cannot fallback to `document.body`, because it is not', + 'ready or available. If you are doing server-side rendering, use this', + 'function to defined an element. `Modal.setAppElement(el)` to make', + 'this accessible', + ].join(' ')); } }