-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
82 lines (82 loc) · 2.98 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
{
"extends": ["eslint:recommended"],
"rules": {
"no-irregular-whitespace": "off",
"no-mixed-spaces-and-tabs": "off",
"no-console": "warn",
"quotes": ["error", "single"],
"array-bracket-newline": ["error", "consistent"],
"brace-style": "error",
"camelcase": "error",
"comma-dangle": "error",
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"computed-property-spacing": ["error", "never"],
"func-call-spacing": ["error", "never"],
"function-paren-newline": ["error", "consistent"],
"indent": ["error", 4, { "FunctionDeclaration": {"parameters": "first"}, "MemberExpression": 1 }],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "strict" }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"max-len": ["error", 120],
"new-parens": "error",
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
"no-lonely-if": "error",
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-negated-condition": "error",
"no-new-object": "error",
"no-tabs": "error",
"no-trailing-spaces": ["error", { "ignoreComments": true }],
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"curly": ["error", "all"],
"object-curly-newline": ["error", { "minProperties": 1 }],
"object-curly-spacing": "error",
"object-property-newline": "error",
"quote-props": ["error", "as-needed"],
"semi": "error",
"semi-style": ["error", "last"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"switch-colon-spacing": "error",
"eqeqeq": "error",
"space-infix-ops": "error",
"line-comment-position": ["error", { "position": "above", "applyDefaultIgnorePatterns": false }],
"complexity": ["error", 10],
"no-else-return": "error",
"jasmine/no-focused-tests": "error",
"jasmine/expect-matcher": "error",
"jasmine/expect-single-argument": "error",
"jasmine/missing-expect": ["error", "expect()", "$httpBackend.expectGET()", "$httpBackend.expectDELETE()",
"$httpBackend.expectGET()", "$httpBackend.expectJSONP()", "$httpBackend.expectHEAD()",
"$httpBackend.expectPATCH()", "$httpBackend.expectPOST()", "$httpBackend.expectPUT()"
],
"jasmine/new-line-before-expect": "error",
"jasmine/new-line-between-declarations": "error",
"jasmine/no-disabled-tests": "error",
"jasmine/no-global-setup": "error",
"jasmine/no-spec-dupes": [2, "branch"],
"jasmine/no-suite-dupes": [2, "branch"],
"jasmine/no-suite-callback-args": "error",
"jasmine/prefer-jasmine-matcher": "error"
},
"env": {
"browser": true,
"jasmine": true,
"jquery": true,
"es6": true
},
"globals": {
"angular": true,
"FormData": true,
"_": true,
"inject": true,
"module": true,
"Set": true
},
"plugins": [
"dollar-sign",
"jquery",
"jasmine"
]
}