outerbase / sdk

Typescript ORM and automated model generation direct from your database schema. Supports Outerbase features for saved queries & AI.
https://outerbase.com
MIT License
12 stars 5 forks source link

Trigger prettier formatting on git commit hook #29

Closed Brayden closed 6 months ago

Brayden commented 6 months ago

Purpose

When you commit changes to the repository, use a pre-commit hook to ensure the formatting of the files is consistent based on a .prettierrc.json file. Some files, such as our .handlebars model output files, are in the .prettierignore file so they are not formatted.

Tasks

Verify

Before

After