Apply the formatting fix
MODIFY
packages/@romejs/diagnostics/descriptions.ts
packages/@romejs/diagnostics/descriptions.ts
@@ -67,9 +67,13 @@ type OutputMessagesValue<Value> = Value extends string
? OutputMessagesFactory<Value>
: never;
-type OutputMessagesCategory<Input extends InputMessagesCategory> = { [Key in keyof Input]: OutputMessagesValue<Input[Key]> };
+type OutputMessagesCategory<Input extends InputMessagesCategory> = {
+ [Key in keyof Input]: OutputMessagesValue<Input[Key]>
+};
-type OutputMessages<Input extends InputMessages> = { [Key in keyof Input]: OutputMessagesCategory<Input[Key]> };
+type OutputMessages<Input extends InputMessages> = {
+ [Key in keyof Input]: OutputMessagesCategory<Input[Key]>
+};
// This is a lot of gross meta programming
function createMessages<Input extends InputMessages>(

MODIFY
packages/@romejs/js-ast/utils.ts
packages/@romejs/js-ast/utils.ts
@@ -22,10 +22,9 @@ type JustNodeKeysProp<K, V> = V extends
? K
: never;
-type JustNodeKeys<T> = ExcludeCoreNodeKeys<{ [K in keyof T]: JustNodeKeysProp<
- K,
- NonNullable<T[K]>
-> }[keyof T]>;
+type JustNodeKeys<T> = ExcludeCoreNodeKeys<
+ {[K in keyof T]: JustNodeKeysProp<K, NonNullable<T[K]>>}[keyof T]
+>;
type ExcludeCoreNodeKeys<T> = Exclude<T, keyof JSNodeBase>;

MODIFY
packages/@romejs/js-compiler/types.ts
packages/@romejs/js-compiler/types.ts
@@ -28,7 +28,9 @@ export type TransformStageFactory = (
options: Object,
) => Transforms;
-export type TransformStageFactories = { [key in TransformStageName]: TransformStageFactory };
+export type TransformStageFactories = {
+ [key in TransformStageName]: TransformStageFactory
+};
//
export type Transform =

MODIFY
packages/@romejs/messages/index.ts
packages/@romejs/messages/index.ts
@@ -20,7 +20,9 @@ type MessagesShape = {
type Factory = (...args: Array<unknown>) => string;
-type FactoryObject<Messages extends MessagesShape> = { [P in keyof Messages]: Factory };
+type FactoryObject<Messages extends MessagesShape> = {
+ [P in keyof Messages]: Factory
+};
export function createMessageFactory<Messages extends MessagesShape>(
messages: Messages,

MODIFY
packages/@romejs/project/types.ts
packages/@romejs/project/types.ts
@@ -86,8 +86,9 @@ export type ProjectConfigTarget = {
// This is a project config that contains only things that can be JSON serializable
// This is used to transport and reserialize projects in workers
-export type ProjectConfigJSON = ProjectConfigJSONObjectReducer<ProjectConfigBase> &
- { [ObjectKey in keyof ProjectConfigObjects]: ProjectConfigJSONPropertyReducer<ProjectConfigObjects[ObjectKey]> };
+export type ProjectConfigJSON = ProjectConfigJSONObjectReducer<ProjectConfigBase> & {
+ [ObjectKey in keyof ProjectConfigObjects]: ProjectConfigJSONPropertyReducer<ProjectConfigObjects[ObjectKey]>
+};
// Weird way to get the value type from a map
// rome-suppress-next-line lint/noExplicitAny
@@ -108,7 +109,9 @@ type ProjectConfigJSONPropertyReducer<Type> = Type extends AbsoluteFilePath
? ProjectConfigJSONObjectReducer<Type>
: Type;
-type ProjectConfigJSONObjectReducer<Object> = { [PropertyKey in keyof Object]: ProjectConfigJSONPropertyReducer<Object[PropertyKey]> };
+type ProjectConfigJSONObjectReducer<Object> = {
+ [PropertyKey in keyof Object]: ProjectConfigJSONPropertyReducer<Object[PropertyKey]>
+};
// Base of a project config without any objects
type ProjectConfigBase = {
@@ -118,8 +121,9 @@ type ProjectConfigBase = {
};
// Data structure we pass around when normalizing and merging project configs
-export type PartialProjectConfig = Partial<ProjectConfigBase> &
- { [Key in keyof ProjectConfigObjects]: PartialProjectValue<ProjectConfigObjects[Key]> };
+export type PartialProjectConfig = Partial<ProjectConfigBase> & {
+ [Key in keyof ProjectConfigObjects]: PartialProjectValue<ProjectConfigObjects[Key]>
+};
// rome-suppress-next-line lint/noExplicitAny
type PartialProjectValue<Type> = Type extends Map<string, any>

MODIFY
packages/@romejs/typescript-helpers/index.ts
packages/@romejs/typescript-helpers/index.ts
@@ -16,11 +16,13 @@ export type Dict<T> = {
[key: string]: T;
};
-export type RequiredProps<Obj, Keys extends keyof Obj> = Omit<Obj, Keys> &
- { [Key in Keys]-?: NonNullable<Obj[Key]> };
+export type RequiredProps<Obj, Keys extends keyof Obj> = Omit<Obj, Keys> & {
+ [Key in Keys]-?: NonNullable<Obj[Key]>
+};
-export type OptionalProps<Obj, Keys extends keyof Obj> = Omit<Obj, Keys> &
- { [Key in Keys]?: Obj[Key] };
+export type OptionalProps<Obj, Keys extends keyof Obj> = Omit<Obj, Keys> & {
+ [Key in Keys]?: Obj[Key]
+};
// Turn a type that contains interfaces into regular objects
export type InterfaceToObject<T> = T extends {

Apply the formatting fix