-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
118 lines (118 loc) · 3.07 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"ignorePatterns": ["src/api/WindowListener/*.js"],
"env": {
"browser": true,
"es6": true,
"es2021": true
},
"extends": [
"airbnb-base"
],
"globals": {
"gContentChanged": "writable",
"gMsgCompose": "writable",
"appWindow": "writable",
"gDBView": "readonly",
"dump": "readonly",
"msgWindow": "readonly",
"GetSelectedMsgFolders": "readonly",
"KeyEvent": "readonly",
"gFolderTreeView": "writable",
"messenger": "writable",
"Console": "readonly",
"Services": "readonly",
"Preferences": "readonly",
"globalThis": "readonly",
"gMessageDisplay" : "readonly",
"WL": "readonly",
"RemoveDupes": "writable",
"ChromeUtils": "readonly",
"Components": "readonly",
"Ci": "readonly",
"Cc": "readonly",
"Cr": "readonly",
"Cu": "readonly",
"pref": "readonly",
"IsHTMLEditor": "readonly",
"GetCurrentEditor": "readonly",
"GetCurrentEditorElement": "readonly"
},
"parserOptions": {
"ecmaVersion": 2022
},
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 0,
"MemberExpression": "off",
"ignoreComments": true
}
],
"max-len": [
"error",
{
"code": 130,
"tabWidth": 2
}
],
"quotes": [
"off", "double"
],
"operator-linebreak": [
"error", "after", { "overrides": { ":": "ignore" } }
],
"comma-dangle": ["error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "never"
}],
"func-names": ["off", "always"],
"comment: the following all come from airbnb-base, let's leave them off": "off",
"key-spacing": "off",
"default-case": "warn",
"array-callback-return": "off",
"camelcase": "off",
"class-methods-use-this": "off",
"eqeqeq": "off",
"guard-for-in": "off",
"max-classes-per-file": "off",
"new-cap": "off",
"no-bitwise": "off",
"no-console": "off",
"no-cond-assign": "off",
"no-continue": "off",
"no-control-regex": "off",
"no-empty": "off",
"no-lonely-if": "warn",
"no-multi-spaces": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-prototype-builtins": "off",
"no-restricted-globals": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-use-before-define": "off",
"function-call-argument-newline": "off",
"one-var-declaration-per-line": "off",
"no-multi-assign": "off",
"no-return-assign": "off",
"no-await-in-loop": "warn",
"one-var": "off",
"vars-on-top": "off",
"no-var": "off",
"prefer-const": "off",
"prefer-destructuring": "off",
"function-paren-newline": "off",
"default-case": "off",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 1} ],
"comment: will need to look at the following one-by-one": "off",
"no-unused-vars": "off",
"array-bracket-spacing": "off",
"wrap-iife": "warn"
}
}