Add support to checkAgainstRule
with custom rules
#6446
Labels
status: ready to implement
is ready to be worked on by someone
type: enhancement
a new feature that isn't related to rules
What is the problem you're trying to solve?
Currently, the
checkAgainstRule
utility only resolves built-in rules. However, my team has a use case in which we'd like to callcheckAgainstRule
with other (local) custom rules e.g.What solution would you like to see?
We'd like to be able to use
checkAgainstRule
with (local) custom rules. Being that allpluginFunctions
are accessible onresult.stylelint.config.pluginFunctions
, this update seems like it would be a non-breaking change by optionally passing theresult
object to checkAgainstRule e.g.The text was updated successfully, but these errors were encountered: