2
0

example.markdownlint-cli2.jsonc 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. {
  2. "config" : {
  3. "default" : true,
  4. // MD001/heading-increment : Heading levels should only increment by one level at a time : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md001.md
  5. "MD001": false,
  6. // MD003/heading-style : Heading style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md003.md
  7. "MD003": {
  8. "style": "atx"
  9. },
  10. // MD004/ul-style : Unordered list style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md004.md
  11. "MD004": false,
  12. // FIXME: enable and consider fixing
  13. //{
  14. // "style": "consistent"
  15. //},
  16. // MD005/list-indent : Inconsistent indentation for list items at the same level : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md005.md
  17. "MD005": true,
  18. // MD007/ul-indent : Unordered list indentation : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md007.md
  19. "MD007": {
  20. // Spaces for indent
  21. "indent": 2,
  22. // Whether to indent the first level of the list
  23. "start_indented": false,
  24. // Spaces for first level indent (when start_indented is set)
  25. "start_indent": 0
  26. },
  27. // MD009/no-trailing-spaces : Trailing spaces : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md009.md
  28. "MD009": {
  29. // Spaces for line break
  30. "br_spaces": 2,
  31. // Allow spaces for empty lines in list items
  32. "list_item_empty_lines": false,
  33. // Include unnecessary breaks
  34. "strict": false
  35. },
  36. // MD010/no-hard-tabs : Hard tabs : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md010.md
  37. "MD010": {
  38. // Include code blocks
  39. "code_blocks": false,
  40. // Fenced code languages to ignore
  41. "ignore_code_languages": [],
  42. // Number of spaces for each hard tab
  43. "spaces_per_tab": 4
  44. },
  45. // MD011/no-reversed-links : Reversed link syntax : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md011.md
  46. "MD011": true,
  47. // MD012/no-multiple-blanks : Multiple consecutive blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md012.md
  48. "MD012": {
  49. // Consecutive blank lines
  50. "maximum": 1
  51. },
  52. // MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md013.md
  53. "MD013": false,
  54. // MD014/commands-show-output : Dollar signs used before commands without showing output : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md014.md
  55. "MD014": true,
  56. // MD018/no-missing-space-atx : No space after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md018.md
  57. "MD018": true,
  58. // MD019/no-multiple-space-atx : Multiple spaces after hash on atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md019.md
  59. "MD019": true,
  60. // MD020/no-missing-space-closed-atx : No space inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md020.md
  61. "MD020": true,
  62. // MD021/no-multiple-space-closed-atx : Multiple spaces inside hashes on closed atx style heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md021.md
  63. "MD021": true,
  64. // MD022/blanks-around-headings : Headings should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md022.md
  65. "MD022": {
  66. // Blank lines above heading
  67. "lines_above": 1,
  68. // Blank lines below heading
  69. "lines_below": 1
  70. },
  71. // MD023/heading-start-left : Headings must start at the beginning of the line : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md023.md
  72. "MD023": true,
  73. // MD024/no-duplicate-heading : Multiple headings with the same content : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md024.md
  74. "MD024": false,
  75. // FIXME: false positives?
  76. //{
  77. // // Only check sibling headings
  78. // "allow_different_nesting": true,
  79. // // Only check sibling headings
  80. // "siblings_only": true
  81. //},
  82. // MD025/single-title/single-h1 : Multiple top-level headings in the same document : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md025.md
  83. "MD025": {
  84. // Heading level
  85. "level": 1,
  86. // RegExp for matching title in front matter
  87. "front_matter_title": "^\\s*title\\s*[:=]"
  88. },
  89. // MD026/no-trailing-punctuation : Trailing punctuation in heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md026.md
  90. "MD026": {
  91. // Punctuation characters
  92. "punctuation": ".,;:!。,;:!"
  93. },
  94. // MD027/no-multiple-space-blockquote : Multiple spaces after blockquote symbol : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md027.md
  95. "MD027": true,
  96. // MD028/no-blanks-blockquote : Blank line inside blockquote : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md028.md
  97. "MD028": true,
  98. // MD029/ol-prefix : Ordered list item prefix : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md029.md
  99. "MD029": false,
  100. // FIXME: false positives or broken formatting
  101. //{
  102. // // List style
  103. // "style": "ordered"
  104. //},
  105. // MD030/list-marker-space : Spaces after list markers : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md030.md
  106. "MD030": {
  107. // Spaces for single-line unordered list items
  108. "ul_single": 1,
  109. // Spaces for single-line ordered list items
  110. "ol_single": 1,
  111. // Spaces for multi-line unordered list items
  112. "ul_multi": 1,
  113. // Spaces for multi-line ordered list items
  114. "ol_multi": 1
  115. },
  116. // MD031/blanks-around-fences : Fenced code blocks should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md031.md
  117. "MD031": {
  118. // Include list items
  119. "list_items": false
  120. },
  121. // MD032/blanks-around-lists : Lists should be surrounded by blank lines : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md032.md
  122. "MD032": true,
  123. // MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md033.md
  124. "MD033": false,
  125. // FIXME: enable and consider fixing
  126. //{
  127. // // Allowed elements
  128. // "allowed_elements": []
  129. //},
  130. // MD034/no-bare-urls : Bare URL used : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md034.md
  131. "MD034": true,
  132. // MD035/hr-style : Horizontal rule style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md035.md
  133. "MD035": {
  134. // Horizontal rule style
  135. "style": "consistent"
  136. },
  137. // MD036/no-emphasis-as-heading : Emphasis used instead of a heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md036.md
  138. "MD036": false,
  139. // FIXME: enable and consider fixing
  140. // {
  141. // // Punctuation characters
  142. // "punctuation": ".,;:!?。,;:!?"
  143. // },
  144. // MD037/no-space-in-emphasis : Spaces inside emphasis markers : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md037.md
  145. "MD037": true,
  146. // MD038/no-space-in-code : Spaces inside code span elements : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md038.md
  147. "MD038": true,
  148. // MD039/no-space-in-links : Spaces inside link text : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md039.md
  149. "MD039": true,
  150. // MD040/fenced-code-language : Fenced code blocks should have a language specified : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md040.md
  151. "MD040": {
  152. // List of languages
  153. "allowed_languages": [ "cpp", "json", "sh", "text", "nix", "powershell", "lua", "batchfile" ],
  154. // Require language only
  155. "language_only": true
  156. },
  157. // MD041/first-line-heading/first-line-h1 : First line in a file should be a top-level heading : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md041.md
  158. "MD041": {
  159. // Heading level
  160. "level": 1,
  161. // RegExp for matching title in front matter
  162. "front_matter_title": "^\\s*title\\s*[:=]"
  163. },
  164. // MD042/no-empty-links : No empty links : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md042.md
  165. "MD042": true,
  166. // MD043/required-headings : Required heading structure : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md043.md
  167. "MD043": false,
  168. // MD044/proper-names : Proper names should have the correct capitalization : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md044.md
  169. "MD044": false,
  170. // MD045/no-alt-text : Images should have alternate text (alt text) : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md045.md
  171. "MD045": false,
  172. // MD046/code-block-style : Code block style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md046.md
  173. "MD046": {
  174. // Block style
  175. "style": "fenced"
  176. },
  177. // MD047/single-trailing-newline : Files should end with a single newline character : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md047.md
  178. "MD047": true,
  179. // MD048/code-fence-style : Code fence style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md048.md
  180. "MD048": {
  181. // Code fence style
  182. "style": "backtick"
  183. },
  184. // MD049/emphasis-style : Emphasis style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md049.md
  185. "MD049": {
  186. // Emphasis style
  187. "style": "asterisk"
  188. },
  189. // MD050/strong-style : Strong style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md050.md
  190. "MD050": {
  191. // Strong style
  192. "style": "asterisk"
  193. },
  194. // MD051/link-fragments : Link fragments should be valid : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md051.md
  195. "MD051": true,
  196. // MD052/reference-links-images : Reference links and images should use a label that is defined : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md052.md
  197. "MD052": {
  198. // Include shortcut syntax
  199. "shortcut_syntax": false
  200. },
  201. // MD053/link-image-reference-definitions : Link and image reference definitions should be needed : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md053.md
  202. "MD053": {
  203. // Ignored definitions
  204. "ignored_definitions": [
  205. "//"
  206. ]
  207. },
  208. // MD054/link-image-style : Link and image style : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md054.md
  209. "MD054": {
  210. // Allow autolinks
  211. "autolink": true,
  212. // Allow inline links and images
  213. "inline": true,
  214. // Allow full reference links and images
  215. "full": true,
  216. // Allow collapsed reference links and images
  217. "collapsed": true,
  218. // Allow shortcut reference links and images
  219. "shortcut": true,
  220. // Allow URLs as inline links
  221. "url_inline": true
  222. },
  223. // MD058 - Tables should be surrounded by blank lines
  224. "MD058" : true,
  225. // MD059 - Link text should be descriptive
  226. "MD059" : false
  227. }
  228. }