mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
19 lines
390 B
JavaScript
19 lines
390 B
JavaScript
// @ts-check
|
|
|
|
"use strict";
|
|
|
|
module.exports = {
|
|
"names": [ "sample-rule" ],
|
|
"description": "Sample rule",
|
|
"tags": [ "sample" ],
|
|
"function": function rule(params, onError) {
|
|
for (const token of params.tokens) {
|
|
if (token.type === "hr") {
|
|
onError({
|
|
"lineNumber": token.lineNumber,
|
|
"detail": "Sample error for hr"
|
|
});
|
|
}
|
|
}
|
|
}
|
|
};
|