Skip to content

feat(lint): auto remove indentation of code to snippets using ctx.emit_with_fix()Β #11038

@0xrusowsky

Description

@0xrusowsky

Component

Forge

Describe the feature you would like

snippets where changed to directly take a span from the reference code to be fixed.

while this was done for convenience so that devs wouldn't have to pass the reference code, it forces them to manually figure out the indentation for the suggested fix.

instead, the top-most indentation level should be removed/normalized, so that the fix proposal doesn't need to handle it manually

Additional context

No response

Metadata

Metadata

Assignees

Labels

Projects

Status

Completed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions