Skip to content

Commit

Permalink
Docs: improve rule details for no-console (fixes #14793)
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Aug 7, 2021
1 parent d66e941 commit fa663b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/rules/no-console.md
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 fa663b4

Please sign in to comment.