prettier icon indicating copy to clipboard operation
prettier copied to clipboard

[prettier-plugin-toml]: do not add tailing comma to one-line object

Open trim21 opened this issue 2 months ago • 0 comments

I have a one-line object

before

uvicorn = [
    { version = "^0.29.0", platform = 'linux', extras = [ 'standard' ] },
    { version = "^0.29.0", platform = 'win32' },
]

after

uvicorn = [
    { version = "^0.29.0", platform = 'linux', extras = [
        'standard',
    ] },
    { version = "^0.29.0", platform = 'win32' },
]

this doesn't look pretty...

trim21 avatar May 03 '24 11:05 trim21