Skip to content

Commit

Permalink
fix: lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blakmatrix committed Apr 4, 2024
1 parent c8e7587 commit f120d36
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .xo-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
"custom_role",
"http_method",
"request_format",
"client_id"
"client_id",
"organization_membership",
"organization_memberships"
]
}
]
Expand Down
18 changes: 9 additions & 9 deletions src/clients/core/organizationmemberships.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ class OrganizationMemberships extends Client {
* const newMembership = await client.organizationmemberships.create({ user_id: 123, organization_id: 456 });
*/
async create(organizationMembership) {
return this.post(['organization_memberships'], { organization_membership: organizationMembership });
return this.post(['organization_memberships'], {
organization_membership: organizationMembership,
});
}

/**
Expand All @@ -110,10 +112,9 @@ class OrganizationMemberships extends Client {
* const newMembership = await client.organizationmemberships.createByUser(123, { organization_id: 456 });
*/
async createByUser(userID, organizationMembership) {
return this.post(
['users', userID, 'organization_memberships'],
{ organization_membership: organizationMembership },
);
return this.post(['users', userID, 'organization_memberships'], {
organization_membership: organizationMembership,
});
}

/**
Expand All @@ -134,10 +135,9 @@ class OrganizationMemberships extends Client {
* const jobStatus = await client.organizationmemberships.createMany([{ user_id: 123, organization_id: 456 }, ...]);
*/
async createMany(organizationMemberships) {
return this.post(
['organization_memberships', 'create_many'],
{ organization_memberships: organizationMemberships},
);
return this.post(['organization_memberships', 'create_many'], {
organization_memberships: organizationMemberships,
});
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/clients/core/tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
const {Client} = require('../client');

/**
* @typedef {T extends object ? { [K in keyof T]?: RecursivePartial<T[K]> } : T} RecursivePartial
* @typedef {object} RecursivePartial
* @template T
* @property {T[P]} [P] - The property of the object.
*/

/**
Expand Down

0 comments on commit f120d36

Please sign in to comment.