Add typings for Rule object to all Rule samples and examples.

This commit is contained in:
David Anson 2024-03-06 21:18:51 -08:00
parent cdc30b1279
commit c287e49eac
11 changed files with 34 additions and 9 deletions

View file

@ -24,6 +24,7 @@ be useful to custom rule authors and may avoid duplicating code.
```javascript
const { forEachLine, getLineMetadata } = require("markdownlint-rule-helpers");
/** @type import("markdownlint").Rule */
module.exports = {
"names": [ "every-n-lines" ],
"description": "Rule that reports an error every N lines",