This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
.eslintrc.js
67 lines (66 loc) · 1.63 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es6: true,
webextensions: true
},
extends: [
"eslint:recommended",
"plugin:mozilla/recommended"
],
globals: {
CONNECTING_HTTP_REQUEST: false,
escapedTemplate: false,
debuggingMode: true,
DEFAULT_AUTORENEW: false,
DEFAULT_REMINDER: false,
DOH_URI: false,
DOH_BOOTSTRAP_ADDRESS: false,
FXA_DEVICE_LIMIT: false,
FXA_ERR_AUTH: false,
FXA_ERR_GEO: false,
FXA_ERR_NETWORK: false,
FXA_OK: false,
FXA_PAYMENT_REQUIRED: false,
fxaCryptoRelier: false,
log: false,
MODE_3RD_PARTY_TRACKER_ONLY: false,
MODE_ALL: false,
MODE_TRACKER_ONLY: false,
PROXY_STATE_ACTIVE: false,
PROXY_STATE_AUTHFAILURE: false,
PROXY_STATE_CAPTIVE: false,
PROXY_STATE_CONNECTING: false,
PROXY_STATE_DEVICELIMIT: false,
PROXY_STATE_GEOFAILURE: false,
PROXY_STATE_INACTIVE: false,
PROXY_STATE_LOADING: false,
PROXY_STATE_OFFLINE: false,
PROXY_STATE_ONBOARDING: false,
PROXY_STATE_OTHERINUSE: false,
PROXY_STATE_PAYMENTREQUIRED: false,
PROXY_STATE_PROXYAUTHFAILED: false,
PROXY_STATE_PROXYERROR: false,
PROXY_STATE_UNAUTHENTICATED: false,
Template: false,
ConfigUtils: false
},
parser: "babel-eslint",
parserOptions: {
ecmaVersion: 2018,
sourceType: "module"
},
plugins: [
"mozilla",
],
root: true,
ignorePatterns: ["vendor/", "node_modules/"],
rules: {
"prettier/prettier": "off",
"comma-dangle": ["off", "never"],
"eqeqeq": "error",
"no-console": "off",
"no-unused-vars": ["error", {vars: "local", args: "none"}],
"no-var": "error"
}
};