forked from ProtonMail/WebClients
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
85 lines (84 loc) · 2.62 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"extends": "airbnb-base",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"commonjs": true,
"jasmine": true,
"es6": true
},
"globals": {
"isNaN": true,
"require": true,
"angular": true,
"noUiSlider": true,
"Awesomplete": true,
"Brick": true,
"MailParser": true,
"moment": true,
"openpgp": true,
"jQuery": true,
"Mousetrap": true,
"_rAF": true,
"base32": true,
"$": true,
"Cypress": true,
"cy": true,
"after": true,
"before": 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",
"import/prefer-default-export": "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-await-in-loop": "off",
"no-restricted-globals": ["error", "event"],
"no-restricted-syntax": ["error", "WithStatement"]
},
"overrides": [
{
"files": ["*Modal.js"],
"rules": {
"object-shorthand": "off"
}
}
]
}