Skip to content

Commit

Permalink
Update prettier dev-dependency to v2.5.1 in Storage (#19577)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
JonathanCrd authored Jan 4, 2022
1 parent a8b8f7c commit 298b38a
Show file tree
Hide file tree
Showing 240 changed files with 3,025 additions and 3,417 deletions.
36 changes: 18 additions & 18 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions sdk/storage/perf-tests/storage-blob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/node-fetch": "^2.5.0",
"eslint": "^7.15.0",
"node-fetch": "^2.6.6",
"prettier": "^1.16.4",
"prettier": "^2.5.1",
"rimraf": "^3.0.0",
"tslib": "^2.2.0",
"ts-node": "^10.0.0",
Expand All @@ -34,9 +34,9 @@
"build": "npm run clean && tsc -p .",
"build:samples": "echo skipped",
"build:test": "echo skipped",
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
"clean": "rimraf dist dist-* types *.tgz *.log",
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"integration-test": "echo skipped",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
createDefaultHttpClient,
HttpClient,
createPipelineRequest,
PipelineRequest
PipelineRequest,
} from "@azure/core-rest-pipeline";
import { drainStream } from "@azure/test-utils-perf";

Expand All @@ -18,7 +18,7 @@ export class CoreHTTPSDownloadWithSASTest extends StorageBlobDownloadWithSASTest
this.client = createDefaultHttpClient();
this.request = createPipelineRequest({
url: this.sasUrl,
streamResponseStatusCodes: new Set([200, 206])
streamResponseStatusCodes: new Set([200, 206]),
});
}

Expand Down
12 changes: 5 additions & 7 deletions sdk/storage/perf-tests/storage-blob/test/dowloadWithSAS.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
BlockBlobClient,
generateBlobSASQueryParameters,
BlobSASPermissions,
BlobClient
BlobClient,
} from "@azure/storage-blob";
import { getValueInConnString } from "./utils/utils";
import { generateUuid } from "@azure/core-http";
Expand All @@ -16,17 +16,15 @@ interface StorageBlobDownloadTestOptions {
size: number;
}

export class StorageBlobDownloadWithSASTest extends StorageBlobTest<
StorageBlobDownloadTestOptions
> {
export class StorageBlobDownloadWithSASTest extends StorageBlobTest<StorageBlobDownloadTestOptions> {
public options: PerfOptionDictionary<StorageBlobDownloadTestOptions> = {
size: {
required: true,
description: "Size in bytes",
shortName: "sz",
longName: "size",
defaultValue: 10240
}
defaultValue: 10240,
},
};

static blobName = generateUuid();
Expand All @@ -45,7 +43,7 @@ export class StorageBlobDownloadWithSASTest extends StorageBlobTest<
expiresOn: new Date(new Date().getTime() + 86400000),
containerName: StorageBlobDownloadWithSASTest.containerName,
blobName: StorageBlobDownloadWithSASTest.blobName,
permissions: BlobSASPermissions.parse("r")
permissions: BlobSASPermissions.parse("r"),
},
this.sharedKeyCredential
).toString();
Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/perf-tests/storage-blob/test/download.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export class StorageBlobDownloadTest extends StorageBlobTest<StorageBlobDownload
description: "Size in bytes",
shortName: "sz",
longName: "size",
defaultValue: 10240
}
defaultValue: 10240,
},
};

static blobName = generateUuid();
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/perf-tests/storage-blob/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const perfProgram = new PerfProgram(
StorageBlobDownloadWithSASTest,
CoreHTTPDownloadWithSASTest,
CoreHTTPSDownloadWithSASTest,
NodeFetchDownloadWithSASTest
NodeFetchDownloadWithSASTest,
])
);

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/perf-tests/storage-blob/test/listBlobs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export class StorageBlobListTest extends StorageBlobTest<StorageBlobListTestOpti
required: true,
description: "Number of blobs to be listed",
longName: "count",
defaultValue: 10
}
defaultValue: 10,
},
};

public async globalSetup() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PerfTest, getEnvVar } from "@azure/test-utils-perf";
import {
BlobServiceClient,
ContainerClient,
StorageSharedKeyCredential
StorageSharedKeyCredential,
} from "@azure/storage-blob";
import { getValueInConnString } from "./utils/utils";

Expand Down
4 changes: 2 additions & 2 deletions sdk/storage/perf-tests/storage-blob/test/upload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export class StorageBlobUploadTest extends StorageBlobTest<StorageBlobUploadTest
description: "Size in bytes",
shortName: "sz",
longName: "size",
defaultValue: 10240
}
defaultValue: 10240,
},
};

constructor() {
Expand Down
6 changes: 3 additions & 3 deletions sdk/storage/perf-tests/storage-file-datalake/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/uuid": "^8.0.0",
"@types/node": "^12.0.0",
"eslint": "^7.15.0",
"prettier": "^1.16.4",
"prettier": "^2.5.1",
"rimraf": "^3.0.0",
"tslib": "^2.2.0",
"ts-node": "^10.0.0",
Expand All @@ -30,9 +30,9 @@
"build": "npm run clean && tsc -p .",
"build:samples": "echo skipped",
"build:test": "echo skipped",
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
"clean": "rimraf dist dist-* types *.tgz *.log",
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"integration-test": "echo skipped",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export class StorageDFSAppendTest extends StorageDFSTest<StorageDFSAppendTestOpt
description: "Size to append in bytes",
shortName: "sz",
longName: "size",
defaultValue: 1024
}
defaultValue: 1024,
},
};
fileClient: DataLakeFileClient;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const perfProgram = new PerfProgram(
StorageDFSAppendTest,
StorageDFSReadTest,
StorageDFSUploadTest,
StorageDFSUploadFromFileTest
StorageDFSUploadFromFileTest,
])
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export class StorageDFSReadTest extends StorageDFSTest<StorageDFSReadTestOptions
description: "Size in bytes",
shortName: "sz",
longName: "size",
defaultValue: 1024
}
defaultValue: 1024,
},
};
static fileName = generateUuid();
fileClient: DataLakeFileClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
DataLakeServiceClient,
StorageSharedKeyCredential,
DataLakeFileSystemClient,
DataLakeDirectoryClient
DataLakeDirectoryClient,
} from "@azure/storage-file-datalake";

// Expects the .env file at the same level as the "test" folder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export class StorageDFSUploadTest extends StorageDFSTest<StorageFileShareUploadT
description: "Size in bytes",
shortName: "sz",
longName: "size",
defaultValue: 1024
}
defaultValue: 1024,
},
};

constructor() {
Expand Down
6 changes: 3 additions & 3 deletions sdk/storage/perf-tests/storage-file-share/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@types/uuid": "^8.0.0",
"@types/node": "^12.0.0",
"eslint": "^7.15.0",
"prettier": "^1.16.4",
"prettier": "^2.5.1",
"rimraf": "^3.0.0",
"tslib": "^2.2.0",
"ts-node": "^10.0.0",
Expand All @@ -30,9 +30,9 @@
"build": "npm run clean && tsc -p .",
"build:samples": "echo skipped",
"build:test": "echo skipped",
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"check-format": "prettier --list-different --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
"clean": "rimraf dist dist-* types *.tgz *.log",
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"format": "prettier --write --config ../../../../.prettierrc.json --ignore-path ../../../../.prettierignore \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "echo skipped",
"integration-test:node": "echo skipped",
"integration-test": "echo skipped",
Expand Down
Loading

0 comments on commit 298b38a

Please sign in to comment.