From 8882adbe9306039b9a10a7fc7051d6511d69beaf Mon Sep 17 00:00:00 2001 From: Jeremy Meng Date: Wed, 21 Aug 2024 15:21:19 -0700 Subject: [PATCH] fix remaining linting errors - ignore shims.d.ts for communication-chat - suppress errors about Buffer because "buffer" package is used for browser --- sdk/communication/communication-chat/eslint.config.mjs | 3 +++ .../src/eventGridNamespacesPublishBinaryMode.ts | 1 + .../test/public/eventGridNamespacesClient.spec.ts | 1 + 3 files changed, 5 insertions(+) diff --git a/sdk/communication/communication-chat/eslint.config.mjs b/sdk/communication/communication-chat/eslint.config.mjs index ed9d999f0fc1..6c3b3c4919fb 100644 --- a/sdk/communication/communication-chat/eslint.config.mjs +++ b/sdk/communication/communication-chat/eslint.config.mjs @@ -1,6 +1,9 @@ import azsdkEslint from "@azure/eslint-plugin-azure-sdk"; export default [ + { + ignores: ["src/shims.d.ts"], + }, ...azsdkEslint.configs.recommended, { rules: { diff --git a/sdk/eventgrid/eventgrid-namespaces/src/eventGridNamespacesPublishBinaryMode.ts b/sdk/eventgrid/eventgrid-namespaces/src/eventGridNamespacesPublishBinaryMode.ts index 8181a6bd939e..2df85286a311 100644 --- a/sdk/eventgrid/eventgrid-namespaces/src/eventGridNamespacesPublishBinaryMode.ts +++ b/sdk/eventgrid/eventgrid-namespaces/src/eventGridNamespacesPublishBinaryMode.ts @@ -10,6 +10,7 @@ import { import { StreamableMethod, operationOptionsToRequestParameters } from "@azure-rest/core-client"; import { PublishCloudEventOptionalParams } from "./cadl-generated/models/options"; import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; +// eslint-disable-next-line @typescript-eslint/no-redeclare import { Buffer } from "buffer"; import { CloudEvent } from "./cadl-generated"; diff --git a/sdk/eventgrid/eventgrid-namespaces/test/public/eventGridNamespacesClient.spec.ts b/sdk/eventgrid/eventgrid-namespaces/test/public/eventGridNamespacesClient.spec.ts index b1edde11a1eb..b806dd9e5989 100644 --- a/sdk/eventgrid/eventgrid-namespaces/test/public/eventGridNamespacesClient.spec.ts +++ b/sdk/eventgrid/eventgrid-namespaces/test/public/eventGridNamespacesClient.spec.ts @@ -13,6 +13,7 @@ import { EventGridDeserializer, } from "../../src"; import { createRecordedClient } from "./utils/recordedClient"; +// eslint-disable-next-line @typescript-eslint/no-redeclare import { Buffer } from "buffer"; /* eslint no-constant-condition: "off" */ async function clearMessages(receiverClient: EventGridReceiverClient): Promise {