This repository has been archived by the owner on Jan 27, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
118 lines (117 loc) · 2.86 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
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
{
"parser": "babel-eslint",
"root": true,
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"airbnb",
"eslint:recommended"
],
"globals": {
"window": true,
"document": true,
"afterEach": true,
"beforeEach": true,
"beforeAll": true,
"page": true,
"expect": true,
"localStorage": true,
"fetch": true
},
"rules": {
"no-console": "off",
"comma-dangle": "off",
"semi": [
2,
"always"
],
"indent": [
"error",
4,
{
"VariableDeclarator": 2,
"SwitchCase": 1,
"MemberExpression": 1,
"ArrayExpression": "first"
}
],
"react/jsx-indent": [
2,
4
],
"react/jsx-indent-props": [
2,
4
],
"react/jsx-boolean-value": [
0
],
"react/prop-types": 0,
"babel/new-cap": 0,
"babel/arrow-parens": 0,
"react/destructuring-assignment": 0,
"react/prop-type": 0,
"switch-colon-spacing": [
"error",
{
"after": true,
"before": false
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"max-len": [
"error",
{
"code": 120,
"comments": 120,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreRegExpLiterals": true,
"tabWidth": 4
}
],
"react/button-has-type": ["error",
{
"button": true,
"submit": true,
"reset": true
}
],
"jsx-a11y/anchor-is-valid": 0,
"arrow-body-style": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"import/no-useless-path-segments": 0,
"import/extensions": 0,
"one-var": 0,
"import/prefer-default-export": 0,
"no-underscore-dangle": 0,
"global-require": 0,
"import/first": 0,
"react/forbid-prop-types": 0,
"no-confusing-arrow": 0,
"react/require-default-props": 0,
"no-nested-ternary": 0,
"react/no-unused-prop-types": 0,
"no-mixed-operators": 2,
"import/no-dynamic-require": 0,
"camelcase": 0,
"func-names": 0,
"prefer-arrow-callback": 0,
"no-case-declarations": 0,
"quote-props": "off"
}
}