diff --git a/.prettierrc b/.prettierrc index 963354f23..b1ca726a3 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,3 +1,4 @@ { - "printWidth": 120 + "printWidth": 120, + "trailingComma": "es5" } diff --git a/src/Alert/Alert.tsx b/src/Alert/Alert.tsx index 308f42fe4..e960c0f41 100644 --- a/src/Alert/Alert.tsx +++ b/src/Alert/Alert.tsx @@ -15,7 +15,7 @@ export const NotificationTypes = { warning: "warning", } as const; -export type NotificationType = typeof NotificationTypes[keyof typeof NotificationTypes]; +export type NotificationType = (typeof NotificationTypes)[keyof typeof NotificationTypes]; export type AlertProps = FlexProps & { isCloseable?: boolean; diff --git a/src/Select/Select.tsx b/src/Select/Select.tsx index 0a294b816..96d1a49c7 100644 --- a/src/Select/Select.tsx +++ b/src/Select/Select.tsx @@ -53,7 +53,7 @@ interface CustomProps = GroupBase + Group extends GroupBase = GroupBase, > = Omit< Props, keyof CustomProps | "isSearchable" | "isDisabled" | "defaultMenuIsOpen" | "isMulti" | "styles" diff --git a/src/Select/SelectComponents.tsx b/src/Select/SelectComponents.tsx index 58da9e1f4..f33d1f481 100644 --- a/src/Select/SelectComponents.tsx +++ b/src/Select/SelectComponents.tsx @@ -15,7 +15,7 @@ import { NDSOption } from "./Select"; export function SelectControl< Option = NDSOption, IsMulti extends boolean = boolean, - Group extends GroupBase