Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nzakas opened this issue Dec 12, 2023 · 0 comments
Open

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

nzakas opened this issue Dec 12, 2023 · 0 comments
Assignees

Comments

@nzakas
Copy link

nzakas commented Dec 12, 2023

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.

@bmish bmish added the bug label Dec 12, 2023
@aladdin-add aladdin-add self-assigned this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants