Skip to content

Commit

Permalink
feat(ui): add frontend lint pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
dshemin committed Nov 29, 2023
1 parent 3ac1ae5 commit f76a108
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ repos:
- id: check-added-large-files
- repo: local
hooks:
- id: lint
name: "Run make lint"
- id: backend-lint
name: "Lint backend"
entry: env sh -c 'make lint'
language: system
- id: frontend-lint
name: "Lint frontend"
entry: env sh -c 'yarn --cwd ui lint'
language: system
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ lint/sql:
.PHONY:devdeps
devdeps:
pip3 install -r requirements.txt
pre-commit install

.PHONY: migrate
migrate:
Expand Down

0 comments on commit f76a108

Please sign in to comment.