-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Hi
There is an edge case in the no-restricted-disable
rule when the require-description
is enable
The no-restricted-disable
doesn't catch the disable line when there is a break line in the description
When the description is single line, it work as expected
// eslint-disable-next-line eslint-comments/no-restricted-disable -- Catch the error
// eslint-disable-next-line react-hooks/exhaustive-deps -- Needs to be called only on mounted component
Description with multiline
/* eslint-disable-next-line react-hooks/exhaustive-deps --
This is not reported by the no-restricted-disable rule */
Metadata
Metadata
Assignees
Labels
No labels