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

Commit fd27fe8

Browse files
chore(deps): update dependency @netlify/eslint-config-node to ^3.0.2 (#439)
1 parent 4f9d8d3 commit fd27fe8

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"@babel/plugin-transform-runtime": "^7.12.17",
7676
"@babel/preset-env": "^7.12.17",
7777
"@babel/runtime": "^7.12.18",
78-
"@netlify/eslint-config-node": "^3.0.1",
78+
"@netlify/eslint-config-node": "^3.0.2",
7979
"ava": "^2.4.0",
8080
"babel-loader": "^8.2.2",
8181
"from2-string": "^1.1.0",

src/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ const pWaitFor = require('p-wait-for')
44
const { getMethods } = require('./methods')
55
const { getOperations } = require('./operations')
66

7-
/* eslint-disable fp/no-this */
8-
// eslint-disable-next-line fp/no-class
97
class NetlifyAPI {
108
constructor(firstArg, secondArg) {
119
// variadic arguments
@@ -29,7 +27,6 @@ class NetlifyAPI {
2927

3028
const basePath = getBasePath({ scheme, host, pathPrefix })
3129
const methods = getMethods({ basePath, defaultHeaders, agent, globalParams })
32-
// eslint-disable-next-line fp/no-mutating-assign
3330
Object.assign(this, { ...methods, defaultHeaders, scheme, host, pathPrefix, globalParams, accessToken, agent })
3431
}
3532

@@ -46,7 +43,6 @@ class NetlifyAPI {
4643

4744
set accessToken(token) {
4845
if (!token) {
49-
// eslint-disable-next-line fp/no-delete
5046
delete this.defaultHeaders.Authorization
5147
return
5248
}
@@ -83,7 +79,6 @@ class NetlifyAPI {
8379
return accessTokenResponse.access_token
8480
}
8581
}
86-
/* eslint-enable fp/no-this */
8782

8883
const getBasePath = function ({ scheme, host, pathPrefix }) {
8984
return `${scheme}://${host}${pathPrefix}`

src/methods/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const addAgent = function (agent, opts) {
6262

6363
const makeRequestOrRetry = async function ({ url, method, defaultHeaders, agent, requestParams, opts }) {
6464
// Using a loop is simpler here
65-
// eslint-disable-next-line fp/no-loops
6665
for (let index = 0; index <= MAX_RETRY; index++) {
6766
const optsA = getOpts({ method, defaultHeaders, agent, requestParams, opts })
6867
// eslint-disable-next-line no-await-in-loop

0 commit comments

Comments
 (0)