-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
38 lines (38 loc) · 988 Bytes
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es6": true,
"jasmine": true,
"node": true
},
"extends": [
"closure-es6",
"plugin:jasmine/recommended",
"google"
],
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"jasmine",
"closure"
],
"rules": {
"prefer-rest-params": "off",
// We don't want this, adds a polyfill
// This library requires this to be used in methods as part of the API,
// and sometimes it's useful to reference this in jasmine as there is
// special handling.
"no-invalid-this": "off",
"prefer-spread": "off",
// As per Tagging ES6 guidelines.
"indent": "off",
// Contradicts closure/indent.
// We use the hasOwn function to validate object properties.
"guard-for-in": "off",
// Disable the following two so the expectation object can be returned
// from custom expect functions
"jasmine/expect-matcher": "off",
"jasmine/new-line-before-expect": "off"
}
}