typo + linter
This commit is contained in:
parent
b21018deae
commit
83ca84a37b
1 changed files with 4 additions and 3 deletions
|
|
@ -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] = {
|
styles[model] = {
|
||||||
get() {
|
get() {
|
||||||
const {level} = this;
|
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);
|
const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
|
||||||
styles[bgModel] = {
|
styles[bgModel] = {
|
||||||
get() {
|
get() {
|
||||||
|
|
@ -207,6 +207,7 @@ const chalkTag = (chalk, ...strings) => {
|
||||||
if (template === undefined) {
|
if (template === undefined) {
|
||||||
template = require('./templates');
|
template = require('./templates');
|
||||||
}
|
}
|
||||||
|
|
||||||
return template(chalk, parts.join(''));
|
return template(chalk, parts.join(''));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue