-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
58 lines (57 loc) · 1.58 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"extends": ["react-app", "eslint:recommended", "plugin:react/recommended"],
"plugins": ["react"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"no-unneeded-ternary": 2,
"prefer-arrow-callback": 2,
"complexity": [2, 10],
"no-unused-vars": [2],
"max-statements": [2, 20],
"max-statements-per-line": [
2,
{
"max": 1
}
],
"max-nested-callbacks": [2, 3],
"max-depth": [
2,
{
"max": 2
}
],
"eqeqeq": 2,
"no-eval": 2,
"no-var": 2,
"prefer-const": 2,
"max-lines": [
2,
{ "max": 200, "skipBlankLines": true, "skipComments": true }
],
"no-return-assign": 2,
"no-param-reassign": 2,
"array-callback-return": 2,
"react/button-has-type": 2,
"react/no-children-prop": 2,
"react/no-danger": 2,
"react/no-direct-mutation-state": 2,
"react/no-multi-comp": [2, { "ignoreStateless": true }],
"react/no-typos": 2,
"react/no-this-in-sfc": 2,
"react/prefer-stateless-function": 2,
"react/react-in-jsx-scope": 2,
"react/sort-comp": 2,
"react/sort-prop-types": 2,
"react/style-prop-object": 2,
"react/void-dom-elements-no-children": 2,
"react/jsx-pascal-case": 2,
"react/jsx-props-no-multi-spaces": 2,
"react/jsx-sort-props": 2,
"react/prop-types": 2
}
}