This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
76 lines (76 loc) · 2.34 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
module.exports = {
env: {
jest: true,
es6: true,
node: true,
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2017,
},
extends: [
'plugin:prettier/recommended',
'prettier/standard',
'prettier',
'plugin:unicorn/recommended',
],
plugins: ['import', 'standard', 'node', 'jest', 'ramda', 'jsdoc', 'unicorn'],
rules: {
'prettier/prettier': [
'error',
{
semi: true,
singleQuote: true,
trailingComma: 'es5',
},
],
'no-unused-vars': 'error',
'no-undef': 'error',
'no-shadow': 'error',
'ramda/always-simplification': 'error',
'ramda/any-pass-simplification': 'error',
'ramda/both-simplification': 'error',
'ramda/complement-simplification': 'error',
'ramda/cond-simplification': 'error',
'ramda/either-simplification': 'error',
'ramda/eq-by-simplification': 'error',
'ramda/filter-simplification': 'error',
'ramda/if-else-simplification': 'error',
'ramda/map-simplification': 'error',
'ramda/merge-simplification': 'error',
'ramda/no-redundant-and': 'error',
'ramda/no-redundant-not': 'error',
'ramda/no-redundant-or': 'error',
'ramda/pipe-simplification': 'error',
'ramda/prefer-both-either': 'error',
'ramda/prefer-complement': 'error',
'ramda/prop-satisfies-simplification': 'error',
'ramda/reduce-simplification': 'error',
'ramda/reject-simplification': 'error',
'ramda/set-simplification': 'error',
'ramda/unless-simplification': 'error',
'ramda/when-simplification': 'error',
'jsdoc/check-indentation': 0,
'jsdoc/check-param-names': 1,
'jsdoc/check-syntax': 1,
'jsdoc/check-tag-names': 1,
'jsdoc/implements-on-classes': 1,
'jsdoc/match-description': 1,
'jsdoc/newline-after-description': 1,
'jsdoc/no-undefined-types': 1,
'jsdoc/require-description': 1,
'jsdoc/require-example': 1,
'jsdoc/require-hyphen-before-param-description': 1,
'jsdoc/require-param': 1,
'jsdoc/require-param-description': 1,
'jsdoc/require-param-name': 1,
'jsdoc/require-param-type': 1,
'jsdoc/require-returns': 1,
'jsdoc/require-returns-check': 1,
'jsdoc/require-returns-description': 1,
'jsdoc/require-returns-type': 1,
'jsdoc/valid-types': 1,
'unicorn/prevent-abbreviations': 0,
'unicorn/prefer-query-selector': 0,
},
};