@@ -61,6 +61,7 @@ Dot-only glob:
6161
6262Configuration via:
6363- .markdownlint-cli2.jsonc
64+ - .markdownlint-cli2.yaml
6465- .markdownlint-cli2.js
6566- .markdownlint.jsonc or .markdownlint.json
6667- .markdownlint.yaml or .markdownlint.yml
@@ -159,13 +160,23 @@ $ markdownlint-cli2 "**/*.md" "#node_modules"
159160- For example: [ ` .markdownlint-cli2.jsonc ` ] [ markdownlint-cli2-jsonc ] with all
160161 properties set
161162
162- ### ` .markdownlint-cli2.js `
163+ ### ` .markdownlint-cli2.yaml `
163164
164- - The format of this file is a [ CommonJS module ] [ commonjs-module ] that exports
165- the ` .markdownlint-cli2.jsonc ` object described above .
165+ - The format of this file is a [ YAML ] [ yaml ] object with the structure described
166+ above for ` .markdownlint-cli2.jsonc ` .
166167- Other details are the same as for ` .markdownlint-cli2.jsonc ` described above.
167168- If a ` .markdownlint-cli2.jsonc ` file is present in the same directory, it
168169 takes precedence.
170+ - For example: [ ` .markdownlint-cli2.yaml ` ] [ markdownlint-cli2-yaml ] with all
171+ properties set
172+
173+ ### ` .markdownlint-cli2.js `
174+
175+ - The format of this file is a [ CommonJS module] [ commonjs-module ] that exports
176+ the object described above for ` .markdownlint-cli2.jsonc ` .
177+ - Other details are the same as for ` .markdownlint-cli2.jsonc ` described above.
178+ - If a ` .markdownlint-cli2.jsonc ` or ` .markdownlint-cli2.yaml ` file is present
179+ in the same directory, it takes precedence.
169180- For example: [ ` .markdownlint-cli2.js ` ] [ markdownlint-cli2-js ]
170181
171182### ` .markdownlint.jsonc ` or ` .markdownlint.json `
@@ -254,6 +265,7 @@ $ markdownlint-cli2 "**/*.md" "#node_modules"
254265[ markdownlint-cli2-formatter ] : https://www.npmjs.com/search?q=keywords:markdownlint-cli2-formatter
255266[ markdownlint-cli2-js ] : test/markdownlint-cli2-js/.markdownlint-cli2.js
256267[ markdownlint-cli2-jsonc ] : test/markdownlint-cli2-jsonc-example/.markdownlint-cli2.jsonc
268+ [ markdownlint-cli2-yaml ] : test/markdownlint-cli2-yaml-example/.markdownlint-cli2.yaml
257269[ markdownlint-js ] : test/markdownlint-js/.markdownlint.js
258270[ markdownlint-jsonc ] : test/markdownlint-jsonc/.markdownlint.jsonc
259271[ markdownlint-yaml ] : test/markdownlint-yaml/.markdownlint.yaml
0 commit comments