Skip to content

Commit d984904

Browse files
authored
fix: make functional programming linting opt-in (#206)
1 parent f300be8 commit d984904

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

.eslintrc.js

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module.exports = {
1414
'plugin:node/recommended',
1515
'plugin:import/recommended',
1616
'plugin:promise/recommended',
17-
'plugin:fp/recommended',
1817
'plugin:ava/recommended',
1918
'plugin:react/recommended',
2019
'plugin:you-dont-need-lodash-underscore/all',
@@ -138,43 +137,6 @@ module.exports = {
138137
'fp/no-unused-expression': 0,
139138
'fp/no-nil': 0,
140139
'fp/no-throw': 0,
141-
// Avoid state mutation except for some known state variables
142-
'fp/no-mutating-methods': [
143-
2,
144-
{
145-
allowedObjects: [
146-
'error',
147-
'errorA',
148-
'req',
149-
'request',
150-
'res',
151-
'response',
152-
'state',
153-
'runState',
154-
'logs',
155-
'logsArray',
156-
'currentEnv',
157-
't',
158-
],
159-
},
160-
],
161-
'fp/no-mutation': [
162-
2,
163-
{
164-
commonjs: true,
165-
exceptions: [
166-
{ object: 'error' },
167-
{ object: 'errorA' },
168-
{ object: 'res' },
169-
{ object: 'state' },
170-
{ object: 'runState' },
171-
{ object: 'logs' },
172-
{ object: 'logsArray' },
173-
{ object: 'currentEnv' },
174-
{ object: 'process', property: 'exitCode' },
175-
],
176-
},
177-
],
178140

179141
'import/extensions': [2, 'never', { json: 'always' }],
180142
'import/max-dependencies': [2, { max: 20 }],

0 commit comments

Comments
 (0)