commitlint-config-travi
Advanced tools
Comparing version 1.0.0 to 1.1.0
16
index.js
@@ -1,1 +0,15 @@ | ||
module.exports = {extends: ['@commitlint/config-angular']}; | ||
const config = require('@commitlint/config-angular'); | ||
module.exports = { | ||
extends: ['@commitlint/config-angular'], | ||
rules: { | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
...config.rules['type-enum'][2], | ||
'wip' | ||
] | ||
] | ||
} | ||
}; |
{ | ||
"name": "commitlint-config-travi", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "shareable config for commitlint", | ||
@@ -29,9 +29,9 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@commitlint/prompt": "3.1.2", | ||
"@travi/eslint-config-travi": "1.3.9", | ||
"@commitlint/prompt": "3.2.0", | ||
"@travi/eslint-config-travi": "1.5.6", | ||
"globstar": "1.0.0", | ||
"husky": "0.14.3", | ||
"markdownlint-cli": "0.3.1", | ||
"npm-run-all": "4.0.2", | ||
"semantic-release": "7.0.1" | ||
"npm-run-all": "4.1.1", | ||
"semantic-release": "7.0.2" | ||
}, | ||
@@ -38,0 +38,0 @@ "dependencies": { |
@@ -1,2 +0,2 @@ | ||
# shareable config for commitlint | ||
# shareable config for [commitlint](https://github.com/marionebl/commitlint) | ||
@@ -10,1 +10,25 @@ [![license](https://img.shields.io/github/license/travi/commitlint-config-travi.svg)](LICENSE) | ||
[![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) | ||
## Usage | ||
### Installation | ||
```sh | ||
$ npm install commitlint-config-travi -D | ||
``` | ||
### Define the config for your project | ||
```sh | ||
$ echo "module.exports = {extends: ['travi']};" > commitlint.config.js | ||
``` | ||
### Define the npm script for [husky](https://github.com/typicode/husky) | ||
```json | ||
{ | ||
"scripts": { | ||
"commitmsg": "commitlint -e" | ||
} | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4929
15
34
0