This repository has been archived by the owner on Nov 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
94 lines (87 loc) · 2.17 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
{
"env": {
"browser": true,
"es6": true,
"mozilla/jsm": true,
"commonjs": true
},
"extends": [
"eslint:recommended",
"plugin:mozilla/recommended"
],
"overrides": [
{
"files": "./src/chrome/content/*.js"
}
],
"plugins": [
"deprecate",
"mozilla"
],
"globals": {
"EXPORTED_SYMBOLS": "readonly",
"ChromeUtils": "readonly",
"XPCOMUtils": "readonly",
"sizeToContent": "readonly",
"Cc": "readonly",
"Cu": "readonly",
"Ci": "readonly",
"Cr": "readonly",
"miczLogger": "readonly",
"miczColumnsWizardPrefsUtils": "readonly",
"Components": "readonly",
"miczColumnsWizard": "readonly",
"miczColumnsWizard_CustCols": "readonly",
"miczColumnsWizard_MsgUtils": "readonly",
"miczColumnsWizardUtils": "readonly",
"miczColumnsWizard_CustomColsModUtils": "readonly",
"miczColumnsWizardPref_DefaultColsGrid": "readonly",
"miczColumnsWizardPref_CustomColsGrid": "readonly",
"messenger": "readonly",
"MailServices": "readonly",
"gDBView": "readonly",
"OS": "readonly",
"window": "readonly",
"msgWindow": "readonly",
"gFolderDisplay": "readonly"
},
"rules": {
"no-irregular-whitespace": "error",
"space-in-parens": "error",
// "no-unused-vars": [1, {"vars": "all", "args": "none", "varsIgnorePattern": "EXPORTED_SYMBOLS|rest"}],
"no-unused-vars":"off",
"space-before-function-paren":"off",
"no-array-constructor": "warn",
"eqeqeq":"error",
"mozilla/import-globals": "off",
"no-tabs":"off",
"no-useless-return":"off",
"object-shorthand":"off",
"padded-blocks":"off",
"mozilla/use-cc-etc": "error",
"mozilla/no-useless-parameters": "off",
"mozilla/use-services": "off",
"mozilla/use-includes-instead-of-indexOf": "warn",
"mozilla/avoid-removeChild": "warn",
"mozilla/use-chromeutils-generateqi": "off",
"quotes":"off",
"spaced-comment": [
2,
"always"
],
"semi": "error",
"no-restricted-properties": [
1,
{
"property": "nsIStringBundleService"
}
],
"deprecate/function": [
"error",
{
"name": "createBundle",
"use": "Replace with Services.createBundle"
}
]
}
}