-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.json
73 lines (73 loc) · 1.66 KB
/
eslint.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"extends": ["eslint:recommended"],
"env": {
"es6": true,
"browser": true,
"amd": true,
"jasmine": true,
"node": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": false
}
},
"plugins": [
"babel",
"html",
"promise"
],
"settings": {
"html/html-extensions": [".san"]
},
"rules": {
"semi": 2,
"no-bitwise": 2,
"no-eval": 2,
"no-labels": 2,
"no-loop-func": 2,
"no-multi-spaces": 2,
"no-octal-escape": 2,
"no-redeclare": 2,
"no-duplicate-imports": 2,
"default-case": 2,
"no-lone-blocks": 2,
"no-self-compare": 2,
"no-alert": 2,
"no-void": 2,
"no-proto": 2,
"no-with": 2,
"no-lonely-if": 2,
"no-useless-return": 2,
"array-callback-return": 2,
"prefer-promise-reject-errors": 2,
"no-param-reassign": 2,
"no-unused-vars": 2,
"comma-dangle": ["error", "never"],
"quote-props": [2, "as-needed"],
"brace-style": [2, "1tbs"]
},
"globals": {
"Promise": true,
"require": true,
"__DEV__": true,
"baidu": true,
"bds": true,
"T": true,
"$": true,
"jQuery": true,
"goog": true,
"fis": true,
"F": true,
"__inline": true,
"__uri": true,
"angular": true,
"setImmediate": true,
"ActiveXObject": true,
"unescape": true,
"escape": true
}
}