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.
What solution would you like to see?
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.
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.