Skip to content

Add pre-commit hooks for Prisma schema validation #607

Description

@Abdulazeem-code

Description

Contributors can commit invalid Prisma schema changes that break the build. The existing Husky hooks only run ESLint.

Proposed Solution

Add a prisma validate step to the Husky pre-commit hook. This catches schema syntax errors before they reach CI.

Acceptance Criteria

  • Husky pre-commit runs prisma validate
  • Invalid schema blocks commit with clear error
  • Hook skipped if no .prisma files changed
  • Documented in CONTRIBUTING.md

Suggested Implementation Areas

.husky/pre-commit, package.json

Impact

Catches Prisma schema errors locally before they waste CI minutes and block other contributors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions