Git pre commit hook with husky and lint staged to format code using php-cs-fixer - React Admin

Опубликовано: 11 Февраль 2025
на канале: Amitav Roy
2,332
21

React JS | Laravel | SPA Github | Git hooks
In this video, we are going to look at how we can use an npm package husky along with lint-staged to format our php files which are staged for git commit using php-cs-fixer. This will allow us to keep our code maintain standard formatting and also allow the developer to not worry about the code format because they know that when they commit the code, this thing will be taken care automatically.

Code: https://github.com/amitavroy/react-sp...