ShtukbaseStandard
файл пакета→ .shtukbase/packages/design-components/lib/report.ts

lib/report.ts

5 строк, 236 Б.

Файл как есть в пакете: код и комментарии в нём не переводятся.

  1. // The shape of every check of this package: findings one per line, exit code 1 when there are any.
  2. export function report(out: string[]): void {
  3. if (out.length) console.log(out.join('\n'));
  4. process.exitCode = out.length ? 1 : 0;
  5. }