-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
94 lines (88 loc) · 2.79 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
{
"extends": "google",
"plugins": [
"angular",
"jasmine",
"json"
],
"env": {
"amd": true,
"angular/angular": true,
"angular/mocks": true,
"angular/protractor": true,
"browser": true,
"es6": true,
"jasmine": true,
"jquery": true,
"node": true,
"protractor": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"indent": [2, 4, {"VariableDeclarator": 1}],
"max-len": "off",
"max-nested-callbacks": "off",
"no-useless-escape": "error",
"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",
// Angular
"angular/controller-as-vm": "warn",
// "angular/di": [1, "$inject"],
"angular/di-unused": "warn",
"angular/directive-restrict": "warn",
"angular/empty-controller": "error",
// "angular/function-type": [1,"named"],
"angular/module-dependency-order": [1, {"grouped": true,"prefix": "ts"}],
"angular/module-getter": "off",
"angular/module-setter": "warn",
"angular/module-name": "error",
"angular/no-run-logic": "error",
"angular/no-private-call": "warn",
"angular/no-service-method": "error",
"angular/no-services": "error",
"angular/on-watch": "warn",
// 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"
}
}