-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
43 lines (43 loc) · 1.39 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
{
"parserOptions" : {
"ecmaVersion" : 6,
"sourceType" : "module"
},
"rules" : {
"semi" : "error",
"indent" : ["error", 4],
"no-mixed-spaces-and-tabs" : "error",
"max-len" : ["error", { "code" : 120 }],
"eol-last" : "error",
"no-unused-vars" : ["error", {
"vars" : "all",
"args" : "none"
}],
"key-spacing" : ["error", {
"beforeColon" : true,
"afterColon" : true,
"mode" : "strict"
}],
"object-curly-spacing" : ["error", "always"],
"keyword-spacing" : ["error", {
"before" : true,
"after" : true,
"overrides" : {
"for" : { "after" : false },
"while" : { "after" : false },
"switch" : { "after" : false },
"catch" : { "after" : false }
}
}],
"array-bracket-spacing" : ["error", "never"],
"func-call-spacing" : "error",
"space-before-blocks" : ["error", "always"],
"quotes" : ["error", "single", { "avoidEscape" : true }],
"camelcase" : ["error", { "properties" : "never" }],
"no-trailing-spaces" : "error",
"comma-dangle" : ["error", "never"],
"react/sort-prop-types" : "off",
"react/forbid-component-props" : "off",
"react/display-name" : "off"
}
}