+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

feat(rome_js_formatter): trailing comma none #3474

Merged
merged 2 commits into from
Oct 24, 2022

Conversation

denbezrukov
Copy link
Contributor

Summary

Add none option for TrailingComma.

Test Plan

cargo test -p rome_js_formatter

@netlify
Copy link

netlify bot commented Oct 22, 2022

Deploy Preview for rometools ready!

Name Link
🔨 Latest commit 151a1d6
🔍 Latest deploy log https://app.netlify.com/sites/rometools/deploys/635388f993c6d7000894288b
😎 Deploy Preview https://deploy-preview-3474--rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@denbezrukov denbezrukov mentioned this pull request Oct 22, 2022
6 tasks
@denbezrukov denbezrukov marked this pull request as ready for review October 22, 2022 17:57
@denbezrukov denbezrukov requested a review from a team October 22, 2022 17:57
@MichaReiser
Copy link
Contributor

You're awesome!

Would you mind adding a test that shows the trailing comma handling for the different call argument layouts?

@MichaReiser MichaReiser added the A-Formatter Area: formatter label Oct 24, 2022
@MichaReiser MichaReiser added this to the 10.0.0 milestone Oct 24, 2022
@MichaReiser MichaReiser merged commit 1dc5a2c into rome:main Oct 24, 2022
Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Could you please add two test in the rome_cli/tests/commands/format.rs file?

  1. running rome format --trailing-separator=NONE would error because it's supposed to be case sensitive
  2. running rome format --trailing-separator=none --write file.js on a file, show that is correctly formatted

@MichaReiser MichaReiser added the hacktoberfest Issues for hacktoberfest label Oct 24, 2022
@denbezrukov
Copy link
Contributor Author

Could you please add two test in the rome_cli/tests/commands/format.rs file?

  1. running rome format --trailing-separator=NONE would error because it's supposed to be case sensitive
  2. running rome format --trailing-separator=none --write file.js on a file, show that is correctly formatted

I'll do it in another PR. =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Formatter Area: formatter hacktoberfest Issues for hacktoberfest
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载