# commitlint

# Introduction

Commitlint is used to check the commit messages based on the code consistency rules.

You can use commitlint standalone, but it develops its full potential when husky is used with it.

When not used with husky, no check is made beforehand whether the commit messages comply with the code consistency rules.

# launchpad commitlint

If you want to use commitlint standalone, you can add it to your project by running the following command:

Install commitlint
rocket launchpad commitlint

Link to the commitlint documentation

# Test commitlint

you can test if the commitlint is working with:

Test commitlint
echo 'foo: this wont work' | yarn commitlint