-
Notifications
You must be signed in to change notification settings - Fork 563
/
.eslintrc.js
55 lines (51 loc) · 1.15 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
/* @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,
},
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,
},
},
],
};