Skip to content

Commit 1d0216d

Browse files
authored
Use method definition syntax and fix glob pattern for prettier (#76)
1 parent 5788f93 commit 1d0216d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

advanced-integration/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 1",
99
"start": "nodemon server/server.js",
10-
"format": "npx prettier --write **.{js,md}",
11-
"format:check": "npx prettier --check **.{js,md}",
10+
"format": "npx prettier --write **/*.{js,md}",
11+
"format:check": "npx prettier --check **/*.{js,md}",
1212
"lint": "npx eslint server/*.js --env=node && npx eslint client/*.js --env=browser"
1313
},
1414
"license": "Apache-2.0",

standard-integration/client/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
window.paypal
22
.Buttons({
3-
createOrder: async () => {
3+
async createOrder() {
44
try {
55
const response = await fetch("/api/orders", {
66
method: "POST",
@@ -36,7 +36,7 @@ window.paypal
3636
resultMessage(`Could not initiate PayPal Checkout...<br><br>${error}`);
3737
}
3838
},
39-
onApprove: async (data, actions) => {
39+
async onApprove(data, actions) {
4040
try {
4141
const response = await fetch(`/api/orders/${data.orderID}/capture`, {
4242
method: "POST",

standard-integration/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 1",
99
"start": "nodemon server/server.js",
10-
"format": "npx prettier --write **.{js,md}",
11-
"format:check": "npx prettier --check **.{js,md}",
10+
"format": "npx prettier --write **/*.{js,md}",
11+
"format:check": "npx prettier --check **/*.{js,md}",
1212
"lint": "npx eslint server/*.js --env=node && npx eslint client/*.js --env=browser"
1313
},
1414
"license": "Apache-2.0",

0 commit comments

Comments
 (0)