mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02:00
15 lines
313 B
JavaScript
15 lines
313 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
|
|
});
|
|
}
|
|
};
|