-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.yml
142 lines (131 loc) · 2.62 KB
/
.eslintrc.yml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
root: true
env:
es6: true
node: true
mocha: true
browser: true
globals:
serviceworker: true
describe: true
browser: true
fetch: true
it: true
expect: true
document: true
parserOptions:
ecmaVersion: 2020
ecmaFeatures:
jsx: true
generators: true
impliedStrict: false
legacyDecorators: true
experimentalDecorators: true
experimentalObjectRestSpread: true
settings:
react:
version: detect
parser: babel-eslint
plugins:
- fp
- babel
- react
- react-hooks
- jsx-a11y
extends:
- plugin:jsx-a11y/recommended
- plugin:react/recommended
- eslint:recommended
- react-app
- prettier
- prettier/react
rules:
accessor-pairs: 'off'
capitalized-comments: 'off'
consistent-return: warn
no-bitwise: warn
no-useless-concat: warn
camelcase: error
callback-return: error
dot-notation: error
eqeqeq:
- error
- allow-null
global-require: error
handle-callback-err: error
no-var: error
no-debugger: error
no-console:
- warn
- allow:
- info
- warn
- error
no-inner-declarations:
- error
- functions
no-restricted-syntax:
- error
- WithStatement
no-shadow:
- error
- hoist: never
no-unused-expressions: warn
no-param-reassign: warn
no-unused-vars:
- warn
- args: none
ignoreRestSiblings: true
no-duplicate-imports: error
no-use-before-define:
- error
- functions: false
variables: false
no-new-require: error
no-mixed-requires: error
no-octal: error
no-octal-escape: error
prefer-const: warn
strict:
- warn
- global
valid-typeof:
- error
- requireStringLiterals: true
max-lines:
- warn
- 300
max-lines-per-function:
- warn
- max: 200
skipComments: true
skipBlankLines: true
complexity:
- warn
- 20
max-nested-callbacks:
- error
- 3
max-depth:
- error
- 3
## REACT RULES
react/display-name: 'off'
react/jsx-filename-extension: 'off'
react/prop-types: warn
react/no-array-index-key: warn
react/jsx-uses-vars: error
react/jsx-uses-react: error
react/prefer-es6-class: warn
react/prefer-stateless-function: warn
## REACT HOOKS RULES
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: warn
## FUNCTIONAL PROGRAMMING RULES
fp/no-let: warn
fp/no-delete: error
fp/no-get-set: error
fp/no-arguments: error
fp/no-mutating-assign: warn
fp/no-mutating-methods: 'off'
fp/no-valueof-field: error
fp/no-throw: warn