UNPKG

eslint-plugin-markdownlint

Version:
37 lines (33 loc) 766 B
/** * @fileoverview Rule MD043 * @see https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md043 * @author Paweł BB Drozd */ "use strict"; const ruleChecker = require("../ruleChecker"); const Rule = require("./rule"); module.exports = { meta: { type: "layout", docs: { description: "required heading structure", url: "https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md043", }, fixable: "code", schema: [ { type: "object", properties: { headings: { type: "array", items: { type: "string", }, }, }, additionalProperties: false, }, ], }, create: ruleChecker(Rule.MD043), };