Confused about JavaScript SSR

I'm trying to create a rule for javascript that finds stray commas in objects similar to the already built in rule that finds stray commas in arrays.

Specifically, I'm trying to convert this RegEx search:

}[\s|\r|\n]*,[\s|\r|\n]*}

How would I do this?

Please sign in to leave a comment.