mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
30 lines
871 B
YAML
30 lines
871 B
YAML
# Pre-commit configuration
|
|
# See https://pre-commit.com for more information
|
|
repos:
|
|
# Frontend checks
|
|
- repo: local
|
|
hooks:
|
|
- id: frontend-format
|
|
name: Frontend Format (Prettier)
|
|
entry: bash -c "cd frontend && npm run format"
|
|
language: system
|
|
files: ^frontend/.*\.(ts|tsx|js|jsx|json|css|md)$
|
|
pass_filenames: false
|
|
|
|
- id: frontend-lint
|
|
name: Frontend Lint (ESLint)
|
|
entry: bash -c "cd frontend && npm run lint"
|
|
language: system
|
|
files: ^frontend/.*\.(ts|tsx|js|jsx)$
|
|
pass_filenames: false
|
|
|
|
# Backend checks
|
|
- repo: local
|
|
hooks:
|
|
- id: backend-format-and-lint
|
|
name: Backend Format & Lint (golangci-lint)
|
|
entry: bash -c "cd backend && golangci-lint run --fix"
|
|
language: system
|
|
files: ^backend/.*\.go$
|
|
pass_filenames: false
|