Add documentation for authoring custom rules.

This commit is contained in:
David Anson 2018-03-03 22:15:49 -08:00
parent b33acb81d9
commit 08c8031736
2 changed files with 307 additions and 1 deletions

View file

@ -2078,3 +2078,18 @@ module.exports.customRulesOnErrorBad = function customRulesOnErrorBad(test) {
});
test.done();
};
module.exports.customRulesDoc = function customRulesDoc(test) {
test.expect(2);
markdownlint({
"files": "doc/CustomRules.md",
"config": {
"MD013": { "line_length": 200 }
}
}, function callback(err, actual) {
test.ifError(err);
var expected = { "doc/CustomRules.md": [] };
test.deepEqual(actual, expected, "Unexpected issues.");
test.done();
});
};