Skip to content

Commit

Permalink
Add setImmediate/Buffer globals to lint config
Browse files Browse the repository at this point in the history
Used by the server renderer
  • Loading branch information
sebmarkbage committed Nov 8, 2018
1 parent 2ffcdf9 commit b7a144b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/rollup/validate/eslintrc.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ module.exports = {
__REACT_DEVTOOLS_GLOBAL_HOOK__: true,
// CommonJS / Node
process: true,
setImmediate: true,
Buffer: true,
},
parserOptions: {
ecmaVersion: 5,
Expand Down
3 changes: 3 additions & 0 deletions scripts/rollup/validate/eslintrc.fb.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ module.exports = {
__REACT_DEVTOOLS_GLOBAL_HOOK__: true,
// FB
__DEV__: true,
// Node.js Server Rendering
setImmediate: true,
Buffer: true,
},
parserOptions: {
ecmaVersion: 5,
Expand Down

0 comments on commit b7a144b

Please sign in to comment.