File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # Pre-commit configuration
2+ # See https://pre-commit.com for more information
3+ repos :
4+ # Frontend checks
5+ - repo : local
6+ hooks :
7+ - id : frontend-format
8+ name : Frontend Format (Prettier)
9+ entry : powershell -Command "cd frontend; npm run format"
10+ language : system
11+ files : ^frontend/.*\.(ts|tsx|js|jsx|json|css|md)$
12+ pass_filenames : false
13+
14+ - id : frontend-lint
15+ name : Frontend Lint (ESLint)
16+ entry : powershell -Command "cd frontend; npm run lint"
17+ language : system
18+ files : ^frontend/.*\.(ts|tsx|js|jsx)$
19+ pass_filenames : false
20+
21+ # Backend checks
22+ - repo : local
23+ hooks :
24+ - id : backend-format-and-lint
25+ name : Backend Format & Lint (golangci-lint)
26+ entry : powershell -Command "cd backend; golangci-lint fmt; golangci-lint run"
27+ language : system
28+ files : ^backend/.*\.go$
29+ pass_filenames : false
You can’t perform that action at this time.
0 commit comments