Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
Add node/global-require ESLint rule (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored Dec 13, 2020
1 parent a5d685b commit 32a0115
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ module.exports = {
'fp/no-mutating-methods': 0,
'fp/no-mutation': 0,
'fp/no-this': 0,
'node/global-require': 0,
'promise/no-callback-in-promise': 0,
'promise/prefer-await-to-callbacks': 0,
},
Expand Down
3 changes: 2 additions & 1 deletion src/methods/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const nodeFetch = require('node-fetch')
// Webpack will sometimes export default exports in different places
const fetch = require('node-fetch').default || require('node-fetch')
const fetch = nodeFetch.default || nodeFetch

const { getOperations } = require('../operations')

Expand Down

0 comments on commit 32a0115

Please sign in to comment.