Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: improve rule details for no-console (fixes #14793) #14901

Merged
merged 1 commit into from Aug 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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