@arbetsmyra/commitlint-config
Version:
Arbetsmyra's commitlint config
70 lines (48 loc) • 1.72 kB
Markdown
# [`commitlint-config`](https://github.com/arbetsmyra/commitlint-config)
Arbetsmyra's [commitlint config](https://commitlint.js.org/#/concepts-shareable-config)
[](https://github.com/arbetsmyra/commitlint-config)
[](https://www.npmjs.com/package/@arbetsmyra/commitlint-config)
[](https://github.com/arbetsmyra/commitlint-config/blob/master/LICENSE)
## Installation
### Requirements
- `node` >= v10
- `npm` >= v5
- `@commitlint/cli` >= 9.1
```bash
npm install --save-dev @commitlint/cli @arbetsmyra/commitlint-config
```
## Usage
Once the `@arbetsmyra/commitlint-config` package is installed, you can use it by specifying the `@arbetsmyra` config for the [`extends`](https://commitlint.js.org/#/reference-configuration?id=shareable-configuration) property in the [commitlint configuration](https://commitlint.js.org/#/reference-configuration?id=shareable-configuration).
`commitlint.config.js`:
```js
module.exports = {
extends: ['@arbetsmyra'],
};
```
`package.json`:
```json
{
"commitlint": {
"extends": ["@arbetsmyra"]
}
}
```
### Running commitlint with husky
Install husky:
```bash
npm install --save-dev husky
```
Update `package.json` with:
```json
{
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}
```
## Contributing
If you want to contribute and make our project better, your help is very welcome.
## License
[MIT © Arbetsmyra](https://choosealicense.com/licenses/mit/)