Skip to content

Commit ac7652f

Browse files
committed
Fix ESLint errors
1 parent a98ed8f commit ac7652f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plugins/emoji.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable camelcase */
22
const AllGithubEmoji = {
3-
'100': 'unicode/1f4af',
4-
'1234': 'unicode/1f522',
3+
100: 'unicode/1f4af',
4+
1234: 'unicode/1f522',
55
'+1': 'unicode/1f44d',
66
'-1': 'unicode/1f44e',
77
'1st_place_medal': 'unicode/1f947',
@@ -1804,8 +1804,8 @@ const AllGithubEmoji = {
18041804

18051805
// Emoji from GitHub API
18061806
// https://api.github.com/emojis
1807-
window.emojify = function(match, $1) {
1808-
return AllGithubEmoji.hasOwnProperty($1) === false
1807+
window.emojify = function (match, $1) {
1808+
return Object.prototype.hasOwnProperty.call(AllGithubEmoji, $1) === false
18091809
? match
18101810
: '<img class="emoji" src="https://github.githubassets.com/images/icons/emoji/' +
18111811
AllGithubEmoji[$1] +

0 commit comments

Comments
 (0)