markdownlint 0.32.1 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ # Validating Configuration
2
+
3
+ A [JSON Schema][json-schema] is provided to enable validating configuration
4
+ objects: [`markdownlint-config-schema.json`][markdownlint-config-schema]
5
+
6
+ Some editors automatically use a JSON Schema with files that reference it. For
7
+ example, a `.markdownlint.json` file with:
8
+
9
+ ```json
10
+ "$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json"
11
+ ```
12
+
13
+ A JSON Schema validator can be used to check configuration files like so:
14
+
15
+ ```bash
16
+ npx ajv-cli validate -s ./markdownlint/schema/markdownlint-config-schema.json -d "**/.markdownlint.{json,yaml}" --strict=false
17
+ ```
18
+
19
+ By default, any rule name is valid in order to allow for custom rules. To ensure
20
+ that only built-in rules are used, change the value of `#/additionalProperties`
21
+ (at the bottom of the schema file) to `false` before validating:
22
+
23
+ ```json
24
+ "additionalProperties": false
25
+ ```
26
+
27
+ [json-schema]: https://json-schema.org
28
+ [markdownlint-config-schema]: markdownlint-config-schema.json