Skip to content

Commit

Permalink
chore: add noConsole options documentation (#3888)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas authored Sep 14, 2024
1 parent f6d61b0 commit 713a76e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/biome_js_analyze/src/lint/suspicious/no_console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 713a76e

Please sign in to comment.