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
This rule can be optional. It will prevent disabling of all eslint rules which are errors. So only warnings can be disabled.
Reasoning
In a project, if some rules are set as errors, the intention is that those errors should always be handled and the situations which cause those errors should never occur. However, if somes rules are set as warnings, they can be ignored (and hence disabled). Thus it makes sense that only warnings should be allowed to be disabled.
This can also speed up code reviews as a reviewer can be certain that no crucial rule has been disabled.
The text was updated successfully, but these errors were encountered:
This rule can be optional. It will prevent disabling of all eslint rules which are errors. So only warnings can be disabled.
Reasoning
In a project, if some rules are set as errors, the intention is that those errors should always be handled and the situations which cause those errors should never occur. However, if somes rules are set as warnings, they can be ignored (and hence disabled). Thus it makes sense that only warnings should be allowed to be disabled.
This can also speed up code reviews as a reviewer can be certain that no crucial rule has been disabled.
The text was updated successfully, but these errors were encountered: