markdownlint/test/rules/first-line.js
2018-02-25 16:04:13 -08:00

18 lines
379 B
JavaScript

// @ts-check
"use strict";
module.exports = {
"names": [ "first-line" ],
"description": "Rule that reports an error for the first line",
"tags": [ "test" ],
"function": function rule(params, onError) {
// Unconditionally report an error for line 1
onError({
"lineNumber": 1,
"detail": null,
"context": null,
"range": null
});
}
};