-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
40 lines (36 loc) · 1.03 KB
/
.eslintrc.json
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
{
"env": {
"es6": true
},
"plugins": ["fp"],
"extends": ["next/core-web-vitals", "plugin:fp/recommended"],
"rules": {
"fp/no-arguments": "error",
"fp/no-class": "error",
"fp/no-delete": "error",
"fp/no-events": "error",
"fp/no-get-set": "error",
"fp/no-let": "error",
"fp/no-loops": "error",
"fp/no-mutating-assign": "error",
"fp/no-mutating-methods": "error",
"fp/no-mutation": "error",
"fp/no-nil": "off",
"fp/no-proxy": "error",
"fp/no-rest-parameters": "error",
"fp/no-this": "error",
"fp/no-throw": "error",
"fp/no-unused-expression": "off",
"fp/no-valueof-field": "error",
"no-var": "error",
// additional recommendations from Ilya Suzdalnitsky
// https://betterprogramming.pub/js-reliable-fdea261012ee
"max-lines": ["warn", 200],
"max-lines-per-function": ["off", 20],
"complexity": ["warn", 5],
"max-nested-callbacks": ["warn", 2],
"max-depth": ["warn", 3],
"no-param-reassign": "warn",
"max-params": ["warn", 2]
}
}