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

feat(rome_cli): Enable JSON formatting #4133

Merged
merged 8 commits into from
Jan 10, 2023
Merged

feat(rome_cli): Enable JSON formatting #4133

merged 8 commits into from
Jan 10, 2023

Conversation

MichaReiser
Copy link
Contributor

Summary

This PR enables JSON formatting for all builds.

The CLI ignores the package.json, package-lock.json and tsconfig.json by default.

Test Plan

Ran the cli on the rome repository.

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

Updating the website to remove the "coming soon" from the JSON icon is necessary.

Open questions

How to ignore the package.json... files from within the editor

@MichaReiser MichaReiser requested review from leops, ematipico and a team as code owners January 3, 2023 11:01
@netlify
Copy link

netlify bot commented Jan 3, 2023

Deploy Preview for docs-rometools ready!

Name Link
🔨 Latest commit b514444
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/63bd3a0e685873000ab1c3e5
😎 Deploy Preview https://deploy-preview-4133--docs-rometools.netlify.app/playground
📱 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.

@MichaReiser MichaReiser added A-Formatter Area: formatter L-JSON Language: JSON A-CLI Area: CLI A-Editors Area: editors labels Jan 3, 2023
@MichaReiser MichaReiser added this to the Next milestone Jan 3, 2023
@github-actions
Copy link

github-actions bot commented Jan 3, 2023

Parser conformance results on ubuntu-latest

js/262

Test result main count This PR count Difference
Total 48647 48647 0
Passed 47582 47582 0
Failed 1065 1065 0
Panics 0 0 0
Coverage 97.81% 97.81% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 40 40 0
Passed 37 37 0
Failed 3 3 0
Panics 0 0 0
Coverage 92.50% 92.50% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 6093 6093 0
Passed 1754 1754 0
Failed 4339 4339 0
Panics 0 0 0
Coverage 28.79% 28.79% 0.00%

ts/babel

Test result main count This PR count Difference
Total 639 639 0
Passed 567 567 0
Failed 72 72 0
Panics 0 0 0
Coverage 88.73% 88.73% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 16740 16740 0
Passed 12816 12816 0
Failed 3924 3924 0
Panics 0 0 0
Coverage 76.56% 76.56% 0.00%

@MichaReiser MichaReiser force-pushed the feat/json-formatting branch from 95310b6 to c7ad9f8 Compare January 4, 2023 11:22
@MichaReiser MichaReiser linked an issue Jan 4, 2023 that may be closed by this pull request
6 tasks
@MichaReiser MichaReiser changed the title feat(rome_cli): Enable JSON feat(rome_cli): Enable JSON formatting Jan 4, 2023
Micha Reiser and others added 8 commits January 10, 2023 10:09
Signed-off-by: Micha Reiser <micha@famreiser.ch>
Signed-off-by: Micha Reiser <micha@famreiser.ch>
Signed-off-by: Micha Reiser <micha@famreiser.ch>
Co-authored-by: Superchupu <53496941+SuperchupuDev@users.noreply.github.com>
@ematipico ematipico force-pushed the feat/json-formatting branch from d7bbe2f to b514444 Compare January 10, 2023 10:12
@ematipico
Copy link
Contributor

How to ignore the package.json... files from within the editor

I enabled the JSON formatting for the VSCode extension locally. The files are ignored :)

@ematipico ematipico merged commit 66fe775 into main Jan 10, 2023
@ematipico ematipico deleted the feat/json-formatting branch January 10, 2023 10:43
@Conaclos
Copy link
Contributor

If Rome ignores tsconfig.json, it should also ignore jsconfig.json.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-CLI Area: CLI A-Editors Area: editors A-Formatter Area: formatter L-JSON Language: JSON
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

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