Skip to content

Commit 0ee4d33

Browse files
authored
Remove eslint prettier utilities (#1264)
1 parent 7a7c84d commit 0ee4d33

5 files changed

Lines changed: 5 additions & 49 deletions

File tree

.changeset/ninety-terms-study.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
"chai-as-promised": "^7.1.1",
4444
"esbuild": "0.19.11",
4545
"eslint": "7.32.0",
46-
"eslint-config-prettier": "8.3.0",
47-
"eslint-plugin-prettier": "3.4.1",
4846
"eslint-plugin-simple-import-sort": "7.0.0",
4947
"eslint-plugin-tsdoc": "0.2.17",
5048
"husky": "^4.2.3",

packages/middleware-compression/src/compressString.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe(compressString.name, () => {
3838
it("should throw an error if compression fails", async () => {
3939
const compressionErrorMsg = "compression error message";
4040
const compressionError = new Error(compressionErrorMsg);
41-
(gzip as unknown as jest.Mock).mockImplementationOnce(() => {
41+
((gzip as unknown) as jest.Mock).mockImplementationOnce(() => {
4242
throw compressionError;
4343
});
4444

packages/middleware-compression/src/isStreaming.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ jest.mock("@smithy/is-array-buffer");
66

77
describe(isStreaming.name, () => {
88
beforeEach(() => {
9-
(isArrayBuffer as unknown as jest.Mock).mockReturnValue(true);
9+
((isArrayBuffer as unknown) as jest.Mock).mockReturnValue(true);
1010
});
1111

1212
afterEach(() => {
1313
jest.clearAllMocks();
1414
});
1515

1616
it("returns true when body is a stream", () => {
17-
(isArrayBuffer as unknown as jest.Mock).mockReturnValue(false);
17+
((isArrayBuffer as unknown) as jest.Mock).mockReturnValue(false);
1818
// Mocking {} as a stream
1919
const mockStream = {};
2020
expect(isStreaming(mockStream)).toBe(true);

yarn.lock

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -5498,32 +5498,6 @@ __metadata:
54985498
languageName: node
54995499
linkType: hard
55005500

5501-
"eslint-config-prettier@npm:8.3.0":
5502-
version: 8.3.0
5503-
resolution: "eslint-config-prettier@npm:8.3.0"
5504-
peerDependencies:
5505-
eslint: ">=7.0.0"
5506-
bin:
5507-
eslint-config-prettier: bin/cli.js
5508-
checksum: df4cea3032671995bb5ab07e016169072f7fa59f44a53251664d9ca60951b66cdc872683b5c6a3729c91497c11490ca44a79654b395dd6756beb0c3903a37196
5509-
languageName: node
5510-
linkType: hard
5511-
5512-
"eslint-plugin-prettier@npm:3.4.1":
5513-
version: 3.4.1
5514-
resolution: "eslint-plugin-prettier@npm:3.4.1"
5515-
dependencies:
5516-
prettier-linter-helpers: ^1.0.0
5517-
peerDependencies:
5518-
eslint: ">=5.0.0"
5519-
prettier: ">=1.13.0"
5520-
peerDependenciesMeta:
5521-
eslint-config-prettier:
5522-
optional: true
5523-
checksum: fa6a89f0d7cba1cc87064352f5a4a68dc3739448dd279bec2bced1bfa3b704467e603d13b69dcec853f8fa30b286b8b715912898e9da776e1b016cf0ee48bd99
5524-
languageName: node
5525-
linkType: hard
5526-
55275501
"eslint-plugin-simple-import-sort@npm:7.0.0":
55285502
version: 7.0.0
55295503
resolution: "eslint-plugin-simple-import-sort@npm:7.0.0"
@@ -5808,13 +5782,6 @@ __metadata:
58085782
languageName: node
58095783
linkType: hard
58105784

5811-
"fast-diff@npm:^1.1.2":
5812-
version: 1.2.0
5813-
resolution: "fast-diff@npm:1.2.0"
5814-
checksum: 1b5306eaa9e826564d9e5ffcd6ebd881eb5f770b3f977fcbf38f05c824e42172b53c79920e8429c54eb742ce15a0caf268b0fdd5b38f6de52234c4a8368131ae
5815-
languageName: node
5816-
linkType: hard
5817-
58185785
"fast-glob@npm:^3.2.9":
58195786
version: 3.2.12
58205787
resolution: "fast-glob@npm:3.2.12"
@@ -9029,15 +8996,6 @@ __metadata:
90298996
languageName: node
90308997
linkType: hard
90318998

9032-
"prettier-linter-helpers@npm:^1.0.0":
9033-
version: 1.0.0
9034-
resolution: "prettier-linter-helpers@npm:1.0.0"
9035-
dependencies:
9036-
fast-diff: ^1.1.2
9037-
checksum: 00ce8011cf6430158d27f9c92cfea0a7699405633f7f1d4a45f07e21bf78e99895911cbcdc3853db3a824201a7c745bd49bfea8abd5fb9883e765a90f74f8392
9038-
languageName: node
9039-
linkType: hard
9040-
90418999
"prettier@npm:2.2.1":
90429000
version: 2.2.1
90439001
resolution: "prettier@npm:2.2.1"
@@ -9902,8 +9860,6 @@ __metadata:
99029860
chai-as-promised: ^7.1.1
99039861
esbuild: 0.19.11
99049862
eslint: 7.32.0
9905-
eslint-config-prettier: 8.3.0
9906-
eslint-plugin-prettier: 3.4.1
99079863
eslint-plugin-simple-import-sort: 7.0.0
99089864
eslint-plugin-tsdoc: 0.2.17
99099865
glob: ^7.1.6

0 commit comments

Comments
 (0)