-
Notifications
You must be signed in to change notification settings - Fork 29
/
.eslintrc.js
45 lines (42 loc) · 1009 Bytes
/
.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
/* @flow */
module.exports = {
extends: "@krakenjs/eslint-config-grumbler/eslintrc-browser",
globals: {
Promise: false,
__PAYPAL_CHECKOUT__: true,
__paypal_checkout__: true,
__sdk__: true,
__LOCALE__: true,
__CLIENT_ID__: true,
__MERCHANT_ID__: true,
__INTENT__: true,
__COMMIT__: true,
__VAULT__: true,
__PORT__: true,
__STAGE_HOST__: true,
__HOST__: true,
__PATH__: true,
__COMPONENTS__: true,
document: true,
performance: true,
assert: true,
beforeAll: true,
afterAll: true,
test: true,
jest: true,
page: true,
},
rules: {
complexity: "off",
"max-nested-callbacks": ["error", 5],
"react/prop-types": "off",
"react/style-prop-object": "off",
"react/display-name": "off",
"react/require-default-props": "off",
"react/forbid-component-props": "off",
"compat/compat": "off",
"max-lines": "off",
"no-restricted-globals": "off",
"promise/no-native": "off",
},
};