near-in-minutes / frontend

NEAR in Minutes is a NEAR-COOP (NEAR Community Owned and Operated Project) that invites you to binge-watch lessons about the NEAR platform in your favorite language.
https://near-in-minutes.com
0 stars 0 forks source link

update package and added prettier. #72

Closed hiba-machfej closed 3 years ago

hiba-machfej commented 3 years ago

In this PR I have added a fix script to the package "fix": "prettier --write 'src/**/*.js*' 'src/**/*.vue*'". Then ran yarn fix this made the PR a bit big because it changed almost all the files. I will create another file .yml in another PR that will check each PR and make sure that all PRs are the same. and if any PR fails the checks then it will be blocked from being merged. It will be something like the image below.

We can also add specific rules like using single quotes.

Screen Shot 2021-07-27 at 1 07 05 PM
render[bot] commented 3 years ago

Your Render PR Server URL is https://near-in-minutes-com-pr-72.onrender.com.

Follow its progress at https://dashboard.render.com/static/srv-c3vtnfpg7hp1ulqcovpg.

hiba-machfej commented 3 years ago

We can add a .prettierrc.js configuration and add the rules we want. https://prettier.io/docs/en/configuration.html

hiba-machfej commented 3 years ago

@mehtaphysical some files are using single quotes, others are using double-quotes. Also, the print width is not consistent. I tried to add some prettier config. This is a huge PR :/