GalsenDev221 / website

Galsen DEV's website based on Next JS & Tailwind CSS πŸŽ‰
https://galsen.dev
MIT License
11 stars 11 forks source link

Add prettier to the project #23

Closed NDOY3M4N closed 1 year ago

NDOY3M4N commented 1 year ago

We should add prettier to the list of dependencies. That way we could standardize the format (maybe we could also add eslint πŸ€”).

We can also set up a GitHub action that format files from a PR.

ManuSquall commented 1 year ago

Hello @NDOY3M4N , a github action to format files from a PR? May you explain more please :-)?

NDOY3M4N commented 1 year ago

Yo mister @ManuSquall , it's just an action that will be executed on the modified files every time there is a new PR or commit.

That way all the files on the project will be nicely formatted and there will be no weird indentations 😊.

ManuSquall commented 1 year ago

Didn't know it was possible! Sounds good for me, going to check it🀩!

NDOY3M4N commented 1 year ago

Yup, or we can use a pre-commit hook with Prettier instead of a GH action. That way only the staged files will be formatted ✨