Skip to content

Commit 5e2e859

Browse files
committed
fix: update usage documentation
1 parent 814c412 commit 5e2e859

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Use the `"extends": "awesome"` property in your `commitlint` config, then add an
4444
```json
4545
{
4646
"commitlint": {
47-
"extends": "awesome"
47+
"extends": ["awesome"]
4848
}
4949
}
5050
```
@@ -53,21 +53,21 @@ Use the `"extends": "awesome"` property in your `commitlint` config, then add an
5353

5454
```json
5555
{
56-
"extends": "awesome"
56+
"extends": ["awesome"]
5757
}
5858
```
5959

6060
### Using `.commitlintrc.yml` file
6161

6262
```yaml
63-
extends: awesome
63+
extends: [awesome]
6464
```
6565
6666
### Using `commitlint.config.js`, `.commitlintrc.js` file
6767

6868
```js
6969
module.exports = {
70-
extends: 'awesome'
70+
extends: ['awesome']
7171
};
7272
```
7373

@@ -81,7 +81,7 @@ You can override the rules immediately following the `extends` property. See the
8181

8282
```json
8383
{
84-
"extends": "awesome",
84+
"extends": ["awesome"],
8585
"rules": {
8686
"header-max-length": [0, "always", 100]
8787
}
@@ -91,7 +91,7 @@ You can override the rules immediately following the `extends` property. See the
9191
### Using YAML
9292

9393
```yaml
94-
extends: awesome
94+
extends: [awesome]
9595
rules:
9696
header-max-length: [0, 'always', 100]
9797
```
@@ -100,7 +100,7 @@ rules:
100100

101101
```js
102102
module.exports = {
103-
extends: 'awesome',
103+
extends: ['awesome'],
104104
rules: {
105105
'header-max-length': [0, 'always', 100]
106106
}

0 commit comments

Comments
 (0)