Skip to content

Commit 6f9cab9

Browse files
committed
chore: fix prettier new version issues
1 parent b97591e commit 6f9cab9

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

packages/compass-components/src/components/actions/constants.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ export const ItemActionButtonSize = {
55
} as const;
66

77
export type ItemActionButtonSize =
8-
typeof ItemActionButtonSize[keyof typeof ItemActionButtonSize];
8+
(typeof ItemActionButtonSize)[keyof typeof ItemActionButtonSize];

packages/compass-components/src/components/drawer/drawer/drawer.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const DisplayMode = {
1515
Embedded: 'embedded',
1616
Overlay: 'overlay',
1717
} as const;
18-
export type DisplayMode = typeof DisplayMode[keyof typeof DisplayMode];
18+
export type DisplayMode = (typeof DisplayMode)[keyof typeof DisplayMode];
1919

2020
export interface DrawerProps
2121
extends Omit<HTMLElementProps<'dialog' | 'div'>, 'title'>,

packages/compass-components/src/components/guide-cue/guide-cue-groups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export const GROUP_STEPS_MAP = new Map<GroupName, number>(
77
GROUPS.map(({ id, steps }) => [id, steps])
88
);
99

10-
export type GroupName = typeof GROUPS[number]['id'];
10+
export type GroupName = (typeof GROUPS)[number]['id'];

packages/compass-components/src/components/modals/form-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const Variant = {
1212
Danger: ButtonVariant.Danger,
1313
} as const;
1414

15-
export type Variant = typeof Variant[keyof typeof Variant];
15+
export type Variant = (typeof Variant)[keyof typeof Variant];
1616

1717
type FormModalProps = React.ComponentProps<typeof Modal> & {
1818
variant?: Variant;

packages/compass-components/src/components/modals/modal-body.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const Variant = {
99
Danger: ButtonVariant.Danger,
1010
} as const;
1111

12-
export type Variant = typeof Variant[keyof typeof Variant];
12+
export type Variant = (typeof Variant)[keyof typeof Variant];
1313

1414
const contentStyle = css({
1515
padding: `0 ${spacing[800]}px`,

packages/compass-components/src/components/modals/modal-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const Variant = {
1212
Danger: ButtonVariant.Danger,
1313
} as const;
1414

15-
export type Variant = typeof Variant[keyof typeof Variant];
15+
export type Variant = (typeof Variant)[keyof typeof Variant];
1616

1717
const headerStyle = css({
1818
padding: spacing[800],

packages/compass-components/src/components/signals.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,6 @@ export const PerformanceSignals = new Map(
160160
})
161161
) as {
162162
get(
163-
key: typeof SIGNALS[number]['id']
164-
): Pick<Signal, keyof typeof SIGNALS[number]>;
163+
key: (typeof SIGNALS)[number]['id']
164+
): Pick<Signal, keyof (typeof SIGNALS)[number]>;
165165
};

packages/compass-components/src/utils/merge-props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { mergeProps as _mergeProps } from '@react-aria/utils';
33

44
export function mergeProps<T extends HTMLElement = HTMLElement>(
55
...props: React.HTMLProps<T>[]
6-
): typeof props[number] {
6+
): (typeof props)[number] {
77
const propsWithRefs = props.filter((prop) => prop.ref);
88
return {
99
// This mergeProps method can handle callbacks and class names, but not refs

packages/data-service/test/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const ALLOWED_COMMANDS = [
2020

2121
export type ClientMockOptions = {
2222
hosts: [{ host: string; port: number }];
23-
commands: Partial<Record<typeof ALLOWED_COMMANDS[number], unknown>>;
23+
commands: Partial<Record<(typeof ALLOWED_COMMANDS)[number], unknown>>;
2424
collections: Record<string, string[] | Error>;
2525
searchIndexes: Record<string, Record<string, SearchIndex[] | Error>>;
2626
clientOptions: Record<string, unknown>;
@@ -41,7 +41,7 @@ export function createMongoClientMock({
4141
const db = {
4242
command(spec: Document) {
4343
const cmd = Object.keys(spec).find((key) =>
44-
ALLOWED_COMMANDS.includes(key as typeof ALLOWED_COMMANDS[number])
44+
ALLOWED_COMMANDS.includes(key as (typeof ALLOWED_COMMANDS)[number])
4545
);
4646
if (cmd && commands[cmd]) {
4747
const command = commands[cmd];

0 commit comments

Comments
 (0)