From 8928bd8a4f02fa0655975ee802a3c2ef379e02e8 Mon Sep 17 00:00:00 2001 From: Edwin Zhang Date: Thu, 6 Jun 2019 11:39:43 -0400 Subject: [PATCH] fix: fix --- README.md | 7 +++---- index.js | 7 +++++-- package.json | 6 +++--- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9b247b2..f0f28b1 100755 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ -# prettier-config -Prettier config +# commitlint-config +Commitlint config ## Install ```bash -npm i -S @voiceflow/prettier-config +npm i -S @voiceflow/commitlint-config ``` - diff --git a/index.js b/index.js index 2dff492..ef98fc0 100755 --- a/index.js +++ b/index.js @@ -1,5 +1,8 @@ +'use strict'; + module.exports = { rules: { 'type-enum': [2, 'always', ['build', 'ci', 'chore', 'docs', 'feat', 'fix', 'merge', 'perf', 'refactor', 'revert', 'style', 'test', 'wip']], - } -} + }, + extends: ['@commitlint/config-conventional'], +}; diff --git a/package.json b/package.json index 742983e..53c0d6f 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@voiceflow/prettier-config", - "description": "Prettier config", + "name": "@voiceflow/commitlint-config", + "description": "Commitlint config", "version": "1.0.1", "author": "Voiceflow", "bugs": { @@ -41,8 +41,8 @@ "url": "git+https://github.com/storyflow/commitlint-config" }, "scripts": { - "prepare": "fixpack", "commit": "git-cz", + "prepare": "fixpack", "test": "echo \"Error: no test specified\" && exit 1" } }