You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow disable without enable when disable covers the whole file (#8)
* Move `lte` to `utils` for reuse
* Add `disable-enable-pair` `allowWholeFile` option
* Reimplement with "eslint@~3.1.0" compatibility in mind
* Add documentation of `allowWholeFile` option
Copy file name to clipboardExpand all lines: docs/rules/disable-enable-pair.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,32 @@ var foo = bar()
41
41
var foo =bar()
42
42
/*eslint-enable*/
43
43
```
44
+
45
+
## Options
46
+
47
+
The `allowWholeFile` option lets you allow disabling rules for the entire file while still catching "open" `eslint-disable` directives in the middle of a file.
0 commit comments