Skip to content

Commit 1fa2979

Browse files
Add line break
1 parent 974cca2 commit 1fa2979

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

crates/oxc_linter/src/rules/eslint/no_console.rs

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pub struct NoConsole(Box<NoConsoleConfig>);
2828
#[derive(Debug, Default, Clone)]
2929
pub struct NoConsoleConfig {
3030
/// ### What it does
31+
///
3132
/// Disallow the use of console.
3233
///
3334
/// ### Why is this bad?

crates/oxc_linter/src/snapshots/eslint_no_console.snap

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ source: crates/oxc_linter/src/tester.rs
88
╰────
99
help: Delete this console statement.
1010

11+
eslint(no-console): eslint(no-console): Unexpected console statement.
12+
╭─[no_console.tsx:1:2]
13+
1 │ (console.log())
14+
· ───────────
15+
╰────
16+
help: Delete this console statement.
17+
1118
eslint(no-console): eslint(no-console): Unexpected console statement.
1219
╭─[no_console.tsx:1:1]
1320
1console.log(foo)

0 commit comments

Comments
 (0)