Initialize in Your Repository
Install commitlint in your repository
Section titled “Install commitlint in your repository”In your project directory, run:
commitlint installThis command adds commitlint to your repository by installing necessary hooks and configuration to lint commit messages before they are created or pushed.