Skip to content

Commit 144a6a9

Browse files
author
Laura Lebovic
committed
Fix ShipIt lint errors
1 parent f72c9de commit 144a6a9

File tree

8 files changed

+22
-20
lines changed

8 files changed

+22
-20
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ node_modules/
1717
.eslintcache
1818

1919
# dotenv environment variables file
20-
.env
20+
.env

.sample.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ SHOP_URL=
2525
# Preferred port
2626
PORT=3000
2727

28-
# note: .env is a shell file so there can't be spaces around =
28+
# note: .env is a shell file so there can't be spaces around =

app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ app.get("/profile", (req, res) => {
163163
Profile.setPersonas();
164164
res.write(`<p>Set Personas for ${config.appId}</p>`);
165165
res.write(
166-
"<p>To persist the personas, add the following variables to your environment variables:</p>"
166+
"<p>To persist the personas, add the following variables \
167+
to your environment variables:</p>"
167168
);
168169
res.write("<ul>");
169170
res.write(`<li>PERSONA_BILLING = ${config.personaBilling.id}</li>`);

public/style.css

-4
This file was deleted.

services/care.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = class Care {
4848
);
4949
break;
5050
case "CARE_ORDER":
51-
// Send using Persona 1 and hand over to agent 1 to handle the conversation via HOP
51+
// Send using the Persona for order issues
5252

5353
response = [
5454
Response.genTextWithPersona(
@@ -68,7 +68,7 @@ module.exports = class Care {
6868
break;
6969

7070
case "CARE_BILLING":
71-
// Send using Persona 2 and hand over to agent 2 to handle the conversation via HOP
71+
// Send using the Persona for billing issues
7272

7373
response = [
7474
Response.genTextWithPersona(
@@ -88,7 +88,7 @@ module.exports = class Care {
8888
break;
8989

9090
case "CARE_SALES":
91-
// Send using Persona 3 and hand over to agent 3 to handle the conversation via HOP
91+
// Send using the Persona for sales questions
9292

9393
response = [
9494
Response.genTextWithPersona(
@@ -107,7 +107,7 @@ module.exports = class Care {
107107
break;
108108

109109
case "CARE_OTHER":
110-
// Send using Persona 4 and hand over to agent 4 to handle the conversation via HOP
110+
// Send using the Persona for customer care issues
111111

112112
response = [
113113
Response.genTextWithPersona(

services/graph-api.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ module.exports = class GraphAPi {
6060

6161
static callSubscriptionsAPI() {
6262
// Send the HTTP request to the Subscriptions Edge to configure your webhook
63-
// You can use the Graph API's /{app-id}/subscriptions edge to configure and manage your app's Webhooks product
63+
// You can use the Graph API's /{app-id}/subscriptions edge to configure and
64+
// manage your app's Webhooks product
6465
// https://developers.facebook.com/docs/graph-api/webhooks/subscriptions-edge
6566
console.log(
6667
`Setting app ${config.appId} callback url to ${config.webhookUrl}`
@@ -74,7 +75,8 @@ module.exports = class GraphAPi {
7475
callback_url: config.webhookUrl,
7576
verify_token: config.verifyToken,
7677
fields:
77-
"messages, messaging_postbacks, messaging_optins, message_deliveries, messaging_referrals",
78+
"messages, messaging_postbacks, messaging_optins, \
79+
message_deliveries, messaging_referrals ",
7880
include_values: "true"
7981
},
8082
method: "POST"
@@ -91,7 +93,8 @@ module.exports = class GraphAPi {
9193

9294
static callSubscribedApps() {
9395
// Send the HTTP request to subscribe an app for Webhooks for Pages
94-
// You can use the Graph API's /{page-id}/subscribed_apps edge to configure and manage your pages subscriptions
96+
// You can use the Graph API's /{page-id}/subscribed_apps edge to configure
97+
// and manage your pages subscriptions
9598
// https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps
9699
console.log(`Subscribing app ${config.appId} to page ${config.pageId}`);
97100
request(
@@ -100,7 +103,8 @@ module.exports = class GraphAPi {
100103
qs: {
101104
access_token: config.pageAccesToken,
102105
subscribed_fields:
103-
"messages, messaging_postbacks, messaging_optins, message_deliveries, messaging_referrals"
106+
"messages, messaging_postbacks, messaging_optins, \
107+
message_deliveries, messaging_referrals "
104108
},
105109
method: "POST"
106110
},

services/receive.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ module.exports = class Receive {
5050
} catch (error) {
5151
console.error(error);
5252
responses = {
53-
text: `An error has occured: '${error}'. We have been notified and will fix the issue shortly!`
53+
text: `An error has occured: '${error}'. We have been notified and \
54+
will fix the issue shortly!`
5455
};
5556
}
5657

@@ -68,7 +69,7 @@ module.exports = class Receive {
6869
// Handles messages events with text
6970
handleTextMessage() {
7071
console.log(
71-
"Recieved text:",
72+
"Received text:",
7273
`${this.webhookEvent.message.text} for ${this.user.psid}`
7374
);
7475

services/survey.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ module.exports = class Survey {
2222
}),
2323
[
2424
{
25-
title: "😀",
25+
title: "\uD83D\uDE00",
2626
payload: "CSAT_GOOD"
2727
},
2828
{
29-
title: "🙂",
29+
title: "\uD83D\uDE42",
3030
payload: "CSAT_AVERAGE"
3131
},
3232
{
33-
title: "🙁",
33+
title: "\uD83D\uDE41",
3434
payload: "CSAT_BAD"
3535
}
3636
]

0 commit comments

Comments
 (0)