Skip to content

Commit a57ef0d

Browse files
committed
chore: more prettier fix
1 parent 6f9cab9 commit a57ef0d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/compass-preferences-model/src/global-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async function loadGlobalPreferences(
9292
const cliProps = Object.entries(allPreferencesProps).filter(
9393
([, definition]) => definition.cli
9494
);
95-
type CliPropType = typeof cliProps[number][1]['type'];
95+
type CliPropType = (typeof cliProps)[number][1]['type'];
9696
function getCliPropNamesByType(type: CliPropType): string[] {
9797
return [
9898
...new Set(

packages/compass-preferences-model/src/preferences-schema.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
import { Link } from '@mongodb-js/compass-components';
1818

1919
export const THEMES_VALUES = ['DARK', 'LIGHT', 'OS_THEME'] as const;
20-
export type THEMES = typeof THEMES_VALUES[number];
20+
export type THEMES = (typeof THEMES_VALUES)[number];
2121

2222
const enableDbAndCollStatsDescription: React.ReactNode = (
2323
<>
@@ -41,7 +41,7 @@ export const SORT_ORDER_VALUES = [
4141
'{ _id: 1 }',
4242
'{ _id: -1 }',
4343
] as const;
44-
export type SORT_ORDERS = typeof SORT_ORDER_VALUES[number];
44+
export type SORT_ORDERS = (typeof SORT_ORDER_VALUES)[number];
4545

4646
export type PermanentFeatureFlags = {
4747
showDevFeatureFlags?: boolean;
@@ -1260,7 +1260,7 @@ export function getPreferencesValidator() {
12601260
validator,
12611261
])
12621262
) as {
1263-
[K in keyof typeof storedUserPreferencesProps]: typeof storedUserPreferencesProps[K]['validator'];
1263+
[K in keyof typeof storedUserPreferencesProps]: (typeof storedUserPreferencesProps)[K]['validator'];
12641264
};
12651265

12661266
return z.object(preferencesPropsValidator);

0 commit comments

Comments
 (0)