forked from bem/bem-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
77 lines (77 loc) · 2.65 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"parser" : "babel-eslint",
"extends" : ["plugin:react/all"],
"plugins" : [
"react",
"jest"
],
"parserOptions" : {
"ecmaVersion" : 6,
"sourceType" : "module",
"ecmaFeatures" : {
"jsx" : true
}
},
"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"
}],
"jsx-quotes": ["error", "prefer-double"],
"key-spacing" : ["error", {
"beforeColon" : true,
"afterColon" : true,
"mode" : "strict"
}],
"curly" : ["error", "multi"],
"object-curly-spacing" : ["error", "always"],
"keyword-spacing" : ["error", {
"before" : true,
"after" : true,
"overrides" : {
"if" : { "after" : false },
"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/jsx-filename-extension" : ["error", { "extensions" : [".js"] }],
"react/jsx-indent" : ["error", 4],
"react/jsx-sort-props" : "off",
"react/require-optimization" : "off",
"react/no-set-state" : "off",
"react/no-multi-comp" : "off",
"react/sort-prop-types" : "off",
"react/prop-types" : "off",
"react/forbid-prop-types" : "off",
"react/forbid-component-props" : "off",
"react/forbid-foreign-prop-types" : "off",
"react/display-name" : "off",
"react/jsx-closing-bracket-location" : ["error", "after-props"],
"react/jsx-max-props-per-line" : ["error", { "maximum" : 3 }],
"react/jsx-wrap-multilines" : ["error", {
"declaration" : true,
"assignment" : true,
"return" : true
}],
"react/jsx-no-literals" : "off",
"react/jsx-handler-names" : "off",
"react/jsx-tag-spacing" : ["error", {
"beforeSelfClosing" : "never"
}],
"react/jsx-space-before-closing" : ["error", "never"]
}
}