Skip to content

Commit 298b38a

Browse files
authored
Update prettier dev-dependency to v2.5.1 in Storage (Azure#19577)
* rush update * Format files in storage-queue * Format files in storage-internal-avro * Format files in storage-file-share * Format files in storage-file-datalake * Format files in storage-blob-changefeed * Format files in storage-blob * Format files in perf-tests
1 parent a8b8f7c commit 298b38a

File tree

240 files changed

+3025
-3417
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+3025
-3417
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/perf-tests/storage-blob/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@types/node-fetch": "^2.5.0",
2222
"eslint": "^7.15.0",
2323
"node-fetch": "^2.6.6",
24-
"prettier": "^1.16.4",
24+
"prettier": "^2.5.1",
2525
"rimraf": "^3.0.0",
2626
"tslib": "^2.2.0",
2727
"ts-node": "^10.0.0",
@@ -34,9 +34,9 @@
3434
"build": "npm run clean && tsc -p .",
3535
"build:samples": "echo skipped",
3636
"build:test": "echo skipped",
37-
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
37+
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
3838
"clean": "rimraf dist dist-* types *.tgz *.log",
39-
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
39+
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
4040
"integration-test:browser": "echo skipped",
4141
"integration-test:node": "echo skipped",
4242
"integration-test": "echo skipped",

sdk/storage/perf-tests/storage-blob/test/core-rest-pipeline.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
createDefaultHttpClient,
77
HttpClient,
88
createPipelineRequest,
9-
PipelineRequest
9+
PipelineRequest,
1010
} from "@azure/core-rest-pipeline";
1111
import { drainStream } from "@azure/test-utils-perf";
1212

@@ -18,7 +18,7 @@ export class CoreHTTPSDownloadWithSASTest extends StorageBlobDownloadWithSASTest
1818
this.client = createDefaultHttpClient();
1919
this.request = createPipelineRequest({
2020
url: this.sasUrl,
21-
streamResponseStatusCodes: new Set([200, 206])
21+
streamResponseStatusCodes: new Set([200, 206]),
2222
});
2323
}
2424

sdk/storage/perf-tests/storage-blob/test/dowloadWithSAS.spec.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
BlockBlobClient,
88
generateBlobSASQueryParameters,
99
BlobSASPermissions,
10-
BlobClient
10+
BlobClient,
1111
} from "@azure/storage-blob";
1212
import { getValueInConnString } from "./utils/utils";
1313
import { generateUuid } from "@azure/core-http";
@@ -16,17 +16,15 @@ interface StorageBlobDownloadTestOptions {
1616
size: number;
1717
}
1818

19-
export class StorageBlobDownloadWithSASTest extends StorageBlobTest<
20-
StorageBlobDownloadTestOptions
21-
> {
19+
export class StorageBlobDownloadWithSASTest extends StorageBlobTest<StorageBlobDownloadTestOptions> {
2220
public options: PerfOptionDictionary<StorageBlobDownloadTestOptions> = {
2321
size: {
2422
required: true,
2523
description: "Size in bytes",
2624
shortName: "sz",
2725
longName: "size",
28-
defaultValue: 10240
29-
}
26+
defaultValue: 10240,
27+
},
3028
};
3129

3230
static blobName = generateUuid();
@@ -45,7 +43,7 @@ export class StorageBlobDownloadWithSASTest extends StorageBlobTest<
4543
expiresOn: new Date(new Date().getTime() + 86400000),
4644
containerName: StorageBlobDownloadWithSASTest.containerName,
4745
blobName: StorageBlobDownloadWithSASTest.blobName,
48-
permissions: BlobSASPermissions.parse("r")
46+
permissions: BlobSASPermissions.parse("r"),
4947
},
5048
this.sharedKeyCredential
5149
).toString();

sdk/storage/perf-tests/storage-blob/test/download.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export class StorageBlobDownloadTest extends StorageBlobTest<StorageBlobDownload
1717
description: "Size in bytes",
1818
shortName: "sz",
1919
longName: "size",
20-
defaultValue: 10240
21-
}
20+
defaultValue: 10240,
21+
},
2222
};
2323

2424
static blobName = generateUuid();

sdk/storage/perf-tests/storage-blob/test/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const perfProgram = new PerfProgram(
2222
StorageBlobDownloadWithSASTest,
2323
CoreHTTPDownloadWithSASTest,
2424
CoreHTTPSDownloadWithSASTest,
25-
NodeFetchDownloadWithSASTest
25+
NodeFetchDownloadWithSASTest,
2626
])
2727
);
2828

sdk/storage/perf-tests/storage-blob/test/listBlobs.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export class StorageBlobListTest extends StorageBlobTest<StorageBlobListTestOpti
1414
required: true,
1515
description: "Number of blobs to be listed",
1616
longName: "count",
17-
defaultValue: 10
18-
}
17+
defaultValue: 10,
18+
},
1919
};
2020

2121
public async globalSetup() {

sdk/storage/perf-tests/storage-blob/test/storageTest.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { PerfTest, getEnvVar } from "@azure/test-utils-perf";
66
import {
77
BlobServiceClient,
88
ContainerClient,
9-
StorageSharedKeyCredential
9+
StorageSharedKeyCredential,
1010
} from "@azure/storage-blob";
1111
import { getValueInConnString } from "./utils/utils";
1212

sdk/storage/perf-tests/storage-blob/test/upload.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export class StorageBlobUploadTest extends StorageBlobTest<StorageBlobUploadTest
1818
description: "Size in bytes",
1919
shortName: "sz",
2020
longName: "size",
21-
defaultValue: 10240
22-
}
21+
defaultValue: 10240,
22+
},
2323
};
2424

2525
constructor() {

sdk/storage/perf-tests/storage-file-datalake/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@types/uuid": "^8.0.0",
1818
"@types/node": "^12.0.0",
1919
"eslint": "^7.15.0",
20-
"prettier": "^1.16.4",
20+
"prettier": "^2.5.1",
2121
"rimraf": "^3.0.0",
2222
"tslib": "^2.2.0",
2323
"ts-node": "^10.0.0",
@@ -30,9 +30,9 @@
3030
"build": "npm run clean && tsc -p .",
3131
"build:samples": "echo skipped",
3232
"build:test": "echo skipped",
33-
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
33+
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
3434
"clean": "rimraf dist dist-* types *.tgz *.log",
35-
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
35+
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
3636
"integration-test:browser": "echo skipped",
3737
"integration-test:node": "echo skipped",
3838
"integration-test": "echo skipped",

0 commit comments

Comments
 (0)