FCCColumbus / cbus-web

FreeCodeCamp Columbus Website (started in 2022)
BSD 3-Clause "New" or "Revised" License
6 stars 7 forks source link

Add Prettier code auto-formatting #9

Open amyngb opened 2 years ago

amyngb commented 2 years ago

User Story AS A user interested in Free Code Camp Columbus I WANT to navigate an attractive website with superior quality and engineering practices SO THAT I can be interested to code for free

Prettier is an opinionated code formatter with support for JavaScript, CSS and JSON. https://prettier.io/docs/en/index.html

Add Prettier code autoformatting to the code base, via a pre-commit git hook: https://prettier.io/docs/en/precommit.html

Here are the recommended steps for setting it up in Create-React-App: https://create-react-app.dev/docs/setting-up-your-editor/#formatting-code-automatically

Acceptance Criteria

  1. Prettier GIVEN I am a developer for Free Code Camp Columbus WHEN I write code and commit a file THEN the code is automatically formatted according to a standard
readysetagile commented 2 years ago

Moving back to "Ready to be staged". This feature is not in production yet