Skip to content

Use a diff writer instead of complete override for JSON editor config conversions #744

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

🚀 Feature Request

Forking from #742: editor configs can have a lot of formatting considerations in them that we won't want to override. Spacing, sorting, comments, trailing commas or lack thereof: these are all things that should be preserved when writing a new config.

Existing Behavior

We directly write the results of JSON.stringify()ing a new computed editor config.

Change Proposal

Use something like jsondiffpatch to write the new config.

Note: this issue will also apply to Atom's CSON configs (#728).

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions