From 20d74fc91ad9ecd7dd284d7563d04806d11d3e27 Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Sat, 14 Sep 2024 09:34:54 +0300 Subject: [PATCH] chore: add `noConsole` options documentation --- .../src/lint/suspicious/no_console.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/biome_js_analyze/src/lint/suspicious/no_console.rs b/crates/biome_js_analyze/src/lint/suspicious/no_console.rs index dc1d675fa6ea..989cfe54d3c7 100644 --- a/crates/biome_js_analyze/src/lint/suspicious/no_console.rs +++ b/crates/biome_js_analyze/src/lint/suspicious/no_console.rs @@ -25,6 +25,19 @@ declare_lint_rule! { /// console.error('hello world') /// ``` /// + /// ## Options + /// + /// Use the options to specify the allowed `console` methods. + /// + /// ```json + /// { + /// "//": "...", + /// "options": { + /// "allow": ["assert", "error", "info", "warn"] + /// } + /// } + /// ``` + /// pub NoConsole { version: "1.6.0", name: "noConsole",