Skip to content

Commit 109abc0

Browse files
SantiagoSuHeclaude
andcommitted
fix: apply dprint formatting to fieldTypes.ts
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent 040c312 commit 109abc0

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

src/advanced-settings/data/fieldTypes.ts

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,28 @@ export { FIELD_TYPE };
1515
* All current values are covered there. When adding new options, always add
1616
* a corresponding i18n message — never rely on `label` for user-visible text.
1717
*/
18-
export const ENUM_OPTIONS: Record<string, Array<{ value: string; label: string }>> = Object.fromEntries(
19-
SETTINGS_CONFIG.flatMap((cat) => cat.fields
20-
.filter((f) => f.enumOptions)
21-
.map((f) => [f.key, f.enumOptions!])),
18+
export const ENUM_OPTIONS: Record<string, Array<{ value: string; label: string; }>> = Object.fromEntries(
19+
SETTINGS_CONFIG.flatMap((cat) =>
20+
cat.fields
21+
.filter((f) => f.enumOptions)
22+
.map((f) => [f.key, f.enumOptions!])
23+
),
2224
);
2325

2426
const BOOLEAN_KEYS = new Set<string>(
25-
SETTINGS_CONFIG.flatMap((cat) => cat.fields
26-
.filter((f) => f.type === FIELD_TYPE.BOOLEAN)
27-
.map((f) => f.key)),
27+
SETTINGS_CONFIG.flatMap((cat) =>
28+
cat.fields
29+
.filter((f) => f.type === FIELD_TYPE.BOOLEAN)
30+
.map((f) => f.key)
31+
),
2832
);
2933

3034
const NUMBER_KEYS = new Set<string>(
31-
SETTINGS_CONFIG.flatMap((cat) => cat.fields
32-
.filter((f) => f.type === FIELD_TYPE.NUMBER)
33-
.map((f) => f.key)),
35+
SETTINGS_CONFIG.flatMap((cat) =>
36+
cat.fields
37+
.filter((f) => f.type === FIELD_TYPE.NUMBER)
38+
.map((f) => f.key)
39+
),
3440
);
3541

3642
/**

0 commit comments

Comments
 (0)