/
.eslintrc.json
75 lines (75 loc) · 1.57 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"plugins": [
"babel",
"react",
"jest",
"flowtype",
"unicorn"
],
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:flowtype/recommended",
"plugin:unicorn/recommended",
"standard-jsdoc",
"standard-react",
"standard",
"airbnb"
],
"parser": "babel-eslint",
"settings": {
"import/resolver": "webpack"
},
"env": {
"jest/globals": true,
"browser": true,
"es6": true
},
"rules": {
"semi": [
"error",
"never"
],
"no-invalid-this": "off",
"babel/no-invalid-this": "error",
"max-len": [
"error",
{
"code": 130
}
],
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": true,
"ArrowFunctionExpression": false,
"FunctionExpression": false
}
}
],
"valid-jsdoc": [
"warn",
{
"requireParamType": false,
"requireReturn": false,
"requireReturnType": false,
"requireReturnDescription": false
}
],
"jsdoc/require-param-type": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-returns-description": "off",
"react/prefer-stateless-function": "off",
"unicorn/prevent-abbreviations": "off",
"react/static-property-placement": [
"warn",
"static public field"
],
"react/jsx-props-no-spreading": "off",
"unicorn/prefer-node-append": "off",
"react/state-in-constructor": "off"
}
}