Skip to content

Commit 192a40b

Browse files
committed
docs: use new commitlint.config.js name in all examples
- raised in #47 - motivates #48
1 parent 3acf0e1 commit 192a40b

File tree

15 files changed

+35
-34
lines changed

15 files changed

+35
-34
lines changed

@commitlint/cli/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
## Getting started
1010

11-
```shell
11+
```
1212
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
1414
```
1515

1616
Consult [docs/cli](http://marionebl.github.io/commitlint/#/reference-cli) for comprehensive documentation.

@commitlint/config-angular/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).
99

1010
```sh
1111
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
1313
```
1414

1515
## Rules

@commitlint/config-lerna-scopes/readme.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@ Shareable `commitlint` config enforcing lerna package names as scopes.
55
Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).
66

77
## Getting started
8-
```sh
8+
9+
```
910
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
1112
```
1213

1314
## Examples
1415

1516
```
16-
❯ cat .commitlintrc
17+
❯ cat commitlint.config.js
1718
{
18-
"extends": ["lerna-scopes"]
19+
extends: ['@commitlint/config-lerna-scopes']
1920
}
2021
2122
❯ tree packages

@commitlint/config-patternplate/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli).
77
## Getting started
88
```sh
99
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
1111
```
1212

1313
## Rules

@commitlint/prompt-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@commitlint/prompt-cli",
33
"version": "3.0.3",
4-
"description": "commit prompt using .commitlintrc",
4+
"description": "commit prompt using commitlint.config.js",
55
"bin": {
66
"commit": "./cli.js"
77
},

@commitlint/prompt-cli/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
> commit prompt using .commitlintrc
1+
> commit prompt using commitlint.config.js
22
33
# @commitlint/prompt-cli
44

55
## Getting started
66

77
```bash
88
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
1010
```
1111

1212
```bash

@commitlint/prompt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@commitlint/prompt",
33
"version": "3.0.3",
4-
"description": "commitizen prompt using .commitlintrc",
4+
"description": "commitizen prompt using commitlint.config.js",
55
"main": "./lib/index.js",
66
"scripts": {
77
"build": "cross-env NODE_ENV=production babel src --out-dir lib",

@commitlint/prompt/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
> commitizen adapter using .commitlintrc
1+
> commitizen adapter using commitlint.config.js
22
33
# @commitlint/prompt
44

@@ -10,7 +10,7 @@ Learn how to use it at [docs/prompt](http://marionebl.github.io/commitlint/#/gui
1010

1111
```bash
1212
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
1414
```
1515

1616
In package.json

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111

1212
* 🚓 Enforce commit conventions
13-
* 🤖 Plays nice with `conventional-changelog`
13+
* 🤖 Plays nicely with `conventional-changelog`
1414
* 📦 Supports shareable configuration
1515

1616
## Getting started
1717

18-
```
18+
```sh
1919
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
2121
```
2222

2323
## CLI
@@ -28,7 +28,7 @@ echo '{"extends": ["@commitlint/config-angular"]}' > .commitlintrc
2828

2929
## Config
3030

31-
* Configuration is picked up from `.commitlint` files
31+
* Configuration is picked up from `commitlint.config.js` files
3232
* Packages: [cli](./@commitlint/cli), [core](./@commitlint/core)
3333
* See [Rules](./docs/rules) for a complete list of possible rules
3434
* An example configurations can be found at [@commitlint/config-angular](./@commitlint/config-angular/index.js)

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ npm install -g @commitlint/cli @commitlint/config-angular
3737
## Configure
3838

3939
```bash
40-
echo "module.exports = {extends: [@commitlint/config-angular']}" > .commitlint.config.js
40+
echo "module.exports = {extends: [@commitlint/config-angular']}" > commitlint.config.js
4141
```
4242

4343
## Test

0 commit comments

Comments
 (0)