-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
66 lines (66 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
{
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"destructuring": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"templateStrings": true,
"jsx": false
},
"env": {
"browser": true,
"node": true,
"jasmine": false
},
"parser": "babel-eslint",
"plugins": [
"babel"
],
"rules": {
"babel/generator-star-spacing": 1,
"babel/new-cap": 1,
"babel/array-bracket-spacing": 1,
"babel/object-curly-spacing": 1,
"babel/object-shorthand": 1,
"babel/arrow-parens": 1,
"babel/no-await-in-loop": 1,
"camelcase": 2,
"no-alert": 2,
"no-else-return": 1,
"strict": 0,
"brace-style": [2, "stroustrup"],
"comma-style": [1, "last"],
"no-lonely-if": 1,
"no-multi-spaces": 0,
"no-mixed-requires": 2,
"no-underscore-dangle": 0,
"no-var": 2, // required to be off for build scripts
"no-duplicate-case": 0,
"no-func-assign": 0,
"quotes": [0, "single", "avoid-escape"],
"space-before-function-paren": 0, //[1, "never"],
"space-after-keywords": 0, //[1, "always"],
"space-before-blocks": 0, //[1, "always"],
"space-in-brackets": 0,
"space-in-parens": 0,
"spaced-comment": 0,
"new-cap": 0,
"new-parens": 0,
"no-use-before-define": 0,
"no-shadow": 0
},
"globals": {
"__BROWSER__": false,
"__SERVER__": false,
"__DEV__": false,
"__PROD__": false,
"__": false,
"Promise": true,
"casper": false,
"jest": false
}
}