diff --git a/eslint-suppressions.json b/eslint-suppressions.json index 54528e9466a..b95add1c978 100644 --- a/eslint-suppressions.json +++ b/eslint-suppressions.json @@ -1560,24 +1560,6 @@ "count": 3 } }, - "packages/notification-services-controller/src/NotificationServicesController/services/perp-notifications.ts": { - "@typescript-eslint/explicit-function-return-type": { - "count": 1 - }, - "id-length": { - "count": 1 - } - }, - "packages/notification-services-controller/src/NotificationServicesController/types/notification-api/notification-api.ts": { - "@typescript-eslint/naming-convention": { - "count": 18 - } - }, - "packages/notification-services-controller/src/NotificationServicesController/types/notification-api/schema.ts": { - "@typescript-eslint/naming-convention": { - "count": 70 - } - }, "packages/phishing-controller/src/BulkTokenScan.test.ts": { "@typescript-eslint/explicit-function-return-type": { "count": 2 diff --git a/packages/notification-services-controller/src/NotificationServicesController/services/perp-notifications.ts b/packages/notification-services-controller/src/NotificationServicesController/services/perp-notifications.ts index 1b28216776d..8ada9b65fcf 100644 --- a/packages/notification-services-controller/src/NotificationServicesController/services/perp-notifications.ts +++ b/packages/notification-services-controller/src/NotificationServicesController/services/perp-notifications.ts @@ -17,7 +17,7 @@ export const PERPS_API_CREATE_ORDERS = `${PERPS_API}/api/v1/orders`; export async function createPerpOrderNotification( bearerToken: string, orderInput: OrderInput, -) { +): Promise { try { await createServicePolicy().execute(async () => { return successfulFetch(PERPS_API_CREATE_ORDERS, { @@ -29,7 +29,7 @@ export async function createPerpOrderNotification( body: JSON.stringify(orderInput), }); }); - } catch (e) { - console.error('Failed to create perp order notification', e); + } catch (error) { + console.error('Failed to create perp order notification', error); } } diff --git a/packages/notification-services-controller/src/NotificationServicesController/types/notification-api/notification-api.ts b/packages/notification-services-controller/src/NotificationServicesController/types/notification-api/notification-api.ts index 2f7dd6b7b0d..5a366061031 100644 --- a/packages/notification-services-controller/src/NotificationServicesController/types/notification-api/notification-api.ts +++ b/packages/notification-services-controller/src/NotificationServicesController/types/notification-api/notification-api.ts @@ -1,3 +1,5 @@ +// Types derived from external Notification API schema - naming follows API conventions +/* eslint-disable @typescript-eslint/naming-convention */ import type { components } from './schema'; import type { TRIGGER_TYPES } from '../../constants/notification-schema'; import type { Compute } from '../type-utils'; diff --git a/packages/notification-services-controller/src/NotificationServicesController/types/notification-api/schema.ts b/packages/notification-services-controller/src/NotificationServicesController/types/notification-api/schema.ts index 6e88d18e507..ef3b5ea78f1 100644 --- a/packages/notification-services-controller/src/NotificationServicesController/types/notification-api/schema.ts +++ b/packages/notification-services-controller/src/NotificationServicesController/types/notification-api/schema.ts @@ -1,4 +1,6 @@ /* eslint-disable jsdoc/tag-lines */ +// Auto-generated from OpenAPI spec - naming follows API schema conventions +/* eslint-disable @typescript-eslint/naming-convention */ /** * This file was auto-generated by openapi-typescript.