Skip to content

Commit

Permalink
Docs: improve rule details for no-console (fixes #14793) (#14901)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Aug 9, 2021
1 parent 9052eee commit c4e5802
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/rules/no-console.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ console.error("That shouldn't have happened.");

## Rule Details

This rule disallows calls to methods of the `console` object.
This rule disallows calls or assignments to methods of the `console` object.

Examples of **incorrect** code for this rule:

Expand All @@ -19,6 +19,7 @@ Examples of **incorrect** code for this rule:
console.log("Log a debug level message.");
console.warn("Log a warn level message.");
console.error("Log an error level message.");
console.log = foo();
```

Examples of **correct** code for this rule:
Expand Down

0 comments on commit c4e5802

Please sign in to comment.