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

Use Prettier for code formatting #86

Open
sciepsilon opened this issue Jun 18, 2021 · 0 comments
Open

Use Prettier for code formatting #86

sciepsilon opened this issue Jun 18, 2021 · 0 comments
Labels
hours or days Tasks that will take more than an hour, but less than 20 hours

Comments

@sciepsilon
Copy link
Member

Working on a codebase that uses Prettier is just... nice. When you read code, it's formatted in a consistent nice way, and when you write code you can have Prettier fix up the formatting instead of manually correcting all your tabs, line breaks, and spaces.

Prettier link: https://prettier.io/

So, let's install Prettier!

  • format all files in this repo using Prettier
  • create a prettierrc.json and add prettier to the package.json file so that it will automatically be installed (at the correct version) for other LingView devs
  • add a Prettier step to the Build & Deploy workflow to ensure all code is prettified before being pushed/merged to the master branch
  • if future LingView devs need to be aware of anything Prettier-related, mention it in the New Contributors guide on the wiki and maybe in the Ultimate Guide
@sciepsilon sciepsilon added the hours or days Tasks that will take more than an hour, but less than 20 hours label Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hours or days Tasks that will take more than an hour, but less than 20 hours
Projects
None yet
Development

No branches or pull requests

1 participant