Skip to content

/// to-one-line #34

@onmax

Description

@onmax

Clear and concise description of the problem

I am not a big fan of JSON objects in multiple lines.

For example:

return {
   author: 'onmax',
}

Suggested solution

In cases where the object is small I like it to keep it in one line.

I would suggest to introduce a new command /// to-one-line or /// to1line

/// to-one-line
return {
   author: 'onmax',
}

becomes:

return { author: 'onmax' }

Alternative

Doing it by hand or have a ai do it for you

Additional context

If you like the idea and API I would love to give it a try :)

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions