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

Commit

Permalink
chore: enable fp/no-class ESLint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored and erezrokah committed Dec 20, 2020
1 parent 6c54d5b commit e332ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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
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

0 comments on commit e332ff9

Please sign in to comment.