Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ module.exports = {
// TODO: enable those rules
complexity: 0,
'max-statements': 0,
'fp/no-class': 0,
'fp/no-let': 0,
'fp/no-loops': 0,
'fp/no-mutation': 0,
'fp/no-this': 0,
'promise/no-callback-in-promise': 0,
'promise/prefer-await-to-callbacks': 0,
},
Expand Down
3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const deploy = require('./deploy')
const { getMethods } = require('./methods')
const { getOperations } = require('./operations')

/* eslint-disable fp/no-this */
// eslint-disable-next-line fp/no-class
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the class would be a major breaking change with little benefit.

class NetlifyAPI {
constructor(firstArg, secondArg) {
// variadic arguments
Expand Down Expand Up @@ -89,6 +91,7 @@ class NetlifyAPI {
return await deploy(this, siteId, buildDir, opts)
}
}
/* eslint-enable fp/no-this */

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