From 846e914fd0c9d78a72a805a782a6827ae590c132 Mon Sep 17 00:00:00 2001 From: Alexandre Nunes Date: Sat, 26 Sep 2020 16:42:14 -0300 Subject: [PATCH] chore: add commit linter --- package-lock.json | 32 ++++++++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 33 insertions(+) diff --git a/package-lock.json b/package-lock.json index 7e3061f..cbe899b 100755 --- a/package-lock.json +++ b/package-lock.json @@ -1499,6 +1499,16 @@ "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", "dev": true }, + "did-you-mean": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/did-you-mean/-/did-you-mean-0.0.1.tgz", + "integrity": "sha1-iFHOgkB5A8tiwSy2rU9naSHM3sM=", + "dev": true, + "requires": { + "levenshtein": "*", + "underscore": "*" + } + }, "diff-sequences": { "version": "24.9.0", "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz", @@ -2448,6 +2458,16 @@ "assert-plus": "^1.0.0" } }, + "git-commit-msg-linter": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/git-commit-msg-linter/-/git-commit-msg-linter-2.7.0.tgz", + "integrity": "sha512-gpkcxIHzPWEkv15ni1NnstL0+BgwnNUyoKIzifSojqrnoflcsVCwd0eUw/d3Yq97LpejqmMxlhPG3IBlPoVfKQ==", + "dev": true, + "requires": { + "chalk": "^2.4.2", + "did-you-mean": "^0.0.1" + } + }, "glob": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", @@ -3559,6 +3579,12 @@ "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true }, + "levenshtein": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/levenshtein/-/levenshtein-1.0.5.tgz", + "integrity": "sha1-ORFzepy1baNF0Aj1V4LG8TiXm6M=", + "dev": true + }, "levn": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", @@ -5294,6 +5320,12 @@ "integrity": "sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ==", "dev": true }, + "underscore": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.11.0.tgz", + "integrity": "sha512-xY96SsN3NA461qIRKZ/+qox37YXPtSBswMGfiNptr+wrt6ds4HaMw23TP612fEyGekRE6LNRiLYr/aqbHXNedw==", + "dev": true + }, "union-value": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", diff --git a/package.json b/package.json index ed99d2f..a9d28f0 100755 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "eslint": "^7.8.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", + "git-commit-msg-linter": "^2.7.0", "jest": "24.9.0", "prettier": "^2.1.1", "ts-jest": "^26.3.0",