eslint-plugin-markdownlint
Version:
Eslint plugin for markdownlint
37 lines (33 loc) • 794 B
JavaScript
/**
* @fileoverview Rule MD022
* @see https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md022
* @author Paweł BB Drozd
*/
;
const ruleChecker = require("../ruleChecker");
const Rule = require("./rule");
module.exports = {
meta: {
type: "layout",
docs: {
description: "headings should be surrounded by blank lines",
url: "https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md022",
},
fixable: "whitespace",
schema: [
{
type: "object",
properties: {
lines_above: {
type: "number",
},
lines_below: {
type: "number",
},
},
additionalProperties: false,
},
],
},
create: ruleChecker(Rule.MD022),
};