Skip to content
Permalink
Browse files
Docs: improve rule details for no-console (fixes #14793) (#14901)
  • Loading branch information
snitin315 committed Aug 9, 2021
1 parent 9052eee commit c4e58023f22381508babfc52087853b5e3965b9c
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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:

@@ -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:

0 comments on commit c4e5802

Please sign in to comment.