chore(pre-commit): check commit message using commitlint

This commit is contained in:
Dafydd Jones 2020-07-02 03:25:34 +01:00
parent b3a3f04d09
commit 5cdefdc6a5

13
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,13 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v2.2.3
hooks:
- id: commitlint
name: Check commit message against @commitlint/config-conventional rules
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional@8.3.4']