---
title: "Discussion on \"Pre-commit Hooks and Commit Message Validation in Next.js & React Projects\" | Hashnode"
description: "Discussion on \"Pre-commit Hooks and Commit Message Validation in Next.js & React Projects\". A practical guide to setting up Husky and commitlint for linting, type-checking, and build safety in a TypeScript codebase."
url: "https://hashnode.com/posts/pre-commit-hooks-and-commit-message-validation-in-nextjs-and-react-projects/68a35781c99df50d6d22491d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Pre-commit Hooks and Commit Message Validation in Next.js & React Projects](https://fillics.hashnode.dev/pre-commit-hooks-and-commit-message-validation-in-nextjs-and-react-projects?utm_source=hashnode&utm_medium=feed)

A practical guide to setting up Husky and commitlint for linting, type-checking, and build safety in a TypeScript codebase.

Aug 18, 2025 · 3 min read · fillics.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#husky](https://hashnode.com/tag/husky)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Filippo Caliò](https://hashnode.com/@fillics)

@fillics · Milan, Italy

  
[View profile](https://hashnode.com/@fillics)

soft eng, cofounder of https://levelstech.it | building our first AI SaaS for boring businesses in Italy

## Responses 1

Markdown supported · ⌘↵ to post

[Developer Avocado](https://hashnode.com/@AvocaDEV)

[Aug 18, 2025](https://hashnode.com/posts/pre-commit-hooks-and-commit-message-validation-in-nextjs-and-react-projects/68a35781c99df50d6d22491d/comment/68a35b7177956c471cddbe51)

Nice — nothing like Husky yelling at me at 2 AM to remind me I forgot a semicolon. 😂

Do you run yours strict enough to block commits, or just warn so teammates don’t revolt?

[Filippo Caliò](https://hashnode.com/@fillics)

[Aug 18, 2025](https://hashnode.com/posts/pre-commit-hooks-and-commit-message-validation-in-nextjs-and-react-projects/68a35781c99df50d6d22491d/comment/68a35b7177956c471cddbe51#reply-68a398aafa82b2b1e2bc89d7)

😂 since we work in a team, I prefer to block the commits to always have a clean repo ready for prod
