-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
56 lines (56 loc) · 1.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
{
"env": {
"browser": true,
"mocha": true,
"node": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
},
"rules": {
"array-bracket-spacing": [2, "always"],
"comma-dangle": [1, "always-multiline"],
"comma-spacing": ["error", { "before": false, "after": true }],
"computed-property-spacing": ["error", "never"],
"dot-location": [2, "property"],
"eol-last": 2,
"eqeqeq": [2, "allow-null"],
"indent": ["error", 2, { "MemberExpression": 1, "SwitchCase": 1 }],
"jsx-quotes": [2, "prefer-single"],
"keyword-spacing": 2,
"max-params": 2,
"no-lonely-if": 2,
"no-mixed-operators": 2,
"no-multi-spaces": 2,
"no-multiple-empty-lines": 2,
"no-return-await": 2,
"no-template-curly-in-string": 2,
"no-undef": 2,
"no-unexpected-multiline": 2,
"no-unsafe-negation": 2,
"no-unused-vars": 2,
"object-curly-spacing": [2, "always"],
"operator-linebreak": ["error", "before"],
"padded-blocks": ["error", "never"],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"require-yield": 0,
"semi": [2, "never"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"strict": 0
},
"plugins": [],
"globals": {
"expect": true,
"global": true,
"window": true,
"sinon": true,
"_": true,
}
}