Add markdownlint "version" property to custom rule "params" object in case it is ever necessary for a rule to specialize its behavior.

This commit is contained in:
David Anson 2024-09-29 18:11:41 -07:00
parent ee50519e00
commit d3819c4e75
6 changed files with 39 additions and 5 deletions

View file

@ -136,7 +136,8 @@ const testRule: markdownlint.Rule = {
"frontMatterLines": [
"three"
],
"config": options.config
"config": options.config,
"version": "1.2.3"
};
assert(ruleParams);
let ruleOnErrorInfo: markdownlint.RuleOnErrorInfo;