Skip to content

Bug: test-case-property-ordering removes trailing comments on fix #407

Open
@nzakas

Description

@nzakas

When test-case-property-ordering applies fixes, it does not include trailing comments.

Example:

{
    code: "foo",
    output: "foox",
    errors: [ /* errors */],
    parserOptions: {}   // intentionally blank
}

Output:

{
    code: "foo",
    output: "foox",
    parserOptions: {},
    errors: [ /* errors */],
}

I was expecting the fix to maintain trailing commas on the lines that were moved.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions