src/logger/console.logger.ts
Calls to 'console.log' are not allowed. Open
Open
console.log(chalk.yellow(`⚠ ${text}`));
- Read upRead up
- Exclude checks
Rule: no-console
Bans the use of specified console
methods.
Rationale
In general, console
methods aren't appropriate for production code.
Config
A list of method names to ban. If no method names are provided, all console methods are banned.
Examples
"no-console": true,log,error
Schema
{
"type": "array",
"items": {
"type": "string"
}
}
For more information see this page.
Calls to 'console.log' are not allowed. Open
Open
console.log(chalk.green("\u2714 ") + text);
- Read upRead up
- Exclude checks
Rule: no-console
Bans the use of specified console
methods.
Rationale
In general, console
methods aren't appropriate for production code.
Config
A list of method names to ban. If no method names are provided, all console methods are banned.
Examples
"no-console": true,log,error
Schema
{
"type": "array",
"items": {
"type": "string"
}
}
For more information see this page.