Skip to content

Commit e633056

Browse files
committed
Avoid use of console.warn
1 parent 2b8c748 commit e633056

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/cli-kit/src/public/node/output.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-console */
21
import {isUnitTest, isVerbose} from './context/local.js'
32
import {PackageManager} from './node-package-manager.js'
43
import {currentProcessIsGlobal} from './is-global.js'
@@ -350,7 +349,7 @@ export function output(content: OutputMessage, logLevel: LogLevel = 'info', logg
350349
* Prints a new line in the terminal.
351350
*/
352351
export function outputNewline(): void {
353-
console.warn()
352+
consoleWarn('')
354353
}
355354

356355
/**
@@ -476,5 +475,3 @@ export function formatSection(title: string, body: string): string {
476475
const formattedTitle = `${title.toUpperCase()}${' '.repeat(35 - title.length)}`
477476
return outputContent`${outputToken.heading(formattedTitle)}\n${body}`.value
478477
}
479-
480-
/* eslint-enable no-console */

0 commit comments

Comments
 (0)