-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
84 lines (84 loc) · 1.64 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
83
84
{
"extends": "eslint-config-airbnb",
"globals": {
"document": false,
"_globalIPCRenderer": "readonly",
"_globalRepoInfo": "readonly",
"_globalPref": "readonly",
"_globalCommonJS": "readonly",
"_globalLeetCodeJS": "readonly",
"_globalIsInDownLoadMode": "writable"
},
"rules": {
"import/extensions": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": [
2,
{
"ignore": [
"electron"
]
}
],
"import/prefer-default-export": "off",
"indent": [
"error",
2
],
"linebreak-style": 0,
"max-len": [
1,
240,
2,
{
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"no-console": 0,
"no-plusplus": [
1,
{
"allowForLoopAfterthoughts": true
}
],
"no-underscore-dangle": [
"error",
{
"allow": [
"_globalIPCRenderer",
"_globalRepoInfo",
"_globalPref",
"_globalIsInDownLoadMode",
"_globalCommonJS",
"_globalLeetCodeJS"
]
}
],
"no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "_global",
"args": "after-used",
"ignoreRestSiblings": false,
"argsIgnorePattern": "^event"
}
],
"no-use-before-define": [
"error",
{
"functions": false,
"classes": true
}
],
"object-shorthand": 0,
"quotes": [
"error",
"double"
]
}
}