Fix testing disable comment plugins by using ignoreDisables
#36
Labels
status: ask to implement
ask before implementing as may no longer be relevant
type: bug
a problem with a feature or rule
I am currently writing a plugin for disable comments.
The problem are disable comments like
/* stylelint disable */
as they disable all rules.As such they also disable the rule I try to test.
I saw #26 which would solve the issue partially but for some reason that PR is not merged.
Personally I would prefer directly passing the config to
getTestRule
like the options so they are shared between the rules.Another way to solve this is to always set
ignoreDisables
to true as no rule author should test whether the disables work.The text was updated successfully, but these errors were encountered: