Fix lint
This commit is contained in:
parent
948f17ae4f
commit
6686142f9e
3 changed files with 6 additions and 4 deletions
|
@ -20,8 +20,8 @@ const emojiMap = require('./emoji_map.json');
|
||||||
// This json file is downloaded from https://github.com/iamcal/emoji-data/
|
// This json file is downloaded from https://github.com/iamcal/emoji-data/
|
||||||
// and is used to correct the sheet coordinates since we're using that repo's sheet
|
// and is used to correct the sheet coordinates since we're using that repo's sheet
|
||||||
const emojiSheetData = require('./emoji_sheet.json');
|
const emojiSheetData = require('./emoji_sheet.json');
|
||||||
const unicodeToFilename = require('./unicode_to_filename_s');
|
const { unicodeToFilename } = require('./unicode_to_filename_s');
|
||||||
const unicodeToUnifiedName = require('./unicode_to_unified_name_s');
|
const { unicodeToUnifiedName } = require('./unicode_to_unified_name_s');
|
||||||
|
|
||||||
// Grabbed from `emoji_utils` to avoid circular dependency
|
// Grabbed from `emoji_utils` to avoid circular dependency
|
||||||
function unifiedToNative(unified) {
|
function unifiedToNative(unified) {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// taken from:
|
// taken from:
|
||||||
// https://github.com/twitter/twemoji/blob/47732c7/twemoji-generator.js#L848-L866
|
// https://github.com/twitter/twemoji/blob/47732c7/twemoji-generator.js#L848-L866
|
||||||
export default function unicodeToFilename(str) {
|
// eslint-disable-next-line import/no-commonjs, no-undef
|
||||||
|
exports.unicodeToFilename = (str) => {
|
||||||
let result = '';
|
let result = '';
|
||||||
let charCode = 0;
|
let charCode = 0;
|
||||||
let p = 0;
|
let p = 0;
|
||||||
|
|
|
@ -6,7 +6,8 @@ function padLeft(str, num) {
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function unicodeToUnifiedName(str) {
|
// eslint-disable-next-line import/no-commonjs, no-undef
|
||||||
|
exports.unicodeToUnifiedName = (str) => {
|
||||||
let output = '';
|
let output = '';
|
||||||
|
|
||||||
for (let i = 0; i < str.length; i += 2) {
|
for (let i = 0; i < str.length; i += 2) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue