Skip to content

Commit

Permalink
Change prettier trailingComma config to es5
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinLeeGordon committed Feb 8, 2019
1 parent c736bb0 commit 456627b
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"singleQuote": true,
"semi": false,
"printWidth": 80,
"trailingComma": "all",
"trailingComma": "es5",
"endOfLine": "crlf"
}
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const EventEmitter = require('events').EventEmitter
const Bottleneck = require('bottleneck')
const limiter = new Bottleneck({
maxConcurrent: 9,
minTime: 1000,
minTime: 1000 / 8,
})

const debug = require('debug')('hubspot:client')
Expand Down Expand Up @@ -130,7 +130,7 @@ class Client extends EventEmitter {
this.updateApiLimit(res)
return res
})
.then(res => res.body),
.then(res => res.body)
) // limit the number of concurrent requests
})
}
Expand Down
2 changes: 1 addition & 1 deletion lib/company.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Company {
addContactToCompany(data) {
if (!data || !data.companyId || !data.contactVid) {
return Promise.reject(
new Error('companyId and contactVid params must be provided'),
new Error('companyId and contactVid params must be provided')
)
}

Expand Down
2 changes: 1 addition & 1 deletion lib/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class List {
}
if (!contactBody) {
return Promise.reject(
new Error('contactBody parameter must be provided.'),
new Error('contactBody parameter must be provided.')
)
}

Expand Down
4 changes: 2 additions & 2 deletions lib/typescript/deal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ declare class Deal {
associate(
id: number,
objectType: string,
associatedObjectId: number,
associatedObjectId: number
): RequestPromise

removeAssociation(
id: number,
objectType: string,
associatedObjectId: number,
associatedObjectId: number
): RequestPromise

properties: Properties
Expand Down
2 changes: 1 addition & 1 deletion test/contact_properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe('contacts.properties', function() {
.upsert(contactPropertyProperties)
.then(data => {
expect(data.description).to.eq(
contactPropertyProperties.description,
contactPropertyProperties.description
)
})
})
Expand Down
4 changes: 2 additions & 2 deletions test/contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const emailsFromContacts = contacts =>
contacts.flatMap(contact =>
contact['identity-profiles'].map(
profile =>
profile.identities.find(identity => identity.type === 'EMAIL').value,
),
profile.identities.find(identity => identity.type === 'EMAIL').value
)
)

describe('contacts', function() {
Expand Down
10 changes: 5 additions & 5 deletions test/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('lists', function() {
before(function() {
if (process.env.NOCK_OFF) {
return createTestList(listProperties).then(
data => (listId = data.listId),
data => (listId = data.listId)
)
}
})
Expand Down Expand Up @@ -104,7 +104,7 @@ describe('lists', function() {
before(function() {
if (process.env.NOCK_OFF) {
return createTestList(listProperties).then(
data => (listId = data.listId),
data => (listId = data.listId)
)
}
})
Expand All @@ -128,7 +128,7 @@ describe('lists', function() {
before(function() {
if (process.env.NOCK_OFF) {
return createTestList(listProperties).then(
data => (listId = data.listId),
data => (listId = data.listId)
)
}
})
Expand Down Expand Up @@ -172,7 +172,7 @@ describe('lists', function() {
before(function() {
if (process.env.NOCK_OFF) {
return createTestList(listProperties).then(
data => (listId = data.listId),
data => (listId = data.listId)
)
}
})
Expand Down Expand Up @@ -263,7 +263,7 @@ describe('lists', function() {
})
.catch(error => {
expect(error.message).to.equal(
'contactBody parameter must be provided.',
'contactBody parameter must be provided.'
)
})
})
Expand Down
6 changes: 3 additions & 3 deletions test/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('timeline', function() {
name: 'NumericProperty',
label: 'Numeric Property',
propertyType: 'Numeric',
},
}
)

describe('createEventType', () => {
Expand Down Expand Up @@ -145,7 +145,7 @@ describe('timeline', function() {
return createEventType().then(data => {
eventTypeId = data.id
return createEventTypeProperty(eventTypeId).then(
data => (eventTypePropertyId = data.id),
data => (eventTypePropertyId = data.id)
)
})
}
Expand All @@ -161,7 +161,7 @@ describe('timeline', function() {
name: 'NumericProperty',
label: 'A new label',
propertyType: 'Numeric',
},
}
)
.then(data => {
expect(data.label).to.eq('A new label')
Expand Down
2 changes: 1 addition & 1 deletion test/workflows.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('workflows', function() {
const firstContact = data.contacts[0]
contactId = firstContact.vid
contactEmail = firstContact['identity-profiles'][0].identities.find(
obj => obj.type === 'EMAIL',
obj => obj.type === 'EMAIL'
).value
})
})
Expand Down

0 comments on commit 456627b

Please sign in to comment.