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

Commit f0ac699

Browse files
authored
chore: enable fp/no-class ESLint rule (#251)
1 parent 6c54d5b commit f0ac699

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.eslintrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ module.exports = {
66
// TODO: enable those rules
77
complexity: 0,
88
'max-statements': 0,
9-
'fp/no-class': 0,
109
'fp/no-let': 0,
1110
'fp/no-loops': 0,
1211
'fp/no-mutation': 0,
13-
'fp/no-this': 0,
1412
'promise/no-callback-in-promise': 0,
1513
'promise/prefer-await-to-callbacks': 0,
1614
},

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const deploy = require('./deploy')
55
const { getMethods } = require('./methods')
66
const { getOperations } = require('./operations')
77

8+
/* eslint-disable fp/no-this */
9+
// eslint-disable-next-line fp/no-class
810
class NetlifyAPI {
911
constructor(firstArg, secondArg) {
1012
// variadic arguments
@@ -89,6 +91,7 @@ class NetlifyAPI {
8991
return await deploy(this, siteId, buildDir, opts)
9092
}
9193
}
94+
/* eslint-enable fp/no-this */
9295

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

0 commit comments

Comments
 (0)