From f120d36e104c3edbc981da943be023079713a64e Mon Sep 17 00:00:00 2001 From: Farrin Reid Date: Thu, 4 Apr 2024 12:55:05 -0700 Subject: [PATCH] fix: lint fixes --- .xo-config.json | 4 +++- src/clients/core/organizationmemberships.js | 18 +++++++++--------- src/clients/core/tickets.js | 3 ++- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.xo-config.json b/.xo-config.json index 8ec5ec02..4fb184c5 100644 --- a/.xo-config.json +++ b/.xo-config.json @@ -65,7 +65,9 @@ "custom_role", "http_method", "request_format", - "client_id" + "client_id", + "organization_membership", + "organization_memberships" ] } ] diff --git a/src/clients/core/organizationmemberships.js b/src/clients/core/organizationmemberships.js index 684fce31..d5422dd8 100644 --- a/src/clients/core/organizationmemberships.js +++ b/src/clients/core/organizationmemberships.js @@ -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, + }); } /** @@ -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, + }); } /** @@ -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, + }); } /** diff --git a/src/clients/core/tickets.js b/src/clients/core/tickets.js index d1646362..78795a24 100644 --- a/src/clients/core/tickets.js +++ b/src/clients/core/tickets.js @@ -2,8 +2,9 @@ const {Client} = require('../client'); /** - * @typedef {T extends object ? { [K in keyof T]?: RecursivePartial } : T} RecursivePartial + * @typedef {object} RecursivePartial * @template T + * @property {T[P]} [P] - The property of the object. */ /**