-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
83 lines (83 loc) · 2.47 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
78
79
80
81
82
83
{
"rules": {
"indent": [
"error",
4,
{"SwitchCase": 1}
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single",
"avoid-escape"
],
"semi": [
"error",
"always"
],
"react/jsx-closing-bracket-location": [2, "after-props"],
"react/jsx-curly-spacing": [2, "never", {"allowMultiline": false}],
"react/jsx-indent-props": [2, 4],
"react/jsx-key": 2,
"react/jsx-max-props-per-line": [2, {"maximum": 4}],
"react/jsx-pascal-case": 2,
"react/jsx-sort-props": [2, {"ignoreCase": true}],
"react/sort-prop-types": [2, {"ignoreCase": true}],
"react/jsx-uses-vars": 1,
"react/no-danger": 0,
"react/no-multi-comp": 2,
"react/self-closing-comp": 2,
"react/jsx-wrap-multilines": 2,
"array-bracket-spacing": [2, "never"],
"brace-style": [2, "stroustrup"],
"camelcase": [2, {"properties": "always"}],
"comma-spacing": [2, {"after": true, "before": false}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"dot-location": [2, "property"],
"eol-last": 2,
"func-style": [2, "expression"],
"jsx-quotes": [2, "prefer-double"],
"keyword-spacing": 2,
"max-len": [2, 220, 2],
"no-cond-assign": 0,
"no-console": [2, { allow: ["warn", "error"] }],
"no-else-return": 2,
"no-eq-null": 0,
"no-extra-parens": 0,
"no-multiple-empty-lines": [2, {"max": 2}],
"no-trailing-spaces": 2,
"no-undef-init": 2,
"no-underscore-dangle": 0,
"object-curly-spacing": [2, "never"],
"radix": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"spaced-comment": [2, "always"],
"strict": [2, "global"],
"wrap-regex": 2
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"security"
]
}