Skip to content

Commit 84a5a5e

Browse files
authored
chore: prettier (paypal#2118)
* chore: prettier * chore: update commit hook
1 parent a4e2a58 commit 84a5a5e

File tree

294 files changed

+59354
-38426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

294 files changed

+59354
-38426
lines changed

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
test/integration/vendor
22
dist
3-
node_modules
3+
node_modules

.eslintrc.js

+50-50
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
11
/* @flow */
22

33
module.exports = {
4-
'extends': "@krakenjs/eslint-config-grumbler/eslintrc-browser",
4+
extends: "@krakenjs/eslint-config-grumbler/eslintrc-browser",
55

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+
},
2424

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+
},
3535

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+
],
5757
};

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Owner for everything in the repo
2-
* @paypal/checkout-sdk
2+
* @paypal/checkout-sdk

.github/ISSUE_TEMPLATE/1-bug-report.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
---
22
name: 🐞 Bug report
3-
about: Report a bug in the PayPal JavaScript SDK (https://www.paypal.com/sdk/js).
3+
about:
4+
Report a bug in the PayPal JavaScript SDK (https://www.paypal.com/sdk/js).
45
Before you create a new issue, please search for similar issues. It's possible somebody
56
has encountered this bug already.
67
title: "[Bug] Bug report"
7-
labels: 'bug'
8-
assignees: ''
9-
8+
labels: "bug"
9+
assignees: ""
1010
---
1111

1212
### 🐞 Describe the Bug
13+
1314
A clear and concise description of what the bug is.
1415

1516
### 🔬 Minimal Reproduction
17+
1618
Describe steps to reproduce. If possible, please, share a link with a minimal reproduction.
1719

1820
### 😕 Actual Behavior
21+
1922
A clear and concise description of what is happening. Please include console logs during the time of the issue, especially error messages.
2023

2124
### 🤔 Expected Behavior
25+
2226
A clear and concise description of what you expected to happen.
2327

2428
### 🌍 Environment
@@ -28,6 +32,7 @@ A clear and concise description of what you expected to happen.
2832
- SDK version (`window.paypal.version`): -
2933

3034
### Affected browsers
35+
3136
What browser(s) are affected?
3237

3338
<!--
@@ -43,4 +48,5 @@ What browser(s) are affected?
4348
-->
4449

4550
### ➕ Additional Context
51+
4652
Add any other context about the problem here. Screenshots or videos that show the issue are very helpful.

.github/ISSUE_TEMPLATE/2-documentation-issue-report.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,26 @@
22
name: 📙 Documentation issue report
33
about: Report an issue in PayPal Developer Docs.
44
title: "[Documentation] Documentation issue report"
5-
labels: 'docs'
6-
assignees: ''
7-
5+
labels: "docs"
6+
assignees: ""
87
---
98

109
### 📙 Describe the Issue
10+
1111
A clear and concise description of what the issue is.
1212

1313
### 🔬 Minimal Reproduction
14+
1415
Please, share a link to the page with the documentation and share steps to reproduce.
1516

1617
### 😕 Actual Behavior
18+
1719
A clear and concise description of what is happening.
1820

1921
### 🤔 Expected Behavior
22+
2023
A clear and concise description of what you expected to happen.
2124

2225
### ➕ Additional Context
26+
2327
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/3-feature-request.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
name: 🚀 Feature request
33
about: Suggest an idea to us!
44
title: "[Feature] Feature request"
5-
labels: 'feature'
6-
assignees: ''
7-
5+
labels: "feature"
6+
assignees: ""
87
---
98

109
### 🚀 Feature Proposal
@@ -17,4 +16,4 @@ Please outline the motivation for the proposal.
1716

1817
### Example
1918

20-
Please provide an example for how this feature would be used.
19+
Please provide an example for how this feature would be used.

.github/ISSUE_TEMPLATE/4-other.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
name: Other
33
about: Report an issue that does not fit any of the categoroes above.
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---

.github/pull_request_template.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<!-- Are there any additional considerations when deploying this change to production? -->
1616

1717
### Groups who should review (if applicable)
18+
1819
<!-- For cross-team internal contributors, please tag a group or individual from your team who should review this PR -->
1920

20-
❤️ Thank you!
21+
❤️ Thank you!

.github/renovate.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
{
2-
"extends": [
3-
"config:base",
4-
":preserveSemverRanges"
5-
],
2+
"extends": ["config:base", ":preserveSemverRanges"],
63
"prCreation": "immediate",
74
"prHourlyLimit": 0,
85
"rangeStrategy": "status-success",
96
"separateMajorMinor": false,
107
"semanticCommits": true,
118
"timezone": "America/Los_Angeles",
129
"rebaseStalePrs": true,
13-
"labels": [
14-
":christmas_tree: dependencies"
15-
],
10+
"labels": [":christmas_tree: dependencies"],
1611
"ignoreDeps": ["flow-bin"],
1712
"packageRules": [
1813
{

.github/workflows/lock.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Lock outdated threads"
22

33
on:
44
schedule:
5-
- cron: '0 0 * * *'
5+
- cron: "0 0 * * *"
66

77
jobs:
88
lock:
@@ -11,12 +11,12 @@ jobs:
1111
- uses: dessant/lock-threads@v3
1212
with:
1313
github-token: ${{ github.token }}
14-
exclude-issue-created-before: '2018-01-01T00:00:00Z'
15-
issue-inactive-days: '365'
16-
exclude-any-issue-labels: 'sdk-core, feature, work-in-progress, help-wanted'
17-
add-issue-labels: 'outdated'
14+
exclude-issue-created-before: "2018-01-01T00:00:00Z"
15+
issue-inactive-days: "365"
16+
exclude-any-issue-labels: "sdk-core, feature, work-in-progress, help-wanted"
17+
add-issue-labels: "outdated"
1818
issue-comment: >
1919
This issue has been automatically locked since there
2020
has not been any recent activity after it was closed.
2121
Please open a new issue for related bugs.
22-
process-only: 'issues'
22+
process-only: "issues"

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/setup-node@v3
2020
with:
2121
node-version: ${{ env.NVMRC }}
22-
registry-url: 'https://registry.npmjs.org'
22+
registry-url: "https://registry.npmjs.org"
2323

2424
- name: 📥 Download deps
2525
uses: bahmutov/npm-install@v1

.prettierignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build
2+
dist
3+
coverage
4+
flow-typed
5+
CHANGELOG.md

.prettierrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

CODE_OF_CONDUCT.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

CONTRIBUTING.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Feel free to raise a pull request to us. Our team would review your proposed mod
66
your changes into our code. Ideas and other comments are also welcome.
77

88
## Getting Started
9+
910
1. Create your own [fork](https://help.github.com/articles/fork-a-repo) of this [repository](../../fork).
11+
1012
```bash
1113
# Clone it
1214
$ git clone [email protected]:me/paypal-checkout.git
@@ -28,10 +30,12 @@ $ npm test
2830
```
2931

3032
## Making Changes
33+
3134
1. Make sure that your changes adhere to the current coding conventions used throughout the project, indentation, accurate comments, etc.
3235
2. Ensure existing tests pass (`$ npm test`) and include test cases which fail without your change and succeed with it.
3336

3437
## Submitting Changes
38+
3539
1. Ensure that no errors are generated by ESLint (run during `$ npm test`).
3640
2. Commit your changes in logical chunks, i.e. keep your changes small per single commit.
3741
3. Locally merge (or rebase) the upstream branch into your topic branch: `$ git pull upstream && git merge`.

0 commit comments

Comments
 (0)