reportUnusedDisableDirectives should probably be a regular rule #13104
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
auto closed
The bot closed this issue
core
Relates to ESLint's core APIs and features
evaluating
The team will evaluate this issue to decide whether it meets the criteria for inclusion
feature
This change adds a new feature to ESLint
rule
Relates to ESLint's core rules
reportUnusedDisableDirectives
is currently a config option but I think it would make more sense if it would just be a regular rule which would allow:/* eslint-disable-line rule report-unused-disable-directives */
)error
level (Allow "reportUnusedDisableDirectives" option to "error" #12703)Example where it is useful to disable per-line is a imported externally generated file that may or may not be present.
import/no-unresolved
will warn on it when absent but if I add a per-line disablereportUnusedDisableDirectives
will trigger in situations where the file is present. My only option to resolve this is to disablereportUnusedDisableDirectives
completely.(Sorry, for omitting the issue template but none seems to really fit)
The text was updated successfully, but these errors were encountered: