manaaan / ekolivs-monorepo

0 stars 0 forks source link

Document best pratices for working on the repo #4

Open jakappl opened 10 months ago

jakappl commented 10 months ago

My stupid friend is wondering why his local package-lock.json got wonky all of a sudden. Some things from remote was removed, other things was added.

I suspect he did the things in the wrong order.

So:

git pull npm install (do stuff) npm run format npm run lint (npm run check?) git add, commit, push

Also: Should we use something like pre-commit to simplify the workflow and avoid cluttering diffs with linting stuff?

manaaan commented 10 months ago

Yes we should just set up pre-commit to avoid any missed linting