Skip to content

chaiyaphat20/nextjs-eslint-husky-prettier

Repository files navigation

1.npm install husky --save-dev 2.npm pkg set scripts.prepare="husky install" npm run prepare 3.npm pkg set scripts.pre-commit="npm run format && next lint && git add -A ." 4.npx husky add .husky/pre-commit "npm run pre-commit"

5.วิธีใช้ให้ ทำ git commit -m "ข้อความ" ก่อน commit จะมีการ formatcode และ check eslint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published