File tree Expand file tree Collapse file tree 15 files changed +35
-34
lines changed Expand file tree Collapse file tree 15 files changed +35
-34
lines changed Original file line number Diff line number Diff line change 8
8
9
9
## Getting started
10
10
11
- ``` shell
11
+ ```
12
12
npm install --save-dev @commitlint/cli @commitlint/config-angular
13
- echo " module.exports = {extends: ['@commitlint/config-angular']};" > . commitlint.config.js
13
+ echo "module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
14
14
```
15
15
16
16
Consult [ docs/cli] ( http://marionebl.github.io/commitlint/#/reference-cli ) for comprehensive documentation.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).
9
9
10
10
``` sh
11
11
npm install --save-dev @commitlint/config-angular @commitlint/cli
12
- echo " module.exports = {extends: ['@commitlint/config-angular']};" > . commitlint.config.js
12
+ echo " module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
13
13
```
14
14
15
15
## Rules
Original file line number Diff line number Diff line change @@ -5,17 +5,18 @@ Shareable `commitlint` config enforcing lerna package names as scopes.
5
5
Use with [ @commitlint/cli ] ( ../cli ) and [ @commitlint/prompt-cli ] ( ../prompt-cli ) .
6
6
7
7
## Getting started
8
- ``` sh
8
+
9
+ ```
9
10
npm install --save-dev @commitlint/config-lerna-scopes @commitlint/cli
10
- echo " module.exports = {extends: ['@commitlint/config-lerna-scopes']};" > . commitlint.config.js
11
+ echo "module.exports = {extends: ['@commitlint/config-lerna-scopes']};" > commitlint.config.js
11
12
```
12
13
13
14
## Examples
14
15
15
16
```
16
- ❯ cat .commitlintrc
17
+ ❯ cat commitlint.config.js
17
18
{
18
- " extends" : [" lerna-scopes" ]
19
+ extends: ['@commitlint/config- lerna-scopes' ]
19
20
}
20
21
21
22
❯ tree packages
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).
7
7
## Getting started
8
8
``` sh
9
9
npm install --save-dev @commitlint/config-patternplate @commitlint/cli
10
- echo " module.exports = {extends: ['@commitlint/config-patternplate']};" > . commitlint.config.js
10
+ echo " module.exports = {extends: ['@commitlint/config-patternplate']};" > commitlint.config.js
11
11
```
12
12
13
13
## Rules
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @commitlint/prompt-cli" ,
3
3
"version" : " 3.0.3" ,
4
- "description" : " commit prompt using .commitlintrc " ,
4
+ "description" : " commit prompt using commitlint.config.js " ,
5
5
"bin" : {
6
6
"commit" : " ./cli.js"
7
7
},
Original file line number Diff line number Diff line change 1
- > commit prompt using .commitlintrc
1
+ > commit prompt using commitlint.config.js
2
2
3
3
# @commitlint/prompt-cli
4
4
5
5
## Getting started
6
6
7
7
``` bash
8
8
npm install --g @commitlint/prompt-cli @commitlint/config-angular
9
- echo " module.exports = {extends: ['@commitlint/config-angular']};" > . commitlint.config.js
9
+ echo " module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
10
10
```
11
11
12
12
``` bash
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @commitlint/prompt" ,
3
3
"version" : " 3.0.3" ,
4
- "description" : " commitizen prompt using .commitlintrc " ,
4
+ "description" : " commitizen prompt using commitlint.config.js " ,
5
5
"main" : " ./lib/index.js" ,
6
6
"scripts" : {
7
7
"build" : " cross-env NODE_ENV=production babel src --out-dir lib" ,
Original file line number Diff line number Diff line change 1
- > commitizen adapter using .commitlintrc
1
+ > commitizen adapter using commitlint.config.js
2
2
3
3
# @commitlint/prompt
4
4
@@ -10,7 +10,7 @@ Learn how to use it at [docs/prompt](http://marionebl.github.io/commitlint/#/gui
10
10
11
11
``` bash
12
12
npm install --save @commitlint/prompt @commitlint/config-angular commitizen
13
- echo " module.exports = {extends: ['@commitlint/config-angular']};" > . commitlint.config.js
13
+ echo " module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
14
14
```
15
15
16
16
In package.json
Original file line number Diff line number Diff line change 10
10
11
11
12
12
* 🚓 Enforce commit conventions
13
- * 🤖 Plays nice with ` conventional-changelog `
13
+ * 🤖 Plays nicely with ` conventional-changelog `
14
14
* 📦 Supports shareable configuration
15
15
16
16
## Getting started
17
17
18
- ```
18
+ ``` sh
19
19
npm install --save-dev @commitlint/{angular,cli}
20
- echo '{" extends" : [" @commitlint/config-angular"]}' > .commitlintrc
20
+ echo " module.exports = { extends: [' @commitlint/config-angular']} " > commitlint.config.js
21
21
```
22
22
23
23
## CLI
@@ -28,7 +28,7 @@ echo '{"extends": ["@commitlint/config-angular"]}' > .commitlintrc
28
28
29
29
## Config
30
30
31
- * Configuration is picked up from ` . commitlint` files
31
+ * Configuration is picked up from ` commitlint.config.js ` files
32
32
* Packages: [ cli] ( ./@commitlint/cli ) , [ core] ( ./@commitlint/core )
33
33
* See [ Rules] ( ./docs/rules ) for a complete list of possible rules
34
34
* An example configurations can be found at [ @commitlint/config-angular ] ( ./@commitlint/config-angular/index.js )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ npm install -g @commitlint/cli @commitlint/config-angular
37
37
## Configure
38
38
39
39
``` bash
40
- echo " module.exports = {extends: [@commitlint/config-angular']}" > . commitlint.config.js
40
+ echo " module.exports = {extends: [@commitlint/config-angular']}" > commitlint.config.js
41
41
```
42
42
43
43
## Test
You can’t perform that action at this time.
0 commit comments