Laravel 10.x + Livewire 3.x Pre-Commit Linting and Formatting
Introduction When creating Laravel+Livewire projects, especially for teams, pre-commit hooks come in handy by ensuring everyone on the team follows the same formatting standards and adheres to some level of code quality. In this blog-post we will use: husky: Sets up pre-commit hooks prettier: To format *.css, *.js and *.blade files. @shufo/prettier-plugin-blade: A prettier plugin for formatting *blade files laravel/pint: to format PHP files like classes, traits, etc. larastan: does PHP static analysis....