This repository has been archived by the owner on Jul 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
57 lines (57 loc) · 1.68 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": ["standard"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"react/jsx-uses-react": ["error"],
"react/jsx-uses-vars": ["error"],
"indent": ["error", 2, { "flatTernaryExpressions": true }],
"operator-linebreak": [
"error",
"after",
{ "overrides": { "?": "none", ":": "after" } }
],
"no-var": "error",
"prefer-const": "error",
"no-multi-spaces": [
"error",
{
"exceptions": {
"ConditionalExpression": true,
"VariableDeclarator": true,
"ImportDeclaration": true
}
}
],
"key-spacing": ["error", { "align": "value" }],
"comma-dangle": ["error", "always-multiline"],
"object-curly-newline": [
"error",
{
"minProperties": 5,
"consistent": true,
"multiline": true
}
],
"arrow-parens":[ "error", "as-needed"],
"complexity": [ "warn", { "max": 5 }],
"max-statements": [ "warn", { "max": 7 }],
"max-statements-per-line": [ "warn", { "max": 1 }],
"max-nested-callbacks": [ "warn", { "max": 2 }],
"max-depth": [ "warn", { "max": 2 } ],
"max-lines": [ "warn", { "max": 100 } ],
"max-lines-per-function": [ "warn", { "max": 50 } ]
}
}