-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use prettier for code formatting (#137)
- Loading branch information
Showing
61 changed files
with
4,570 additions
and
3,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{ | ||
"source": "./src", | ||
"destination": "./dist/docs", | ||
"plugins": [{ | ||
"name": "esdoc-standard-plugin" | ||
},{ | ||
"name": "esdoc-flow-type-plugin", | ||
"option": { | ||
"enable": true | ||
"plugins": [ | ||
{ | ||
"name": "esdoc-standard-plugin" | ||
}, | ||
{ | ||
"name": "esdoc-flow-type-plugin", | ||
"option": { | ||
"enable": true | ||
} | ||
} | ||
}] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
/* @flow */ | ||
|
||
module.exports = { | ||
'extends': './node_modules/@krakenjs/grumbler-scripts/config/.eslintrc-browser.js', | ||
extends: | ||
"./node_modules/@krakenjs/grumbler-scripts/config/.eslintrc-browser.js", | ||
|
||
globals: { | ||
__STAGE__: true, | ||
__VERSION__: true, | ||
globals: { | ||
__STAGE__: true, | ||
__VERSION__: true, | ||
|
||
__PROTOCOL__: true, | ||
__SDK_HOST__: true, | ||
__HOST__: true, | ||
__HOSTNAME__: true, | ||
__PORT__: true, | ||
__PATH__: true, | ||
__STAGE_HOST__: true, | ||
__SERVICE_STAGE_HOST__: true, | ||
__CORRELATION_ID__: true, | ||
__NAMESPACE__: true, | ||
__COMPONENTS__: true, | ||
__FUNDING_ELIGIBILITY__: true, | ||
__PAYPAL_DOMAIN__: true, | ||
__PAYPAL_API_DOMAIN__: true | ||
} | ||
__PROTOCOL__: true, | ||
__SDK_HOST__: true, | ||
__HOST__: true, | ||
__HOSTNAME__: true, | ||
__PORT__: true, | ||
__PATH__: true, | ||
__STAGE_HOST__: true, | ||
__SERVICE_STAGE_HOST__: true, | ||
__CORRELATION_ID__: true, | ||
__NAMESPACE__: true, | ||
__COMPONENTS__: true, | ||
__FUNDING_ELIGIBILITY__: true, | ||
__PAYPAL_DOMAIN__: true, | ||
__PAYPAL_API_DOMAIN__: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ coverage: | |
project: | ||
default: | ||
target: 50% | ||
client: | ||
client: | ||
target: 50% | ||
flags: | ||
- client | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
dist | ||
coverage | ||
flow-typed | ||
CHANGELOG.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,9 @@ Feel free to raise a pull request to us. Our team would review your proposed mod | |
your changes into our code. Ideas and other comments are also welcome. | ||
|
||
## Getting Started | ||
|
||
1. Create your own [fork](https://help.github.com/articles/fork-a-repo) of this [repository](../../fork). | ||
|
||
```bash | ||
# Clone it | ||
$ git clone [email protected]:paypal/paypal-sdk-client.git | ||
|
@@ -30,12 +32,14 @@ $ npm run-script cover | |
``` | ||
|
||
## Making Changes | ||
|
||
1. Make sure that your changes adhere to the current coding conventions used throughout the project, indentation, accurate comments, etc. | ||
2. Lint your code regularly and ensure it passes prior to submitting a PR: | ||
`$ npm run lint`. | ||
`$ npm run lint`. | ||
3. Ensure existing tests pass (`$ npm test`) and include test cases which fail without your change and succeed with it. | ||
|
||
## Submitting Changes | ||
|
||
1. Ensure that no errors are generated by ESLint. | ||
2. Commit your changes in logical chunks, i.e. keep your changes small per single commit. | ||
3. Locally merge (or rebase) the upstream branch into your topic branch: `$ git pull upstream && git merge`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
We take security very seriously and ask that you follow the following process. | ||
|
||
|
||
## Contact us | ||
If you think you may have found a security bug we ask that you privately send the details to [email protected]. Please make sure to use a descriptive title in the email. | ||
|
||
If you think you may have found a security bug we ask that you privately send the details to [email protected]. Please make sure to use a descriptive title in the email. | ||
|
||
## Expectations | ||
We will generally get back to you within **24 hours**, but a more detailed response may take up to **48 hours**. If you feel we're not responding back in time, please send us a message *without detail* on Twitter [@kraken_js](https://twitter.com/kraken_js). | ||
|
||
We will generally get back to you within **24 hours**, but a more detailed response may take up to **48 hours**. If you feel we're not responding back in time, please send us a message _without detail_ on Twitter [@kraken_js](https://twitter.com/kraken_js). | ||
|
||
## History | ||
|
||
No reported issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* @flow */ | ||
|
||
// $FlowFixMe | ||
module.exports = require('./server'); // eslint-disable-line import/no-commonjs | ||
module.exports = require("./server"); // eslint-disable-line import/no-commonjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
/* @flow */ | ||
/* eslint import/no-default-export: off */ | ||
|
||
import { getKarmaConfig } from '@krakenjs/grumbler-scripts/config/karma.conf'; | ||
import { getKarmaConfig } from "@krakenjs/grumbler-scripts/config/karma.conf"; | ||
|
||
import { WEBPACK_CONFIG_TEST } from './webpack.config'; | ||
import { WEBPACK_CONFIG_TEST } from "./webpack.config"; | ||
|
||
export default function configKarma(karma : Object) { | ||
export default function configKarma(karma: Object) { | ||
const karmaConfig = getKarmaConfig(karma, { | ||
basePath: __dirname, | ||
webpack: WEBPACK_CONFIG_TEST, | ||
}); | ||
|
||
const karmaConfig = getKarmaConfig(karma, { | ||
basePath: __dirname, | ||
webpack: WEBPACK_CONFIG_TEST | ||
}); | ||
|
||
karma.set({ | ||
...karmaConfig, | ||
coverageReporter: { | ||
reporters: [ | ||
{ | ||
type: 'lcov', | ||
dir: 'coverage/karma' | ||
} | ||
] | ||
} | ||
}); | ||
karma.set({ | ||
...karmaConfig, | ||
coverageReporter: { | ||
reporters: [ | ||
{ | ||
type: "lcov", | ||
dir: "coverage/karma", | ||
}, | ||
], | ||
}, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.