-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
74 lines (68 loc) · 1.97 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
{
"extends": "google",
"plugins": [
"jasmine",
"json",
"react"
],
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"indent": [2, 4, {"VariableDeclarator": 1}],
"max-len": "off",
"max-nested-callbacks": "off",
"padded-blocks": "off",
"valid-jsdoc": [1, {
"prefer": {
"return": "returns"
},
"requireReturn": false
}],
// ECMAScript 6
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"constructor-super": "error",
"generator-star-spacing": "error",
"no-class-assign": "error",
"no-confusing-arrow": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-new-symbol": "error",
"no-restricted-imports": "error",
"no-this-before-super": "error",
"no-useless-constructor": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-reflect": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-yield": "error",
"template-curly-spacing": "error",
"yield-star-spacing": "error",
// Jasmine
"jasmine/named-spy": "off",
"jasmine/no-focused-tests": "error",
"jasmine/no-disabled-tests": "warn",
"jasmine/no-suite-dupes": "error",
"jasmine/no-spec-dupes": "error",
"jasmine/missing-expect": "off",
"jasmine/no-suite-callback-args": "error",
"jasmine/valid-expect": "error",
"jasmine/no-assing-spyon": "off"
}
}