Skip to content

Commit

Permalink
fix remaining linting errors
Browse files Browse the repository at this point in the history
- ignore shims.d.ts for communication-chat

- suppress errors about Buffer because "buffer" package is used for browser
  • Loading branch information
jeremymeng committed Aug 22, 2024
1 parent 4ab6590 commit 8882adb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/communication/communication-chat/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default [
{
ignores: ["src/shims.d.ts"],
},
...azsdkEslint.configs.recommended,
{
rules: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
Expand Down

0 comments on commit 8882adb

Please sign in to comment.