-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
60 lines (57 loc) · 1.4 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
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"semi": [
"error",
"always"
],
"no-underscore-dangle": 0,
"no-unused-vars": 2,
"no-undef": "error",
"indent": ["error", 2],
"no-trailing-spaces": 2,
"quotes": ["error", "single"],
"no-tabs": 2,
"no-debugger": 2,
"no-multi-spaces": "error",
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}],
"no-mixed-spaces-and-tabs": 2,
"space-infix-ops": ["error", {"int32Hint": false}],
"comma-spacing": [2, {"before": false, "after": true}],
"consistent-return": 2,
"eol-last": "error",
"react/jsx-pascal-case": 1,
"react/jsx-indent": [2, 2],
"react/jsx-closing-bracket-location": [1, "tag-aligned"],
"react/jsx-uses-vars": 1,
"react/jsx-space-before-closing": 1,
"react/jsx-curly-spacing": 1,
"react/no-string-refs": 1,
"react/wrap-multilines": 1,
"react/self-closing-comp": 1,
"react/jsx-no-bind": [1, {"ignoreRefs": true}],
"react/require-render-return": 1,
"react/no-is-mounted": 1,
"react/prop-types": 1,
},
"globals": {
"angular": 1,
"isLiveSite": true,
"trackJs" : true,
"analytics": true
}
}