|
1 | 1 | /* @flow */
|
2 | 2 |
|
3 | 3 | module.exports = {
|
4 |
| - 'extends': "@krakenjs/eslint-config-grumbler/eslintrc-browser", |
| 4 | + extends: "@krakenjs/eslint-config-grumbler/eslintrc-browser", |
5 | 5 |
|
6 |
| - 'globals': { |
7 |
| - 'Promise': false, |
8 |
| - '__PAYPAL_CHECKOUT__': true, |
9 |
| - '__sdk__': true, |
10 |
| - '__LOCALE__': true, |
11 |
| - '__CLIENT_ID__': true, |
12 |
| - '__MERCHANT_ID__': true, |
13 |
| - '__INTENT__': true, |
14 |
| - '__COMMIT__': true, |
15 |
| - '__VAULT__': true, |
16 |
| - '__PORT__': true, |
17 |
| - '__STAGE_HOST__': true, |
18 |
| - '__HOST__': true, |
19 |
| - '__PATH__': true, |
20 |
| - '__COMPONENTS__': true, |
21 |
| - '__FUNDING_ELIGIBILITY__': true, |
22 |
| - '__INLINE_CHECKOUT_ELIGIBILITY__': true |
23 |
| - }, |
| 6 | + globals: { |
| 7 | + Promise: false, |
| 8 | + __PAYPAL_CHECKOUT__: true, |
| 9 | + __sdk__: true, |
| 10 | + __LOCALE__: true, |
| 11 | + __CLIENT_ID__: true, |
| 12 | + __MERCHANT_ID__: true, |
| 13 | + __INTENT__: true, |
| 14 | + __COMMIT__: true, |
| 15 | + __VAULT__: true, |
| 16 | + __PORT__: true, |
| 17 | + __STAGE_HOST__: true, |
| 18 | + __HOST__: true, |
| 19 | + __PATH__: true, |
| 20 | + __COMPONENTS__: true, |
| 21 | + __FUNDING_ELIGIBILITY__: true, |
| 22 | + __INLINE_CHECKOUT_ELIGIBILITY__: true, |
| 23 | + }, |
24 | 24 |
|
25 |
| - 'rules': { |
26 |
| - 'complexity': 'off', |
27 |
| - 'max-nested-callbacks': [ 'error', 5 ], |
28 |
| - 'react/prop-types': 'off', |
29 |
| - 'react/style-prop-object': 'off', |
30 |
| - 'react/display-name': 'off', |
31 |
| - 'react/require-default-props': 'off', |
32 |
| - 'react/forbid-component-props': 'off', |
33 |
| - 'react/no-unused-prop-types': 'off' |
34 |
| - }, |
| 25 | + rules: { |
| 26 | + complexity: "off", |
| 27 | + "max-nested-callbacks": ["error", 5], |
| 28 | + "react/prop-types": "off", |
| 29 | + "react/style-prop-object": "off", |
| 30 | + "react/display-name": "off", |
| 31 | + "react/require-default-props": "off", |
| 32 | + "react/forbid-component-props": "off", |
| 33 | + "react/no-unused-prop-types": "off", |
| 34 | + }, |
35 | 35 |
|
36 |
| - "overrides": [ |
37 |
| - { |
38 |
| - "files": ["test/**/*"], |
39 |
| - "rules": { |
40 |
| - 'compat/compat': 'off', |
41 |
| - 'max-lines': 'off', |
42 |
| - 'no-restricted-globals': 'off', |
43 |
| - 'promise/no-native': 'off' |
44 |
| - }, |
45 |
| - 'globals': { |
46 |
| - 'document': true, |
47 |
| - 'performance': true, |
48 |
| - 'assert': true, |
49 |
| - 'beforeAll': true, |
50 |
| - 'afterAll': true, |
51 |
| - 'test': true, |
52 |
| - 'jest': true, |
53 |
| - 'page': true |
54 |
| - }, |
55 |
| - } |
56 |
| - ], |
| 36 | + overrides: [ |
| 37 | + { |
| 38 | + files: ["test/**/*"], |
| 39 | + rules: { |
| 40 | + "compat/compat": "off", |
| 41 | + "max-lines": "off", |
| 42 | + "no-restricted-globals": "off", |
| 43 | + "promise/no-native": "off", |
| 44 | + }, |
| 45 | + globals: { |
| 46 | + document: true, |
| 47 | + performance: true, |
| 48 | + assert: true, |
| 49 | + beforeAll: true, |
| 50 | + afterAll: true, |
| 51 | + test: true, |
| 52 | + jest: true, |
| 53 | + page: true, |
| 54 | + }, |
| 55 | + }, |
| 56 | + ], |
57 | 57 | };
|
0 commit comments