forked from jfmengels/eslint-plugin-lodash-fp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
59 lines (58 loc) · 2.49 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
'use strict';
module.exports = {
rules: {
'consistent-compose': require('./rules/consistent-compose'),
'consistent-name': require('./rules/consistent-name'),
'no-argumentless-calls': require('./rules/no-argumentless-calls'),
'no-chain': require('./rules/no-chain'),
'no-extraneous-args': require('./rules/no-extraneous-args'),
'no-extraneous-function-wrapping': require('./rules/no-extraneous-function-wrapping'),
'no-extraneous-iteratee-args': require('./rules/no-extraneous-iteratee-args'),
'no-for-each': require('./rules/no-for-each'),
'no-partial-of-curried': require('./rules/no-partial-of-curried'),
'no-single-composition': require('./rules/no-single-composition'),
'no-submodule-destructuring': require('./rules/no-submodule-destructuring'),
'no-unused-result': require('./rules/no-unused-result'),
'prefer-compact': require('./rules/prefer-compact'),
'prefer-composition-grouping': require('./rules/prefer-composition-grouping'),
'prefer-constant': require('./rules/prefer-constant'),
'prefer-flat-map': require('./rules/prefer-flat-map'),
'preferred-alias': require('./rules/preferred-alias'),
'prefer-get': require('./rules/prefer-get'),
'prefer-identity': require('./rules/prefer-identity'),
'use-fp': require('./rules/use-fp')
},
configs: {
recommended: {
env: {
es6: true
},
parserOptions: {
ecmaVersion: 7,
sourceType: 'module'
},
rules: {
'lodash-fp/consistent-compose': 'off',
'lodash-fp/consistent-name': ['error', '_'],
'lodash-fp/no-argumentless-calls': 'error',
'lodash-fp/no-chain': 'error',
'lodash-fp/no-extraneous-args': 'error',
'lodash-fp/no-extraneous-function-wrapping': 'error',
'lodash-fp/no-extraneous-iteratee-args': 'error',
'lodash-fp/no-for-each': 'off',
'lodash-fp/no-partial-of-curried': 'error',
'lodash-fp/no-single-composition': 'error',
'lodash-fp/no-submodule-destructuring': 'error',
'lodash-fp/no-unused-result': 'error',
'lodash-fp/prefer-compact': 'error',
'lodash-fp/prefer-composition-grouping': 'error',
'lodash-fp/prefer-constant': ['error', {arrowFunctions: false}],
'lodash-fp/prefer-flat-map': 'error',
'lodash-fp/preferred-alias': 'off',
'lodash-fp/prefer-get': 'error',
'lodash-fp/prefer-identity': ['error', {arrowFunctions: false}],
'lodash-fp/use-fp': 'error'
}
}
}
};