forked from eface2face/mimemessage.js
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
55 lines (54 loc) · 2 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
{
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true,
"commonjs": true
},
"globals": {
"openpgp": true,
"asmCrypto": true
},
"rules": {
"object-shorthand": ["error", "always", { "avoidExplicitReturnArrows": true }],
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "never"],
"no-shadow": ["off", { "hoist": "never", "builtinGlobals": true }],
"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.", "newIsCapExceptions": ["vCard"] }],
"no-mixed-operators": ["error", {"groups": [["&", "|", "^", "~", "<<", ">>", ">>>"], ["&&", "||"]]}],
"no-return-assign": "off",
"max-len": ["error", { "ignoreComments": true, "code": 120, "ignoreStrings": true, "ignoreTemplateLiterals": true, "ignoreRegExpLiterals": true }],
"consistent-return": "off",
"default-case": "off",
"no-plusplus": "off",
"no-bitwise": "off",
"no-debugger": "off",
"prefer-template": "off",
"class-methods-use-this": "off",
"func-names": ["off", "never"],
"prefer-destructuring": "off",
"function-paren-newline": "off",
"prefer-promise-reject-errors": "off",
"no-console": "off",
"object-curly-newline": "off",
"space-before-function-paren": "off",
"global-require": "off",
"indent": "off",
"import/no-unresolved": [2, {"commonjs": true, "amd": true}],
"import/named": 2,
"import/namespace": 2,
"import/default": 2,
"import/export": 2,
"operator-linebreak": "off",
"implicit-arrow-linebreak": "off",
"no-restricted-globals": ["error", "event"]
}
}