From b6b2613c84cccb1769b692d59329ccb415a4ac9a Mon Sep 17 00:00:00 2001
From: Sindre Sorhus <sindresorhus@gmail.com>
Date: Wed, 10 May 2017 21:37:47 +0700
Subject: [PATCH] Meta tweaks

---
 .editorconfig |  2 +-
 cli.js        | 11 +++++++----
 readme.md     |  2 +-
 test.js       |  2 +-
 4 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/.editorconfig b/.editorconfig
index 98a761d..1c6314a 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -7,6 +7,6 @@ charset = utf-8
 trim_trailing_whitespace = true
 insert_final_newline = true
 
-[{package.json,*.yml}]
+[*.yml]
 indent_style = space
 indent_size = 2
diff --git a/cli.js b/cli.js
index 3d7b169..34e3f04 100755
--- a/cli.js
+++ b/cli.js
@@ -11,7 +11,7 @@ const mem = require('mem');
 const clipboardy = require('clipboardy');
 const skinTone = require('skin-tone');
 const Conf = require('conf');
-const emoj = require('./');
+const emoj = require('.');
 
 // Limit it to 7 results so not to overwhelm the user
 // This also reduces the chance of showing unrelated emojis
@@ -34,8 +34,8 @@ const cli = meow(`
 	  🦄  🎠  🐴  🐎  ❤  ✨  🌈
 
 	Options
-	  --copy -c		Copy the first emoji to the clipboard
-	  --skin-tone -s	Set and persist the default emoji skin tone (0 to 5)
+	  --copy -c       Copy the first emoji to the clipboard
+	  --skin-tone -s  Set and persist the default emoji skin tone (0 to 5)
 
 	Run it without arguments to enter the live search
 	Use the up/down keys during live search to change the skin tone
@@ -58,11 +58,14 @@ let skinNumber = config.get('skinNumber');
 if (cli.input.length > 0) {
 	fetch(cli.input[0]).then(val => {
 		val = val.map(x => skinTone(x, skinNumber));
+
 		console.log(val.join('  '));
+
 		if (cli.flags.copy) {
 			clipboardy.writeSync(val[0]);
 		}
 	});
+
 	return;
 }
 
@@ -85,7 +88,7 @@ dns.lookup('emoji.getdango.com', err => {
 process.stdin.on('keypress', (ch, key) => {
 	key = key || {};
 
-	// Filter out all Ansi sequences except the Up/Down keys which change the skin tone
+	// Filter out all ansi sequences except the up/down keys which change the skin tone
 	if (hasAnsi(key.sequence) && ((key.name !== 'up' && key.name !== 'down') || query.length <= 1)) {
 		return;
 	}
diff --git a/readme.md b/readme.md
index c2763bd..b303ad4 100644
--- a/readme.md
+++ b/readme.md
@@ -32,7 +32,7 @@ $ emoj --help
     🦄  🎠  🐴  🐎  ❤  ✨  🌈
 
   Options
-    --copy -c   Copy the first emoji to the clipboard
+    --copy -c       Copy the first emoji to the clipboard
     --skin-tone -s  Set and persist the default emoji skin tone (0 to 5)
 
   Run it without arguments to enter the live search
diff --git a/test.js b/test.js
index 37a4b70..11ca944 100644
--- a/test.js
+++ b/test.js
@@ -1,5 +1,5 @@
 import test from 'ava';
-import m from './';
+import m from '.';
 
 test(async t => {
 	const [unicornEmoji] = await m('unicorn');