nufmt icon indicating copy to clipboard operation
nufmt copied to clipboard

Comments in list of callbacks are incorrectly formatted

Open finnvyrn opened this issue 5 months ago • 0 comments

Issue 1

Before:

let uu_jobs = [
    { pi update } # This caused race condition with npm update -g 
    { yay-uu }
    { pkg-uu }
    { brew-uu }
]

After:

let uu_jobs = [
    { pi update # This caused race condition with npm update -g } <--- invalid syntax
    { yay-uu }
    { pkg-uu }
    { brew-uu }
]

Expected: no format

Issue 2

Before:

let uu_jobs = [
    # { pi update } 
    { yay-uu }
    { pkg-uu }
    { brew-uu }
]

After:

let uu_jobs = [
    { 
    # { pi update } 
    yay-uu }
    { pkg-uu }
    { brew-uu }
]

Expected: no format

finnvyrn avatar Jun 05 '26 10:06 finnvyrn