Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
RobinBol committed Jan 29, 2024

Verified

This commit was signed with the committer’s verified signature.
zeeshanlakhani Zeeshan Lakhani
1 parent 3c62130 commit 24b8937
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -3,5 +3,8 @@
"env": {
"jest/globals": true
},
"globals": {
"fetch": false
},
"plugins": ["jest"]
}
2 changes: 2 additions & 0 deletions lib/OAuth2Fetch.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

module.exports = Number(process.versions.node.split('.')[0]) >= 18
? fetch // Use native fetch on Node 18 and above
: require('node-fetch');

0 comments on commit 24b8937

Please sign in to comment.