Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliasnorrby/commitlint-config
:lock_with_ink_pen: Reusable commitlint config
https://github.com/eliasnorrby/commitlint-config
cicd commitlint config
Last synced: about 24 hours ago
JSON representation
:lock_with_ink_pen: Reusable commitlint config
- Host: GitHub
- URL: https://github.com/eliasnorrby/commitlint-config
- Owner: eliasnorrby
- License: mit
- Created: 2019-09-17T14:50:09.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T19:29:56.000Z (over 1 year ago)
- Last Synced: 2024-10-02T09:54:01.077Z (about 1 month ago)
- Topics: cicd, commitlint, config
- Language: JavaScript
- Homepage:
- Size: 916 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Commitlint Config
[![Travis](https://img.shields.io/travis/com/eliasnorrby/commitlint-config?style=for-the-badge)](https://travis-ci.com/eliasnorrby/commitlint-config)
[![npm](https://img.shields.io/npm/v/@eliasnorrby/commitlint-config?style=for-the-badge)](https://www.npmjs.com/package/@eliasnorrby/commitlint-config)[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=eliasnorrby/commitlint-config)](https://dependabot.com)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)My commitlint config. Right now it only extends
`@commitlint/config-conventional`, but that could change.:warning: This project is no longer actively maintained :warning:
# Setup
## Using `npx`
Run the following command to install and configure commitlint
```sh
npx @eliasnorrby/commitlint-config
```This will run a setup script, adding this package to `devDependencies`,
intalling `husky`, populating the `husky.hooks.commit-msg` field in
`package.json`, setting the git commit template to `.gitmessage` and writing the
config to `commitlint.config.js`.### `--no-install`
Run setup with the `--no-install` flag to avoid installing this package as a
dependency. Your `commitling.config.js` will instead extend
`@commitlint/config-conventional`.## Manually
Install the package
```sh
npm i -D @eliasnorrby/commitlint-config
```and add the configuration to `commitlint.config.js`.
### `commitlint.config.js`
```js
module.exports = require('@eliasnorrby/commitlint-config')
```# Overriding settings
Just add your overrides to `commitlint.config.js`:
```js
module.exports = {
...require('@eliasnorrby/commitlint-config'),
rules: {
'header-max-length': [0, 'always', 72],
},
}
```