mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 15:00:13 +01:00
Allow "$schema" field in .markdownlint.json schema (fixes #227).
This commit is contained in:
parent
e9b3cc4c18
commit
eacfa6142b
2 changed files with 11 additions and 0 deletions
|
|
@ -18,6 +18,12 @@ const schema = {
|
||||||
"description": "Path to configuration file to extend",
|
"description": "Path to configuration file to extend",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": null
|
"default": null
|
||||||
|
},
|
||||||
|
"$schema": {
|
||||||
|
"description": "JSON Schema URI (used by some editors)",
|
||||||
|
"type": "string",
|
||||||
|
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint" +
|
||||||
|
"/master/schema/markdownlint-config-schema.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,11 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"default": null
|
"default": null
|
||||||
},
|
},
|
||||||
|
"$schema": {
|
||||||
|
"description": "JSON Schema URI (used by some editors)",
|
||||||
|
"type": "string",
|
||||||
|
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint/master/schema/markdownlint-config-schema.json"
|
||||||
|
},
|
||||||
"MD001": {
|
"MD001": {
|
||||||
"description": "MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time",
|
"description": "MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue