Skip to content

Commit 696ec98

Browse files
authored
[engsys] fix check-format failures (Azure#24439)
* [engsys] fix check-format failures - keyvault-command doesn't have samples-dev directory - result of of `rush format`. formatting changes that potentially caused by prettier upgrade * form-recognizer api.md formatting change
1 parent 51a8ccd commit 696ec98

File tree

14 files changed

+18
-22
lines changed

14 files changed

+18
-22
lines changed

common/tools/dev-tool/src/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const baseCommands = {
1414
package: () => import("./package"),
1515
samples: () => import("./samples"),
1616
"test-proxy": () => import("./test-proxy"),
17-
run: () => import("./run")
17+
run: () => import("./run"),
1818
} as const;
1919

2020
/**

common/tools/dev-tool/src/commands/run/vendored.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default async (...args: string[]): Promise<boolean> => {
5252
commands.map((commandName) => {
5353
const moduleSham: CommandModule<CommandOptions> = {
5454
commandInfo: makeCommandInfo(commandName, `run vendored "${commandName}" from dev-tool`),
55-
default: makeCommandExecutor(commandName)
55+
default: makeCommandExecutor(commandName),
5656
};
5757

5858
return [commandName, () => Promise.resolve(moduleSham)];

common/tools/dev-tool/src/util/printer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import path from "path";
99
const printModes = ["info", "warn", "error", "success", "debug"] as const;
1010

1111
export type Fn<T = void> = (...values: any[]) => T;
12-
export type ModeMap<T> = { [k in typeof printModes[number]]: T };
12+
export type ModeMap<T> = { [k in (typeof printModes)[number]]: T };
1313

1414
// Compute the base directory of the dev-tool command package
1515
// We must do this specially for the printer module because using

common/tools/dev-tool/src/util/samples/syntax.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type UnionToIntersection<Union> =
7878
type SyntaxTest = (node: ts.Node) => boolean;
7979

8080
type SyntaxName = keyof UnionToIntersection<
81-
typeof SYNTAX_VIABILITY_TESTS[keyof typeof SYNTAX_VIABILITY_TESTS]
81+
(typeof SYNTAX_VIABILITY_TESTS)[keyof typeof SYNTAX_VIABILITY_TESTS]
8282
>;
8383

8484
/**

sdk/eventhub/event-hubs/test/public/hubruntime.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ testWithServiceTypes((serviceVersion) => {
4444
"EventHubConsumerClient",
4545
"EventHubProducerClient",
4646
] as const;
47-
const clientMap = new Map<typeof clientTypes[number], ClientCommonMethods>();
47+
const clientMap = new Map<(typeof clientTypes)[number], ClientCommonMethods>();
4848

4949
const service = {
5050
connectionString: env[EnvVarKeys.EVENTHUB_CONNECTION_STRING],

sdk/formrecognizer/ai-form-recognizer/review/ai-form-recognizer.api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export interface DocumentModelAdministrationClientOptions extends FormRecognizer
284284
}
285285

286286
// @public
287-
export type DocumentModelBuildMode = typeof DocumentModelBuildMode[keyof typeof DocumentModelBuildMode];
287+
export type DocumentModelBuildMode = (typeof DocumentModelBuildMode)[keyof typeof DocumentModelBuildMode];
288288

289289
// @public
290290
export const DocumentModelBuildMode: {
@@ -493,7 +493,7 @@ export interface ErrorModel {
493493
}
494494

495495
// @public
496-
export type FormRecognizerApiVersion = typeof FormRecognizerApiVersion[keyof typeof FormRecognizerApiVersion];
496+
export type FormRecognizerApiVersion = (typeof FormRecognizerApiVersion)[keyof typeof FormRecognizerApiVersion];
497497

498498
// @public
499499
export const FormRecognizerApiVersion: {
@@ -616,7 +616,7 @@ export interface ResourceDetails {
616616
export type SelectionMarkState = string;
617617

618618
// @public
619-
export type StringIndexType = typeof StringIndexType[keyof typeof StringIndexType];
619+
export type StringIndexType = (typeof StringIndexType)[keyof typeof StringIndexType];
620620

621621
// @public
622622
export const StringIndexType: {

sdk/formrecognizer/ai-form-recognizer/src/options/BuildModelOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { PollerOptions } from "./PollerOptions";
1818
* Please see the following link for more information: https://aka.ms/azsdk/formrecognizer/buildmode
1919
*/
2020
export type DocumentModelBuildMode =
21-
typeof DocumentModelBuildMode[keyof typeof DocumentModelBuildMode];
21+
(typeof DocumentModelBuildMode)[keyof typeof DocumentModelBuildMode];
2222

2323
/**
2424
* Supported values of `DocumentModelBuildMode`.

sdk/formrecognizer/ai-form-recognizer/src/options/FormRecognizerClientOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { CommonClientOptions } from "@azure/core-client";
77
* Valid values of the Form Recognizer service REST API version.
88
*/
99
export type FormRecognizerApiVersion =
10-
typeof FormRecognizerApiVersion[keyof typeof FormRecognizerApiVersion];
10+
(typeof FormRecognizerApiVersion)[keyof typeof FormRecognizerApiVersion];
1111

1212
/**
1313
* Supported and common values of FormRecognizerApiVersion.
@@ -29,7 +29,7 @@ export const FormRecognizerApiVersion = {
2929
/**
3030
* Valid string index types supported by the Form Recognizer service and SDK clients.
3131
*/
32-
export type StringIndexType = typeof StringIndexType[keyof typeof StringIndexType];
32+
export type StringIndexType = (typeof StringIndexType)[keyof typeof StringIndexType];
3333

3434
/**
3535
* Supported values of StringIndexType.

sdk/keyvault/keyvault-certificates/test/public/utils/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const serviceVersions = ["7.0", "7.1", "7.2", "7.3", "7.4-preview.1"] as
4444
*/
4545
export function getServiceVersion(): NonNullable<CertificateClientOptions["serviceVersion"]> {
4646
return (
47-
(env.SERVICE_VERSION as typeof serviceVersions[number] | undefined) ||
47+
(env.SERVICE_VERSION as (typeof serviceVersions)[number] | undefined) ||
4848
serviceVersions[serviceVersions.length - 1]
4949
);
5050
}

sdk/keyvault/keyvault-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"clean": "rimraf dist dist-* temp types *.tgz *.log",
1818
"execute:samples": "dev-tool samples run samples-dev",
1919
"extract-api": "tsc -p . && api-extractor run --local",
20-
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
20+
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
2121
"integration-test:browser": "echo skipped",
2222
"integration-test:node": "echo skipped",
2323
"integration-test": "npm run integration-test:node && npm run integration-test:browser",

0 commit comments

Comments
 (0)