Skip to content

Commit

Permalink
add prettier to pre commit hood, add pre-commit local setup to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed Jun 9, 2024
1 parent 583172c commit 586fc9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
1 change: 1 addition & 0 deletions server/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ README.md
supabase/.temp*
tailwind.config.ts
tsconfig.json
.next/*

0 comments on commit 586fc9d

Please sign in to comment.