diff --git a/.czrc b/.czrc new file mode 100644 index 0000000..bb1b0c6 --- /dev/null +++ b/.czrc @@ -0,0 +1,53 @@ +{ + "path": "node_modules/cz-conventional-changelog", + "types": { + "feat": { + "description": "A new feature", + "title": "Features" + }, + "fix": { + "description": "A bug fix", + "title": "Bug Fixes" + }, + "docs": { + "description": "Documentation only changes", + "title": "Documentation" + }, + "style": { + "description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)", + "title": "Styles" + }, + "refactor": { + "description": "A code change that neither fixes a bug nor adds a feature", + "title": "Code Refactoring" + }, + "perf": { + "description": "A code change that improves performance", + "title": "Performance Improvements" + }, + "test": { + "description": "Adding missing tests or correcting existing tests", + "title": "Tests" + }, + "build": { + "description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)", + "title": "Builds" + }, + "ci": { + "description": "Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)", + "title": "Continuous Integrations" + }, + "chore": { + "description": "Other changes that don't modify src or test files", + "title": "Chores" + }, + "revert": { + "description": "Reverts a previous commit", + "title": "Reverts" + }, + "story": { + "title": "Storybook", + "description": "Changes to Storybook configuration or stories" + } + } +} diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..afc8275 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,7 @@ +const config = require('@commitlint/config-conventional') + +const types = config.rules['type-enum'][2] + +config.rules['type-enum'][2] = ['story'].concat(types) + +module.exports = config diff --git a/package.json b/package.json index 88749d6..3eac42e 100644 --- a/package.json +++ b/package.json @@ -24,17 +24,7 @@ "packages/*", "apps/*" ], - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ] - }, "lint-staged": { "*": "yarn run format:fix" - }, - "config": { - "commitizen": { - "path": "node_modules/cz-conventional-changelog" - } } }