orca-so / typescript-sdk

The Orca SDK contains a set of simple to use APIs to allow developers to integrate with the Orca platform.
155 stars 49 forks source link

Add a pre-commit hook to run prettier #3

Closed oritheorca closed 3 years ago

oritheorca commented 3 years ago

This PR adds a pre-commit hook using husky that runs yarn run prettier-format on all staged files, so unformatted files cannot make it into the repo.

@odcheung Can you add documentation about the lint/prettier setup when you add the README?

Some references: https://khalilstemmler.com/blogs/tooling/prettier/