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: Add clarification about eslint-enable #15680

Merged
merged 3 commits into from
Mar 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs/user-guide/configuring/rules.md
  • Loading branch information
nzakas authored Mar 9, 2022
commit ef669d45b57ae1d0f32dda79d708e1113ac10f35
2 changes: 1 addition & 1 deletion docs/user-guide/configuring/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ console.log('bar');
/* eslint-enable no-alert, no-console */
```

**Note:** `/* esline-enable */` without any specific rules will cause all errors to be re-enabled. You will have to re-specify the errors you wish to keep disabled.
**Note:** `/* esline-enable */` without any specific rules listed will cause all disabled rules to be re-enabled.
mdjermanovic marked this conversation as resolved.
Show resolved Hide resolved

To disable rule warnings in an entire file, put a `/* eslint-disable */` block comment at the top of the file:

Expand Down