Skip to content

linter: oxc/no-map-spread auto-fix is breaking the content #17755

@Hideman42

Description

@Hideman42

What happened?

Indentation / formatting/ comments are gone with auto-fix

-          }): Type => ({
-            ...item,
-            id: identifier as string, // comment a
-            name: identifier === NOT_FOUND ? something : undefined, // comment b
-          }),
+          }): Type => (Object.assign(item, {id:identifier as string,name:identifier===NOT_FOUND?something:undefined})),

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions