-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
96 lines (96 loc) · 1.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"env": {
"browser": true,
"node": true
},
"plugins": [
"react"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"parser": "babel-eslint",
"rules": {
"camelcase": 0,
"comma-dangle": 0,
"no-alert": 0,
"no-else-return": 1,
"strict": [
2,
"global"
],
"brace-style": 0,
"comma-style": [
1,
"last"
],
"no-lonely-if": 1,
"no-multi-spaces": [
1,
{
"exceptions": {
"VariableDeclarator": true
}
}
],
"no-mixed-requires": 2,
"no-underscore-dangle": 0,
"no-var": 0,
"no-duplicate-case": 0,
"no-func-assign": 0,
"quotes": 0,
"no-undef": 2,
"space-before-function-paren": [
1,
"never"
],
"space-after-keywords": 0,
"space-before-blocks": 0,
"new-cap": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/prop-types": 0,
"react/react-in-jsx-scope": 1,
"semi": [
"warn",
"never"
],
"no-console": [
"warn",
{
"allow": [
"info",
"warn",
"error"
]
}
],
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
},
"globals": {
"__BROWSER__": false,
"__SERVER__": false,
"__DEV__": false,
"__PROD__": false,
"__": false,
"_": true,
"Backbone": true,
"Marionette": true,
"$": true,
"jQuery": true,
"App": true,
"Promise": true,
"Modernizr": true,
"zE": true
}
}