Skip to content

Commit

Permalink
Added pre-commit linting
Browse files Browse the repository at this point in the history
I made a new package.json at the root of the project which just has husky and a workspace for the static package. This will run prettier, eslint, and tsc on pre-commit.
  • Loading branch information
sheodox committed Feb 8, 2022
1 parent 5cbd25d commit ad2bbbb
Show file tree
Hide file tree
Showing 15 changed files with 11,584 additions and 50 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
node_modules
service-account-file.json
public-firebase-config.json
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Requirements:

Create a `.env` file and setup Firebase as described above. Run the server with `./run.sh dev`. Any time you make changes to Go code run `docker-compose restart api` in a separate terminal window to restart the server with your changes.

The frontend in development is built and hosted by [Vite](https://vitejs.dev/). Run `npm i` to install dependencies, then run `npm run dev` to start the Vite dev server.
The frontend in development is built and hosted by [Vite](https://vitejs.dev/). Run `npm i` in the project root to install dependencies, then change directories to `src/static` and run `npm run dev` to start the Vite dev server.

View the site at [http://localhost:3000](http://localhost:3000).

Expand Down
Loading

0 comments on commit ad2bbbb

Please sign in to comment.