diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c648c9..680eff9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,3 +32,9 @@ repos: files: ^server/ types_or: [javascript, jsx, ts, tsx] pass_filenames: false + - id: prettier + name: prettier + entry: npx --prefix server prettier --config=server/.prettierrc --ignore-path=server/.prettierignore --check server + language: system + files: ^server/ + types_or: [javascript, jsx, ts, tsx] diff --git a/README.md b/README.md index e69b077..33b612d 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,10 @@ Requirements: 3. [Supabase CLI](https://supabase.com/docs/guides/cli/getting-started) 4. Docker +#### Pre-commit Hooks + +Github is setup to run pre-commit hooks specified in .pre-commit-config.yaml. If you want to use it locally, in the virtual environment, run `pre-commit install`. + #### macOS install diff --git a/server/.prettierignore b/server/.prettierignore index ce71c14..cba0378 100644 --- a/server/.prettierignore +++ b/server/.prettierignore @@ -5,3 +5,4 @@ README.md supabase/.temp* tailwind.config.ts tsconfig.json +.next/*