Skip to content

Sort command can result in invalid JSON/JS #36

@devpow112

Description

@devpow112

Sorting doesn't seem to take the ending commas into account when sorting. This is problematic if you have something like this

export default {
  "c": "c",
  "b": "b",
  "a": "a"
}

This will result in

export default {
  "a": "a"
  "b": "b",
  "c": "c",
}

Which is now invalid 😢.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions