From 0befb30dc8599436201dfba5ca1a60c2766b25ca Mon Sep 17 00:00:00 2001 From: Etienne Lemay Date: Thu, 7 Jul 2016 13:35:22 -0400 Subject: [PATCH] [cleanup] --- scripts/build-data.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/build-data.js b/scripts/build-data.js index d8c0f3f..04a363d 100644 --- a/scripts/build-data.js +++ b/scripts/build-data.js @@ -1,11 +1,11 @@ -var fs = require('fs') -var emojiData = require('emoji-data') -var inflection = require('inflection') -var mkdirp = require('mkdirp') +var fs = require('fs'), + emojiData = require('emoji-data'), + inflection = require('inflection'), + mkdirp = require('mkdirp') -var categories = ['People', 'Nature', 'Foods', 'Activity', 'Places', 'Objects', 'Symbols', 'Flags'] -var data = { categories: [], emojis: {}, skins: {} } -var categoriesIndex = {} +var categories = ['People', 'Nature', 'Foods', 'Activity', 'Places', 'Objects', 'Symbols', 'Flags'], + data = { categories: [], emojis: {}, skins: {} }, + categoriesIndex = {} categories.forEach((category, i) => { data.categories[i] = { name: category, emojis: [] } @@ -13,8 +13,8 @@ categories.forEach((category, i) => { }) emojiData.sort((a, b) => { - var aTest = a.sort_order || a.short_name - var bTest = b.sort_order || b.short_name + var aTest = a.sort_order || a.short_name, + bTest = b.sort_order || b.short_name return aTest - bTest })