tursodatabase / libsql-client-ts

TypeScript/JavaScript client API for libSQL
https://docs.turso.tech/sdk/ts/quickstart
MIT License
182 stars 30 forks source link

Integrate prettier with pre-commit hooks #207

Closed giovannibenussi closed 1 month ago

giovannibenussi commented 1 month ago

This PR adds support for prettier and also runs it on pre-commit, so we make sure that all commits to the repository are formatted as expected.

Here's what I added:

prettier formats the code, lint-staged runs prettier only on files that were added with git add , and husky run these on every commit.