Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove eslint prettier utilities #1264

Merged
merged 3 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/ninety-terms-study.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
"chai-as-promised": "^7.1.1",
"esbuild": "0.19.11",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "3.4.1",
"eslint-plugin-simple-import-sort": "7.0.0",
"eslint-plugin-tsdoc": "0.2.17",
"husky": "^4.2.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe(compressString.name, () => {
it("should throw an error if compression fails", async () => {
const compressionErrorMsg = "compression error message";
const compressionError = new Error(compressionErrorMsg);
(gzip as unknown as jest.Mock).mockImplementationOnce(() => {
((gzip as unknown) as jest.Mock).mockImplementationOnce(() => {
throw compressionError;
});

Expand Down
4 changes: 2 additions & 2 deletions packages/middleware-compression/src/isStreaming.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jest.mock("@smithy/is-array-buffer");

describe(isStreaming.name, () => {
beforeEach(() => {
(isArrayBuffer as unknown as jest.Mock).mockReturnValue(true);
((isArrayBuffer as unknown) as jest.Mock).mockReturnValue(true);
});

afterEach(() => {
jest.clearAllMocks();
});

it("returns true when body is a stream", () => {
(isArrayBuffer as unknown as jest.Mock).mockReturnValue(false);
((isArrayBuffer as unknown) as jest.Mock).mockReturnValue(false);
// Mocking {} as a stream
const mockStream = {};
expect(isStreaming(mockStream)).toBe(true);
Expand Down
44 changes: 0 additions & 44 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5498,32 +5498,6 @@ __metadata:
languageName: node
linkType: hard

"eslint-config-prettier@npm:8.3.0":
version: 8.3.0
resolution: "eslint-config-prettier@npm:8.3.0"
peerDependencies:
eslint: ">=7.0.0"
bin:
eslint-config-prettier: bin/cli.js
checksum: df4cea3032671995bb5ab07e016169072f7fa59f44a53251664d9ca60951b66cdc872683b5c6a3729c91497c11490ca44a79654b395dd6756beb0c3903a37196
languageName: node
linkType: hard

"eslint-plugin-prettier@npm:3.4.1":
version: 3.4.1
resolution: "eslint-plugin-prettier@npm:3.4.1"
dependencies:
prettier-linter-helpers: ^1.0.0
peerDependencies:
eslint: ">=5.0.0"
prettier: ">=1.13.0"
peerDependenciesMeta:
eslint-config-prettier:
optional: true
checksum: fa6a89f0d7cba1cc87064352f5a4a68dc3739448dd279bec2bced1bfa3b704467e603d13b69dcec853f8fa30b286b8b715912898e9da776e1b016cf0ee48bd99
languageName: node
linkType: hard

"eslint-plugin-simple-import-sort@npm:7.0.0":
version: 7.0.0
resolution: "eslint-plugin-simple-import-sort@npm:7.0.0"
Expand Down Expand Up @@ -5808,13 +5782,6 @@ __metadata:
languageName: node
linkType: hard

"fast-diff@npm:^1.1.2":
version: 1.2.0
resolution: "fast-diff@npm:1.2.0"
checksum: 1b5306eaa9e826564d9e5ffcd6ebd881eb5f770b3f977fcbf38f05c824e42172b53c79920e8429c54eb742ce15a0caf268b0fdd5b38f6de52234c4a8368131ae
languageName: node
linkType: hard

"fast-glob@npm:^3.2.9":
version: 3.2.12
resolution: "fast-glob@npm:3.2.12"
Expand Down Expand Up @@ -9029,15 +8996,6 @@ __metadata:
languageName: node
linkType: hard

"prettier-linter-helpers@npm:^1.0.0":
version: 1.0.0
resolution: "prettier-linter-helpers@npm:1.0.0"
dependencies:
fast-diff: ^1.1.2
checksum: 00ce8011cf6430158d27f9c92cfea0a7699405633f7f1d4a45f07e21bf78e99895911cbcdc3853db3a824201a7c745bd49bfea8abd5fb9883e765a90f74f8392
languageName: node
linkType: hard

"prettier@npm:2.2.1":
version: 2.2.1
resolution: "prettier@npm:2.2.1"
Expand Down Expand Up @@ -9902,8 +9860,6 @@ __metadata:
chai-as-promised: ^7.1.1
esbuild: 0.19.11
eslint: 7.32.0
eslint-config-prettier: 8.3.0
eslint-plugin-prettier: 3.4.1
eslint-plugin-simple-import-sort: 7.0.0
eslint-plugin-tsdoc: 0.2.17
glob: ^7.1.6
Expand Down
Loading