wist icon indicating copy to clipboard operation
wist copied to clipboard

Add rule for trailing commas

Open nishtahir opened this issue 7 years ago • 1 comments

We should add a new rule for trailing commas?

Reference eslint implementation https://eslint.org/docs/rules/comma-dangle

For example, the following function

function sampleFunction() as object
    if GetGlobalAA().user = invalid then
        user = {
            _name : "",
        }
        GetGlobalAA()["user"] = user
    end if
    return invalid
end function

would warn about the trailing comma , in the code block.

nishtahir avatar Mar 02 '18 16:03 nishtahir

Related to #64

nishtahir avatar Mar 02 '18 16:03 nishtahir