forked from paypal/paypal-checkout-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
57 lines (53 loc) · 1.49 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
/* @flow */
module.exports = {
'extends': "@krakenjs/eslint-config-grumbler/eslintrc-browser",
'globals': {
'Promise': false,
'__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,
'__FUNDING_ELIGIBILITY__': true,
'__INLINE_CHECKOUT_ELIGIBILITY__': 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',
'react/no-unused-prop-types': 'off'
},
"overrides": [
{
"files": ["test/**/*"],
"rules": {
'compat/compat': 'off',
'max-lines': 'off',
'no-restricted-globals': 'off',
'promise/no-native': 'off'
},
'globals': {
'document': true,
'performance': true,
'assert': true,
'beforeAll': true,
'afterAll': true,
'test': true,
'jest': true,
'page': true
},
}
],
};