multiverseweb / Dataverse

This software is currently under development. It can be used to visualise data into various forms of plots ranging from primary to advanced level. It can also be used as a finance tracker.
https://multiverse-dataverse.netlify.app
MIT License
39 stars 109 forks source link

Added prettier to the project #335

Closed amin-xiv closed 4 days ago

amin-xiv commented 1 week ago

Description

I have added the Prettier setup to the project.

Related Issue

Fixes #321

Note:

Type of change

Checklist

github-actions[bot] commented 1 week ago

🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer from team will review it as soon as possible. We appreciate your support in making Dataverse better.

netlify[bot] commented 1 week ago

Deploy Preview for multiverse-dataverse ready!

Name Link
Latest commit 1e4e8fc4c862ecc09725bc8530bc0aef547bff9b
Latest deploy log https://app.netlify.com/sites/multiverse-dataverse/deploys/673a05594f29d90008c382c3
Deploy Preview https://deploy-preview-335--multiverse-dataverse.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 configuration.

multiverseweb commented 1 week ago

@amin-xiv I will test and review it soon

multiverseweb commented 4 days ago

Hey @amin-xiv, I tested the PR, it works great. But I had to run the Format Document to run Prettier. So I had a doubt that it does not run automatically upon saving the files, right?

Also, is it possible to put the newly added files in some directory? So that there not too many files in the root directory. I understand that some files need to be in the root directory for automatic detection. Just let me know if some movement is possible.

Checkout this prettier.PNG too and upload the correct image. image You can create a new cleaner pull request with the stated changes or make them in the existing one.

amin-xiv commented 4 days ago

Hey @multiverseweb, Regarding the issue that it doesn't format on save, it should actually do. I tested it by deleting prettier, then creating a new directory, cloning the branch on the new directory and doing all of the steps and it works fine. But I can provide some extra steps for it to work.

About making the root directory look less crowded, I will be changing the location of .prettierignore and .prettierrc files from root directory to the website folder in a new PR since they are only needed there.

Let me know your thoughts.