Skip to content

Commit

Permalink
typo + linter
Browse files Browse the repository at this point in the history
  • Loading branch information
stroncium committed Jul 22, 2019
1 parent c22c625 commit 68faa87
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/index.js
Expand Up @@ -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;
Expand All @@ -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() {
Expand Down Expand Up @@ -207,6 +207,7 @@ const chalkTag = (chalk, ...strings) => {
if (template === undefined) {
template = require('./templates');
}

return template(chalk, parts.join(''));
};

Expand Down

0 comments on commit 68faa87

Please sign in to comment.