From 68faa87a63469b95da01a18b8dd9f652b97c1ab6 Mon Sep 17 00:00:00 2001 From: Yanis Benson Date: Mon, 22 Jul 2019 04:08:23 +0300 Subject: [PATCH] typo + linter --- source/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/index.js b/source/index.js index 6db81802..408e5078 100644 --- a/source/index.js +++ b/source/index.js @@ -72,9 +72,9 @@ styles.visible = { } }; -const useModels = ['rgb', 'hsl', 'hsv', 'hwb', 'cmyk', 'xyz', 'lab', 'lch', 'hex', 'keyword', 'ansi', 'ansi256', 'hcg', 'apple']; +const usedModels = ['rgb', 'hsl', 'hsv', 'hwb', 'cmyk', 'xyz', 'lab', 'lch', 'hex', 'keyword', 'ansi', 'ansi256', 'hcg', 'apple']; -for (const model of useModels) { +for (const model of usedModels) { styles[model] = { get() { const {level} = this; @@ -86,7 +86,7 @@ for (const model of useModels) { }; } -for (const model of useModels) { +for (const model of usedModels) { const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1); styles[bgModel] = { get() { @@ -207,6 +207,7 @@ const chalkTag = (chalk, ...strings) => { if (template === undefined) { template = require('./templates'); } + return template(chalk, parts.join('')); };