Replies: 1 comment
-
This has been resolved in #926 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Even though we have Prettier set up, still some code with inconsistent formatting just shows up.
This is highly understandable, as not everyone is aware of Prettier or the shortcut combinations to automatically format their files in VSCode.
Inconsistent formatting is not a very big issue, but it's a good practice to have good code in place. It shows professionalism. Lot of seasoned programmers scoff at projects with inconsistent formatting, and this may decrease our turn in of new developers.
Solution
I suggest 2 solutions:
The command is
npx prettier --write "./**/*.{html,css,js}"
prettier
is already locally installed in package.json.My opinion: 1st one is too overkill right now, as we don't have too much members. The 2nd seems good enough and feasible. Once in a few weeks, me or someone else will just do the task of formatting only. Formatting doesn't break any code, so it's perfectly safe
I need your thoughts @twindle-co/developer
Beta Was this translation helpful? Give feedback.
All reactions