Fix code style. Only new-cap linting errors remain
This commit is contained in:
parent
6768476575
commit
cf981e6c44
2 changed files with 10 additions and 8 deletions
4
index.js
4
index.js
|
|
@ -40,7 +40,9 @@ function chalkFactory(options) {
|
|||
Object.setPrototypeOf(chalk, Chalk.prototype);
|
||||
Object.setPrototypeOf(chalk.template, chalk);
|
||||
|
||||
chalk.template.constructor = () => {throw new Error('Chalk.constructor() is deprecated. Use new Chalk.instance() instead.')};
|
||||
chalk.template.constructor = () => {
|
||||
throw new Error('Chalk.constructor() is deprecated. Use new Chalk.instance() instead.');
|
||||
};
|
||||
chalk.template.instance = ChalkClass;
|
||||
|
||||
return chalk.template;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue