-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
58 lines (58 loc) · 1.61 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
{
"extends": ["eslint:recommended", "prettier"],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"node": true
},
"globals": {
"$": true,
"AMap": true,
"AMapUI": true,
"DataSet": true,
"G": true,
"G_SVG": true,
"G2": true,
"_": true,
"window": true,
"document": true,
"Image": true,
"Event": true,
"HTMLElement": true,
"ImageData": true,
"CodeMirror": true,
"routie": true,
"Clipboard": true,
"MouseEvent": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"impliedStrict": true
},
"plugins": ["html", "prettier", "@typescript-eslint", "import"],
"rules": {
"no-sparse-arrays": 0,
"no-self-assign": 0,
"no-unused-vars": 0, // @typescript-eslint/no-unused-vars
"no-inner-declarations": 0,
"prettier/prettier": 2,
"@typescript-eslint/no-unused-vars": 1,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-use-before-define": [2, { "functions": false }],
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/type-annotation-spacing": 0,
"@typescript-eslint/no-empty-function": 1,
"no-undef": 0,
"@typescript-eslint/no-var-requires": 0,
"no-case-declarations": 1,
"no-prototype-builtins": 1,
"no-useless-escape": 1
}
}