forked from moisseev/rspamd-spamness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
77 lines (77 loc) · 2.54 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
{
"env": {
"browser": true
},
"extends": "eslint:all",
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"array-element-newline": ["error", "consistent"],
"camelcase": "off",
"capitalized-comments": "off",
"curly": "off",
"dot-location": ["error", "property"],
"func-names": "off",
"func-style": ["error", "declaration"],
"id-length": ["error", { "min": 1 }],
"key-spacing": ["error", { "align": "value" }],
"max-len": ["error", { "code": 120 }],
"max-lines": ["warn", 350],
"max-params": ["warn", 5],
"max-statements": ["warn", 40],
"multiline-ternary": ["error", "always-multiline"],
"new-cap": ["error", { "capIsNewExceptions": [
"BrowserOpenAddonsMgr",
"ConvertToUnicode",
"GetMsgHdrForKey",
"GetMessageHeader",
"MsgCopyMessage",
"MsgHdrToMimeMessage",
"MsgMoveMessage",
"QueryInterface"
]}],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 4 }],
"no-alert": "off",
"no-continue": "off",
"no-extra-parens": ["error", "functions"],
"no-implicit-globals": "off",
"no-magic-numbers": "off",
"no-mixed-operators": "off",
"no-plusplus": "off",
"no-ternary": "off",
"no-use-before-define": ["error", { "functions": false }],
"nonblock-statement-body-position": "off",
"object-curly-newline": ["error", { "consistent": true }],
"object-shorthand": "off",
"one-var": "off",
"padded-blocks": "off",
"prefer-arrow-callback": "off",
"prefer-named-capture-group": "off",
"prefer-template": "off",
"quote-props" : ["error", "consistent-as-needed"],
"require-jsdoc": "off",
"require-unicode-regexp": "off",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never"
}],
"strict": ["error", "global"],
"wrap-iife": ["error", "any"]
},
"globals": {
"AddonManager": false,
"BrowserOpenAddonsMgr": false,
"Components": false,
"FolderDisplayWidget": false,
"gDBView": false,
"gMessageDisplay": false,
"gMessageListeners": false,
"MailUtils": false,
"MsgCopyMessage": false,
"MsgHdrToMimeMessage": false,
"MsgMoveMessage": false,
"optionObserver": false,
"Services": false
}
}