forked from ProtonMail/WebClients
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
61 lines (61 loc) · 1.71 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
{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true,
"commonjs": true,
"jasmine": true,
"es6": true
},
"globals": {
"FastClick": true,
"angular": true,
"pmcrypto": true,
"noUiSlider": true,
"Awesomplete": true,
"QRCode": true,
"DOMPurify": true,
"MailParser": true,
"asmCrypto_bn": true,
"Squire": true,
"dcodeIO": true,
"Sieve": true,
"moment": true,
"openpgp": true,
"vCard": true,
"Papa": true,
"jQuery": true,
"Dropzone": true,
"Push": true,
"Mousetrap": true,
"_rAF": true,
"base32": true,
"$": true,
"_": true
},
"rules": {
"indent": ["error", 4, {"SwitchCase": 1}],
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "never"],
"no-shadow": ["off", { "hoist": "never", "builtinGlobals": true }],
"max-len": ["off", 120],
"array-bracket-spacing": ["off", "never"],
"object-property-newline": "off",
"no-sequences": "off",
"no-param-reassign": ["error", { "props": false }],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"padded-blocks": ["off", "always"],
"arrow-body-style": ["off", "as-needed"],
"no-use-before-define": ["error", { "functions": false, "classes": true }],
"new-cap": ["error", { "properties": true, "capIsNewExceptionPattern": "^Awesomplete." }],
"no-mixed-operators": ["error", {"groups": [["&", "|", "^", "~", "<<", ">>", ">>>"], ["&&", "||"]]}],
"no-return-assign": "off",
"consistent-return": "off",
"default-case": "off",
"no-plusplus": "off",
"no-bitwise": "off",
"no-debugger": "off",
"prefer-template": "off",
"class-methods-use-this": "off"
}
}