mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Add parsers parameter to readConfig/Sync to support non-JSON formats like YAML (fixes #118).
This commit is contained in:
parent
2b4ecdced8
commit
101edd8496
10 changed files with 252 additions and 31 deletions
1
test/config/config-badcontent.txt
Normal file
1
test/config/config-badcontent.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
@
|
||||
2
test/config/config-child.yaml
Normal file
2
test/config/config-child.yaml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
no-hard-tabs: false
|
||||
whitespace: false
|
||||
6
test/config/config-grandparent-hybrid.yaml
Normal file
6
test/config/config-grandparent-hybrid.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
extends: config-parent-hybrid.toml
|
||||
MD003:
|
||||
style: atx_closed
|
||||
MD007:
|
||||
indent: 2
|
||||
no-hard-tabs: false
|
||||
6
test/config/config-grandparent.yaml
Normal file
6
test/config/config-grandparent.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
extends: config-parent.yaml
|
||||
MD003:
|
||||
style: atx_closed
|
||||
MD007:
|
||||
indent: 2
|
||||
no-hard-tabs: false
|
||||
9
test/config/config-parent-hybrid.toml
Normal file
9
test/config/config-parent-hybrid.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
extends = "config-child.json"
|
||||
MD003 = false
|
||||
no-hard-tabs = true
|
||||
|
||||
[MD007]
|
||||
indent = 4
|
||||
|
||||
[line-length]
|
||||
line_length = 200
|
||||
7
test/config/config-parent.yaml
Normal file
7
test/config/config-parent.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extends: config-child.yaml
|
||||
MD003: false
|
||||
MD007:
|
||||
indent: 4
|
||||
no-hard-tabs: true
|
||||
line-length:
|
||||
line_length: 200
|
||||
Loading…
Add table
Add a link
Reference in a new issue