Skip to content

Commit

Permalink
Revert "docs: Add clarification about eslint-enable (eslint#15680)"
Browse files Browse the repository at this point in the history
This reverts commit feb25f9.
  • Loading branch information
srijan-deepsource committed May 30, 2022
1 parent 613df5c commit 5ca5b29
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions docs/user-guide/configuring/rules.md
Expand Up @@ -144,8 +144,6 @@ console.log('bar');
/* eslint-enable no-alert, no-console */
```

**Note:** `/* eslint-enable */` without any specific rules listed will cause all disabled rules to be re-enabled.

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

```js
Expand All @@ -162,14 +160,6 @@ You can also disable or enable specific rules for an entire file:
alert('foo');
```

To ensure that a rule is never applied (regardless of any future enable/disable lines):

```js
/* eslint no-alert: "off" */

alert('foo');
```

To disable all rules on a specific line, use a line or block comment in one of the following formats:

```js
Expand Down

0 comments on commit 5ca5b29

Please sign in to comment.