Skip to content

Commit 88bd97e

Browse files
committed
Fix: change emojies plural to emoji
BEARKING CHANGE: change the name emojies
1 parent 1ca3d30 commit 88bd97e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.sgcrc_default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scope": false,
44
"moreInfo": true
55
},
6-
"emojies": false,
6+
"emoji": false,
77
"types": [
88
{
99
"emoji": ":wrench:",

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ You can even create a global config. Just go to your users home and create a `.s
4242

4343
**Options:**
4444
- [questions](#questions)
45-
- [emojies](#emojies)
45+
- [emoji](#emoji)
4646
- [types](#types)
4747
- [rules](#rules)
4848

@@ -65,18 +65,18 @@ Example:
6565
}
6666
```
6767

68-
### emojies
68+
### emoji
6969

7070
**Type:** `boolean`
7171

7272
**Default:** `true`
7373

74-
A boolean to enable emojies at the beginning of a commit message
74+
A boolean to enable emoji at the beginning of a commit message
7575

7676
Example:
7777
```json
7878
{
79-
"emojies": true
79+
"emoji": true
8080
}
8181
```
8282

lib/questions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const choices = (config) => {
66
const choicesList = [];
77

88
config.types.forEach((type) => {
9-
const emoji = config.emojies && type.emoji ? `${type.emoji} ` : '';
9+
const emoji = config.emoji && type.emoji ? `${type.emoji} ` : '';
1010
const configType = type.type;
1111
const description = type.description || '';
1212

test/fixtures/.sgcrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"scope": false,
44
"moreInfo": true
55
},
6-
"emojies": false,
6+
"emoji": false,
77
"types": [
88
{
99
"emoji": ":emo:",

test/questions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test('choices are rendered without emojis', (t) => {
4040
test('choices are rendered with emojis (default)', (t) => {
4141
const sgc = getConfig(path.join(fixtures, '.sgcrc'));
4242

43-
sgc.emojies = true;
43+
sgc.emoji = true;
4444

4545
const choicesList = choices(sgc);
4646

0 commit comments

Comments
 (0)