Skip to content

Commit

Permalink
[chore] Updated eslint and a few related deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Vohra authored and diasbruno committed Oct 11, 2017
1 parent b3701f6 commit 2a05bd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@
"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",
"babel-preset-react": "^6.24.1",
"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",
Expand Down
9 changes: 5 additions & 4 deletions src/helpers/ariaAppHider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(' '));
}
}

Expand Down

0 comments on commit 2a05bd8

Please sign in to comment.