{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/mado-configuration/latest.json",
  "title": "mado.toml",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/akiomik/mado/refs/heads/main/pkg/json-schema/mado.json",
    "sourceSha256": "c54084c10fb455b44abe1e3bd1c86276513783872f92cfa552f96b181441a360",
    "fileMatch": [
      ".mado.toml",
      "mado.toml"
    ],
    "parsers": [
      "toml"
    ]
  },
  "type": "object",
  "properties": {
    "lint": {
      "description": "Lint configuration",
      "type": "object",
      "properties": {
        "respect-ignore": {
          "description": "Exclude files that are ignored by .ignore",
          "type": "boolean",
          "default": true
        },
        "respect-gitignore": {
          "description": "Exclude files that are ignored by .gitignore",
          "type": "boolean",
          "default": true
        },
        "output-format": {
          "description": "Output format for violations",
          "type": "string",
          "enum": [
            "concise",
            "mdl",
            "markdownlint"
          ],
          "default": "concise"
        },
        "quiet": {
          "description": "Only log errors",
          "type": "boolean",
          "default": false
        },
        "exclude": {
          "description": "List of patterns to exclude from linting",
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          },
          "default": []
        },
        "rules": {
          "description": "List of rules",
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string",
            "enum": [
              "MD001",
              "MD002",
              "MD003",
              "MD004",
              "MD005",
              "MD006",
              "MD007",
              "MD009",
              "MD010",
              "MD012",
              "MD013",
              "MD014",
              "MD018",
              "MD019",
              "MD020",
              "MD021",
              "MD022",
              "MD023",
              "MD024",
              "MD025",
              "MD026",
              "MD027",
              "MD028",
              "MD029",
              "MD030",
              "MD031",
              "MD032",
              "MD033",
              "MD034",
              "MD035",
              "MD036",
              "MD037",
              "MD038",
              "MD039",
              "MD040",
              "MD041",
              "MD046",
              "MD047",
              "atx",
              "atx-closed",
              "blank-lines",
              "blockquote",
              "bullet",
              "code",
              "emphasis",
              "hard-tab",
              "headers",
              "hr",
              "html",
              "indentation",
              "language",
              "line-length",
              "links",
              "ol",
              "spaces",
              "ul",
              "url",
              "whitespace"
            ]
          },
          "default": [
            "MD001",
            "MD002",
            "MD003",
            "MD004",
            "MD005",
            "MD006",
            "MD007",
            "MD009",
            "MD010",
            "MD012",
            "MD013",
            "MD014",
            "MD018",
            "MD019",
            "MD020",
            "MD021",
            "MD022",
            "MD023",
            "MD024",
            "MD025",
            "MD026",
            "MD027",
            "MD028",
            "MD029",
            "MD030",
            "MD031",
            "MD032",
            "MD033",
            "MD034",
            "MD035",
            "MD036",
            "MD037",
            "MD038",
            "MD039",
            "MD040",
            "MD041",
            "MD046",
            "MD047"
          ]
        },
        "md002": {
          "description": "Lint configuration for MD002",
          "type": "object",
          "properties": {
            "level": {
              "description": "Heading level",
              "type": "number",
              "minimum": 1,
              "maximum": 6,
              "default": 1
            }
          },
          "additionalProperties": false
        },
        "md003": {
          "description": "Lint configuration for MD003",
          "type": "object",
          "properties": {
            "style": {
              "description": "Heading style",
              "type": "string",
              "enum": [
                "consistent",
                "atx",
                "atx-closed",
                "setext",
                "setext-with-atx"
              ],
              "default": "consistent"
            }
          },
          "additionalProperties": false
        },
        "md004": {
          "description": "Lint configuration for MD004",
          "type": "object",
          "properties": {
            "style": {
              "description": "List style",
              "type": "string",
              "enum": [
                "consistent",
                "asterisk",
                "plus",
                "dash",
                "sublist"
              ],
              "default": "consistent"
            }
          },
          "additionalProperties": false
        },
        "md007": {
          "description": "Lint configuration for MD007",
          "type": "object",
          "properties": {
            "indent": {
              "description": "Spaces for indent",
              "type": "number",
              "minimum": 2,
              "default": 4
            }
          },
          "additionalProperties": false
        },
        "md013": {
          "description": "Lint configuration for MD013",
          "type": "object",
          "properties": {
            "line-length": {
              "description": "Number of characters",
              "type": "number",
              "minimum": 0,
              "default": 80
            },
            "code-blocks": {
              "description": "Include code blocks",
              "type": "boolean",
              "default": true
            },
            "tables": {
              "description": "Include tables",
              "type": "boolean",
              "default": true
            }
          },
          "additionalProperties": false
        },
        "md024": {
          "description": "Lint configuration for MD024",
          "type": "object",
          "properties": {
            "allow-different-nesting": {
              "description": "Allow header duplication under different nesting",
              "type": "boolean",
              "default": false
            }
          },
          "additionalProperties": false
        },
        "md025": {
          "description": "Lint configuration for MD025",
          "type": "object",
          "properties": {
            "level": {
              "description": "Heading level",
              "type": "number",
              "minimum": 1,
              "maximum": 6,
              "default": 1
            }
          },
          "additionalProperties": false
        },
        "md026": {
          "description": "Lint configuration for MD026",
          "type": "object",
          "properties": {
            "punctuation": {
              "description": "Punctuation characters",
              "type": "string",
              "default": ".,;:!?"
            }
          },
          "additionalProperties": false
        },
        "md029": {
          "description": "Lint configuration for MD029",
          "type": "object",
          "properties": {
            "style": {
              "description": "List style",
              "type": "string",
              "enum": [
                "one",
                "ordered"
              ],
              "default": "one"
            }
          },
          "additionalProperties": false
        },
        "md030": {
          "description": "Lint configuration for MD030",
          "type": "object",
          "properties": {
            "ul-single": {
              "description": "Spaces for single-line unordered list items",
              "type": "number",
              "minimum": 1,
              "default": 1
            },
            "ol-single": {
              "description": "Spaces for single-line ordered list items",
              "type": "number",
              "minimum": 1,
              "default": 1
            },
            "ul-multi": {
              "description": "Spaces for multi-line unordered list items",
              "type": "number",
              "minimum": 1,
              "default": 1
            },
            "ol-multi": {
              "description": "Spaces for multi-line ordered list items",
              "type": "number",
              "minimum": 1,
              "default": 1
            }
          },
          "additionalProperties": false
        },
        "md033": {
          "description": "Lint configuration for MD033",
          "type": "object",
          "properties": {
            "allowed-elements": {
              "description": "Allowed elements",
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          },
          "additionalProperties": false
        },
        "md035": {
          "description": "Lint configuration for MD035",
          "type": "object",
          "properties": {
            "style": {
              "description": "Horizontal rule style",
              "type": "string",
              "default": "consistent"
            }
          },
          "additionalProperties": false
        },
        "md036": {
          "description": "Lint configuration for MD036",
          "type": "object",
          "properties": {
            "punctuation": {
              "description": "Punctuation characters",
              "type": "string",
              "default": ".,;:!?"
            }
          },
          "additionalProperties": false
        },
        "md041": {
          "description": "Lint configuration for MD041",
          "type": "object",
          "properties": {
            "level": {
              "description": "Heading level",
              "type": "number",
              "minimum": 1,
              "maximum": 6,
              "default": 1
            }
          },
          "additionalProperties": false
        },
        "md046": {
          "description": "Lint configuration for MD046",
          "type": "object",
          "properties": {
            "style": {
              "description": "Block style",
              "type": "string",
              "enum": [
                "fenced",
                "indented",
                "consistent"
              ],
              "default": "fenced"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
