DEV Community

Saepul Malik
Saepul Malik

Posted on

Menambakan Husky Pada Nextjs 14

Husky adalah alat Node.js yang memudahkan konfigurasi git hooks. Git hooks adalah skrip yang dijalankan sebelum atau setelah tindakan git tertentu. Dengan menggunakan Husky, Anda dapat memastikan bahwa kualitas kode, standar pemformatan, dan aturan khusus proyek diikuti.

  • Install Husky

npm install husky@latest -D

  • Inisialisasi husky pada project

npx husky init

  • Menambahkan git hook

setelah inisialisasi dijalankan maka akan ada folder .husky kemudian pada file pre-commit kemudian tambahkan semua script formating yang kamu perlukan

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay