-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
50 lines (50 loc) · 1.31 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
{
"env": {
"browser": true,
"node": true,
"es6": true // but extension code should be in ES5 to support IE 10
},
"extends": [
"eslint:recommended"
],
"globals": {
"_satellite": true,
"turbine": true,
"Vimeo": true,
/** jasmine */
"jasmine": true,
"afterAll": true,
"beforeAll": true,
"beforeEach": true,
"describe": true,
"expect": true,
"it": true
},
"parserOptions": {
"sourceType": "script"
},
"rules": {
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase": [2, { "properties": "always" }],
"comma-style": [2],
"consistent-this": [0, "self"],
"eqeqeq": [2, "allow-null"],
"indent": [2, 2, { "SwitchCase": 1 }],
"keyword-spacing": [2],
"max-len": [2, 100, 4, {
"ignoreUrls": true,
"ignorePattern": "^(\\s*(var|let|const)\\s.+=\\s*require\\s*\\()|(^\\s*import)"
}],
"no-nested-ternary": [2],
"no-underscore-dangle": 0,
"one-var": [2, "never"],
"prefer-const": ["error", { "destructuring": "all" }],
"quotes": [1, "single", "avoid-escape"],
"semi": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-infix-ops": [2, { "int32Hint": false }],
"spaced-comment": 0,
"strict": [2, "global"]
}
}