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

[Website] Proposal to add Prettier to the project. #321

Open
amin-xiv opened this issue Nov 7, 2024 · 0 comments
Open

[Website] Proposal to add Prettier to the project. #321

amin-xiv opened this issue Nov 7, 2024 · 0 comments
Labels
Review Queued Waiting for the Dataverse's Maintainer to review this issue.

Comments

@amin-xiv
Copy link
Contributor

amin-xiv commented Nov 7, 2024

Have an idea for a new feature? Please fill out the sections below. 😊

Current Behaviour

Currently, there is no 'standard' in terms of formatting code.

Proposed Solution

Adding a prettier setup to the project, since it will standardize lots of the formatting on save, which will make the process of collaboration easier and smoother.
If I get assigned to do this (hopefully), I would like to be provided with these values:

  • printWidth : The line length where Prettier will try to wrap the code. If the line is longer than this value, Prettier will attempt to break it into multiple line.
  • tabWidth : Determines how many spaces Prettier uses for indentation. (Preferably 4).
  • useTabs : Can be true/false, helps prettier determine whether to use spacing or tabs for indentation.
  • bracketSpacing : Can either be true/false, if it is true, braces/brackets will seem like this { value: key }, if false it will seem like this: {value: key}.
  • arrowPens : can either be true/false, determines whether to wrap perimeters of arrow functions with parenthesis or no even though if it has exactly one parameter.
  • trailingComma : can either be true/false, simply determines whether to place trailing commas or no.

Those are simply the ones I thought that might be relevant and useful. I would like to hear your opinion.

Screenshot/Mockup (Optional)

Alternatives Considered

Additional Context

Requirement/Document

@github-actions github-actions bot added the Review Queued Waiting for the Dataverse's Maintainer to review this issue. label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review Queued Waiting for the Dataverse's Maintainer to review this issue.
Projects
None yet
Development

No branches or pull requests

1 participant