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

Remove duplicate trailingComma setting from .prettierrc.js #1836 #4316

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Jash2606
Copy link

@Jash2606 Jash2606 commented Jul 30, 2024

Fixed issue with .prettierrc.js containing trailingComma twice by removing 'none' value.

What changes were proposed in this pull request?

This pull request fixes the issue with .prettierrc.js containing the trailingComma setting twice with different values by removing the none value and keeping the es5 value.

Why are the changes needed?

The changes are needed to resolve the conflict in the Prettier configuration and ensure consistent code formatting according to ES5 rules.

Fix: #1836

Does this PR introduce any user-facing change?

No, this PR does not introduce any user-facing changes.

How was this patch tested?

The changes were tested by running Prettier on the codebase.

Fixed issue with .prettierrc.js containing trailingComma twice by removing 'none' value.
@mchades mchades requested a review from justinmclean July 30, 2024 15:08
@Jash2606
Copy link
Author

Hey @justinmclean,

I've fixed the build error. Could you please review the changes?

return "Cannot build ConfElement, some of required attributes are not set " + attributes;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Jash2606 is this file you wanted or you added mistakenly?

Copy link
Author

@Jash2606 Jash2606 Aug 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @jerryshao , I got this file while running up the prettier , So Should i keep it or remove it ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know who generates this file, from my point it is not necessary.

@jerryshao
Copy link
Contributor

Hi @Jash2606 would you please fix the conflict of this PR, thanks.

@LauraXia123
Copy link
Collaborator

@Jash2606 The latter one takes effect when duplicate trailingComma, you can remove the es5 value

@justinmclean
Copy link
Member

@ Jash2606 It would be easier to review if the PR if it just fixed the above issue without making other changes. Any chance you can remove your formating changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] .prettierrc.js contains trailingComma twice
4 participants