1. Home
  2. Docs
  3. Engineering
  4. Git Best Practices
  5. Use Linter in Git Pre-Commit Hook

Use Linter in Git Pre-Commit Hook

It’s good best practice to use linter regularly, especially as git pre-commit hook, using husky.


PHP Projects


composer require --dev friendsofphp/php-cs-fixer
yarn add --dev husky lint-staged

Was this article helpful to you? Yes 1 No

How can we help?

Leave a Reply

Your email address will not be published. Required fields are marked *