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

fix(rome_cli): issue #3175 #3189

Merged
merged 3 commits into from
Sep 9, 2022
Merged

fix(rome_cli): issue #3175 #3189

merged 3 commits into from
Sep 9, 2022

Conversation

ematipico
Copy link
Contributor

@ematipico ematipico commented Sep 9, 2022

Summary

Fixes #3175

The issue was caused a particular shape of the rome.json and the old logic was not taken that into consideration. For example, when the javascript.formatter section was not present in the configuration file and CLI requests to override some default of that part of the configuration.

This PR should fix these cases.

Test Plan

I added two test cases

@ematipico ematipico added the A-CLI Area: CLI label Sep 9, 2022
@netlify
Copy link

netlify bot commented Sep 9, 2022

Deploy Preview for rometools canceled.

Name Link
🔨 Latest commit 54488e3
🔍 Latest deploy log https://app.netlify.com/sites/rometools/deploys/631b1ce4b6dc500008e8ccfd

@ematipico ematipico temporarily deployed to netlify-playground September 9, 2022 08:58 Inactive
@github-actions
Copy link

github-actions bot commented Sep 9, 2022

crates/rome_cli/src/commands/format.rs Outdated Show resolved Hide resolved
crates/rome_cli/src/commands/format.rs Outdated Show resolved Hide resolved
crates/rome_service/src/file_handlers/javascript.rs Outdated Show resolved Hide resolved
@ematipico ematipico requested a review from a team September 9, 2022 10:35
@ematipico ematipico temporarily deployed to netlify-playground September 9, 2022 10:35 Inactive
@ematipico ematipico temporarily deployed to netlify-playground September 9, 2022 10:43 Inactive
@ematipico ematipico temporarily deployed to netlify-playground September 9, 2022 10:43 Inactive
@ematipico ematipico temporarily deployed to netlify-playground September 9, 2022 10:48 Inactive
@ematipico ematipico temporarily deployed to netlify-playground September 9, 2022 11:00 Inactive
@ematipico ematipico merged commit ce3d04f into main Sep 9, 2022
@ematipico ematipico deleted the fix/issue-3175 branch September 9, 2022 11:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-CLI Area: CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 rome format ignores command line options
2 participants