Skip to content

[Feature Request] Format ident attr values without braces #139

@bakcxoj

Description

@bakcxoj

It makes sense to have an option that doesn't put braces around numbers and strings, but It's a bit weird to see it then put braces around simple variable names.

Current:

<Component
    closure={move || 5} // Braces
    math={5 + 5}        // Braces
    number=5            // No Braces
    variable={some_var} // Braces?
/>

Desired:

<Component
    closure={move || 5} // Braces
    math={5 + 5}        // Braces
    number=5            // No Braces
    variable=some_var   // No Braces
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions