/
githubmirror
/
gutenberg
Обзор
Документация
Войти
/
githubmirror
/
gutenberg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
tools/release/lib/logger.js
24 строки
465 B
Marco Ciampini
ESLint: Replace strict config with bulk suppressions (#81248)
07 авг 2026, 14:34
Не верифицирован
07 авг 2026, 14:34
7f43eaf
Код
Авторство
О чём код?
const chalk = require( 'chalk' ); // Formats. const title = chalk.bold; const error = chalk.bold.red; const warning = chalk.bold.keyword( 'orange' ); const success = chalk.bold.green; const log = console.log; // Warnings go to stderr so that they stay out of command output that callers // redirect and reuse, such as generated release notes. const warn = console.warn; module.exports = { log, warn, formats: { title, error, warning, success, }, };