@alexlit/lint-kit 115.0.0 → 115.1.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.
Files changed (269) hide show
  1. package/package.json +1 -1
  2. package/packages/config-eslint/package.json +5 -5
  3. package/packages/config-eslint/plugins/import.js +8 -3
  4. package/packages/config-markdownlint/package.json +3 -3
  5. package/packages/config-stylelint/package.json +2 -2
  6. package/packages/config-markdownlint/node_modules/entities/LICENSE +0 -11
  7. package/packages/config-markdownlint/node_modules/entities/lib/decode.d.ts +0 -211
  8. package/packages/config-markdownlint/node_modules/entities/lib/decode.d.ts.map +0 -1
  9. package/packages/config-markdownlint/node_modules/entities/lib/decode.js +0 -536
  10. package/packages/config-markdownlint/node_modules/entities/lib/decode.js.map +0 -1
  11. package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
  12. package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
  13. package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.js +0 -76
  14. package/packages/config-markdownlint/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  15. package/packages/config-markdownlint/node_modules/entities/lib/encode.d.ts +0 -22
  16. package/packages/config-markdownlint/node_modules/entities/lib/encode.d.ts.map +0 -1
  17. package/packages/config-markdownlint/node_modules/entities/lib/encode.js +0 -77
  18. package/packages/config-markdownlint/node_modules/entities/lib/encode.js.map +0 -1
  19. package/packages/config-markdownlint/node_modules/entities/lib/escape.d.ts +0 -43
  20. package/packages/config-markdownlint/node_modules/entities/lib/escape.d.ts.map +0 -1
  21. package/packages/config-markdownlint/node_modules/entities/lib/escape.js +0 -122
  22. package/packages/config-markdownlint/node_modules/entities/lib/escape.js.map +0 -1
  23. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.d.ts +0 -211
  24. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
  25. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.js +0 -496
  26. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode.js.map +0 -1
  27. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
  28. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
  29. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
  30. package/packages/config-markdownlint/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
  31. package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.d.ts +0 -22
  32. package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
  33. package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.js +0 -69
  34. package/packages/config-markdownlint/node_modules/entities/lib/esm/encode.js.map +0 -1
  35. package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.d.ts +0 -43
  36. package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
  37. package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.js +0 -116
  38. package/packages/config-markdownlint/node_modules/entities/lib/esm/escape.js.map +0 -1
  39. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  40. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
  41. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  42. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
  43. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  44. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
  45. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  46. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
  47. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  48. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
  49. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
  50. package/packages/config-markdownlint/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
  51. package/packages/config-markdownlint/node_modules/entities/lib/esm/index.d.ts +0 -96
  52. package/packages/config-markdownlint/node_modules/entities/lib/esm/index.d.ts.map +0 -1
  53. package/packages/config-markdownlint/node_modules/entities/lib/esm/index.js +0 -99
  54. package/packages/config-markdownlint/node_modules/entities/lib/esm/index.js.map +0 -1
  55. package/packages/config-markdownlint/node_modules/entities/lib/esm/package.json +0 -1
  56. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  57. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
  58. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  59. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  60. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  61. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
  62. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  63. package/packages/config-markdownlint/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  64. package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  65. package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
  66. package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.js +0 -12
  67. package/packages/config-markdownlint/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  68. package/packages/config-markdownlint/node_modules/entities/lib/index.d.ts +0 -96
  69. package/packages/config-markdownlint/node_modules/entities/lib/index.d.ts.map +0 -1
  70. package/packages/config-markdownlint/node_modules/entities/lib/index.js +0 -126
  71. package/packages/config-markdownlint/node_modules/entities/lib/index.js.map +0 -1
  72. package/packages/config-markdownlint/node_modules/entities/package.json +0 -90
  73. package/packages/config-markdownlint/node_modules/entities/readme.md +0 -122
  74. package/packages/config-markdownlint/node_modules/markdown-it/LICENSE +0 -22
  75. package/packages/config-markdownlint/node_modules/markdown-it/README.md +0 -324
  76. package/packages/config-markdownlint/node_modules/markdown-it/bin/markdown-it.mjs +0 -107
  77. package/packages/config-markdownlint/node_modules/markdown-it/dist/index.cjs.js +0 -5540
  78. package/packages/config-markdownlint/node_modules/markdown-it/dist/markdown-it.js +0 -6963
  79. package/packages/config-markdownlint/node_modules/markdown-it/dist/markdown-it.min.js +0 -2
  80. package/packages/config-markdownlint/node_modules/markdown-it/index.mjs +0 -1
  81. package/packages/config-markdownlint/node_modules/markdown-it/lib/common/html_blocks.mjs +0 -67
  82. package/packages/config-markdownlint/node_modules/markdown-it/lib/common/html_re.mjs +0 -25
  83. package/packages/config-markdownlint/node_modules/markdown-it/lib/common/utils.mjs +0 -304
  84. package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
  85. package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -77
  86. package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +0 -49
  87. package/packages/config-markdownlint/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -66
  88. package/packages/config-markdownlint/node_modules/markdown-it/lib/index.mjs +0 -565
  89. package/packages/config-markdownlint/node_modules/markdown-it/lib/parser_block.mjs +0 -134
  90. package/packages/config-markdownlint/node_modules/markdown-it/lib/parser_core.mjs +0 -62
  91. package/packages/config-markdownlint/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
  92. package/packages/config-markdownlint/node_modules/markdown-it/lib/presets/commonmark.mjs +0 -88
  93. package/packages/config-markdownlint/node_modules/markdown-it/lib/presets/default.mjs +0 -47
  94. package/packages/config-markdownlint/node_modules/markdown-it/lib/presets/zero.mjs +0 -70
  95. package/packages/config-markdownlint/node_modules/markdown-it/lib/renderer.mjs +0 -322
  96. package/packages/config-markdownlint/node_modules/markdown-it/lib/ruler.mjs +0 -340
  97. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/blockquote.mjs +0 -209
  98. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/code.mjs +0 -30
  99. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/fence.mjs +0 -94
  100. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -51
  101. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -40
  102. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -69
  103. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/lheading.mjs +0 -82
  104. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/list.mjs +0 -331
  105. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -46
  106. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -212
  107. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/state_block.mjs +0 -220
  108. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_block/table.mjs +0 -228
  109. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/block.mjs +0 -13
  110. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/inline.mjs +0 -11
  111. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -134
  112. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/normalize.mjs +0 -17
  113. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/replacements.mjs +0 -101
  114. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +0 -193
  115. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/state_core.mjs +0 -17
  116. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_core/text_join.mjs +0 -43
  117. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -72
  118. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/backticks.mjs +0 -60
  119. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +0 -124
  120. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +0 -123
  121. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
  122. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -69
  123. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +0 -38
  124. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -50
  125. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/image.mjs +0 -138
  126. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/link.mjs +0 -139
  127. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/linkify.mjs +0 -56
  128. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/newline.mjs +0 -42
  129. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +0 -123
  130. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +0 -127
  131. package/packages/config-markdownlint/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -86
  132. package/packages/config-markdownlint/node_modules/markdown-it/lib/token.mjs +0 -191
  133. package/packages/config-markdownlint/node_modules/markdown-it/package.json +0 -92
  134. package/packages/config-markdownlint/node_modules/markdownlint/CHANGELOG.md +0 -446
  135. package/packages/config-markdownlint/node_modules/markdownlint/CONTRIBUTING.md +0 -93
  136. package/packages/config-markdownlint/node_modules/markdownlint/LICENSE +0 -21
  137. package/packages/config-markdownlint/node_modules/markdownlint/README.md +0 -1032
  138. package/packages/config-markdownlint/node_modules/markdownlint/demo/markdownlint-browser.js +0 -7116
  139. package/packages/config-markdownlint/node_modules/markdownlint/doc/CustomRules.md +0 -383
  140. package/packages/config-markdownlint/node_modules/markdownlint/doc/Prettier.md +0 -27
  141. package/packages/config-markdownlint/node_modules/markdownlint/doc/ReleaseProcess.md +0 -20
  142. package/packages/config-markdownlint/node_modules/markdownlint/doc/Rules.md +0 -2462
  143. package/packages/config-markdownlint/node_modules/markdownlint/doc/md001.md +0 -37
  144. package/packages/config-markdownlint/node_modules/markdownlint/doc/md003.md +0 -59
  145. package/packages/config-markdownlint/node_modules/markdownlint/doc/md004.md +0 -49
  146. package/packages/config-markdownlint/node_modules/markdownlint/doc/md005.md +0 -53
  147. package/packages/config-markdownlint/node_modules/markdownlint/doc/md007.md +0 -52
  148. package/packages/config-markdownlint/node_modules/markdownlint/doc/md009.md +0 -51
  149. package/packages/config-markdownlint/node_modules/markdownlint/doc/md010.md +0 -56
  150. package/packages/config-markdownlint/node_modules/markdownlint/doc/md011.md +0 -30
  151. package/packages/config-markdownlint/node_modules/markdownlint/doc/md012.md +0 -38
  152. package/packages/config-markdownlint/node_modules/markdownlint/doc/md013.md +0 -58
  153. package/packages/config-markdownlint/node_modules/markdownlint/doc/md014.md +0 -54
  154. package/packages/config-markdownlint/node_modules/markdownlint/doc/md018.md +0 -27
  155. package/packages/config-markdownlint/node_modules/markdownlint/doc/md019.md +0 -28
  156. package/packages/config-markdownlint/node_modules/markdownlint/doc/md020.md +0 -29
  157. package/packages/config-markdownlint/node_modules/markdownlint/doc/md021.md +0 -31
  158. package/packages/config-markdownlint/node_modules/markdownlint/doc/md022.md +0 -52
  159. package/packages/config-markdownlint/node_modules/markdownlint/doc/md023.md +0 -33
  160. package/packages/config-markdownlint/node_modules/markdownlint/doc/md024.md +0 -44
  161. package/packages/config-markdownlint/node_modules/markdownlint/doc/md025.md +0 -49
  162. package/packages/config-markdownlint/node_modules/markdownlint/doc/md026.md +0 -40
  163. package/packages/config-markdownlint/node_modules/markdownlint/doc/md027.md +0 -24
  164. package/packages/config-markdownlint/node_modules/markdownlint/doc/md028.md +0 -40
  165. package/packages/config-markdownlint/node_modules/markdownlint/doc/md029.md +0 -98
  166. package/packages/config-markdownlint/node_modules/markdownlint/doc/md030.md +0 -82
  167. package/packages/config-markdownlint/node_modules/markdownlint/doc/md031.md +0 -50
  168. package/packages/config-markdownlint/node_modules/markdownlint/doc/md032.md +0 -55
  169. package/packages/config-markdownlint/node_modules/markdownlint/doc/md033.md +0 -27
  170. package/packages/config-markdownlint/node_modules/markdownlint/doc/md034.md +0 -50
  171. package/packages/config-markdownlint/node_modules/markdownlint/doc/md035.md +0 -42
  172. package/packages/config-markdownlint/node_modules/markdownlint/doc/md036.md +0 -45
  173. package/packages/config-markdownlint/node_modules/markdownlint/doc/md037.md +0 -37
  174. package/packages/config-markdownlint/node_modules/markdownlint/doc/md038.md +0 -40
  175. package/packages/config-markdownlint/node_modules/markdownlint/doc/md039.md +0 -21
  176. package/packages/config-markdownlint/node_modules/markdownlint/doc/md040.md +0 -52
  177. package/packages/config-markdownlint/node_modules/markdownlint/doc/md041.md +0 -49
  178. package/packages/config-markdownlint/node_modules/markdownlint/doc/md042.md +0 -32
  179. package/packages/config-markdownlint/node_modules/markdownlint/doc/md043.md +0 -69
  180. package/packages/config-markdownlint/node_modules/markdownlint/doc/md044.md +0 -35
  181. package/packages/config-markdownlint/node_modules/markdownlint/doc/md045.md +0 -40
  182. package/packages/config-markdownlint/node_modules/markdownlint/doc/md046.md +0 -40
  183. package/packages/config-markdownlint/node_modules/markdownlint/doc/md047.md +0 -34
  184. package/packages/config-markdownlint/node_modules/markdownlint/doc/md048.md +0 -41
  185. package/packages/config-markdownlint/node_modules/markdownlint/doc/md049.md +0 -35
  186. package/packages/config-markdownlint/node_modules/markdownlint/doc/md050.md +0 -35
  187. package/packages/config-markdownlint/node_modules/markdownlint/doc/md051.md +0 -87
  188. package/packages/config-markdownlint/node_modules/markdownlint/doc/md052.md +0 -40
  189. package/packages/config-markdownlint/node_modules/markdownlint/doc/md053.md +0 -38
  190. package/packages/config-markdownlint/node_modules/markdownlint/doc/md054.md +0 -100
  191. package/packages/config-markdownlint/node_modules/markdownlint/doc/md055.md +0 -54
  192. package/packages/config-markdownlint/node_modules/markdownlint/doc/md056.md +0 -37
  193. package/packages/config-markdownlint/node_modules/markdownlint/helpers/LICENSE +0 -21
  194. package/packages/config-markdownlint/node_modules/markdownlint/helpers/README.md +0 -72
  195. package/packages/config-markdownlint/node_modules/markdownlint/helpers/helpers.js +0 -1025
  196. package/packages/config-markdownlint/node_modules/markdownlint/helpers/micromark.cjs +0 -445
  197. package/packages/config-markdownlint/node_modules/markdownlint/helpers/package.json +0 -26
  198. package/packages/config-markdownlint/node_modules/markdownlint/helpers/shared.js +0 -10
  199. package/packages/config-markdownlint/node_modules/markdownlint/lib/cache.js +0 -21
  200. package/packages/config-markdownlint/node_modules/markdownlint/lib/configuration.d.ts +0 -1178
  201. package/packages/config-markdownlint/node_modules/markdownlint/lib/constants.js +0 -14
  202. package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.d.ts +0 -479
  203. package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.js +0 -1550
  204. package/packages/config-markdownlint/node_modules/markdownlint/lib/md001.js +0 -25
  205. package/packages/config-markdownlint/node_modules/markdownlint/lib/md003.js +0 -45
  206. package/packages/config-markdownlint/node_modules/markdownlint/lib/md004.js +0 -79
  207. package/packages/config-markdownlint/node_modules/markdownlint/lib/md005.js +0 -81
  208. package/packages/config-markdownlint/node_modules/markdownlint/lib/md007.js +0 -92
  209. package/packages/config-markdownlint/node_modules/markdownlint/lib/md009.js +0 -89
  210. package/packages/config-markdownlint/node_modules/markdownlint/lib/md010.js +0 -63
  211. package/packages/config-markdownlint/node_modules/markdownlint/lib/md011.js +0 -49
  212. package/packages/config-markdownlint/node_modules/markdownlint/lib/md012.js +0 -35
  213. package/packages/config-markdownlint/node_modules/markdownlint/lib/md013.js +0 -99
  214. package/packages/config-markdownlint/node_modules/markdownlint/lib/md014.js +0 -57
  215. package/packages/config-markdownlint/node_modules/markdownlint/lib/md018.js +0 -38
  216. package/packages/config-markdownlint/node_modules/markdownlint/lib/md019.js +0 -42
  217. package/packages/config-markdownlint/node_modules/markdownlint/lib/md020.js +0 -65
  218. package/packages/config-markdownlint/node_modules/markdownlint/lib/md021.js +0 -65
  219. package/packages/config-markdownlint/node_modules/markdownlint/lib/md022.js +0 -116
  220. package/packages/config-markdownlint/node_modules/markdownlint/lib/md023.js +0 -41
  221. package/packages/config-markdownlint/node_modules/markdownlint/lib/md024.js +0 -45
  222. package/packages/config-markdownlint/node_modules/markdownlint/lib/md025.js +0 -35
  223. package/packages/config-markdownlint/node_modules/markdownlint/lib/md026.js +0 -54
  224. package/packages/config-markdownlint/node_modules/markdownlint/lib/md027.js +0 -42
  225. package/packages/config-markdownlint/node_modules/markdownlint/lib/md028.js +0 -47
  226. package/packages/config-markdownlint/node_modules/markdownlint/lib/md029.js +0 -70
  227. package/packages/config-markdownlint/node_modules/markdownlint/lib/md030.js +0 -66
  228. package/packages/config-markdownlint/node_modules/markdownlint/lib/md031.js +0 -43
  229. package/packages/config-markdownlint/node_modules/markdownlint/lib/md032.js +0 -76
  230. package/packages/config-markdownlint/node_modules/markdownlint/lib/md033.js +0 -46
  231. package/packages/config-markdownlint/node_modules/markdownlint/lib/md034.js +0 -105
  232. package/packages/config-markdownlint/node_modules/markdownlint/lib/md035.js +0 -31
  233. package/packages/config-markdownlint/node_modules/markdownlint/lib/md036.js +0 -50
  234. package/packages/config-markdownlint/node_modules/markdownlint/lib/md037.js +0 -99
  235. package/packages/config-markdownlint/node_modules/markdownlint/lib/md038.js +0 -106
  236. package/packages/config-markdownlint/node_modules/markdownlint/lib/md039.js +0 -71
  237. package/packages/config-markdownlint/node_modules/markdownlint/lib/md040.js +0 -42
  238. package/packages/config-markdownlint/node_modules/markdownlint/lib/md041.js +0 -37
  239. package/packages/config-markdownlint/node_modules/markdownlint/lib/md042.js +0 -53
  240. package/packages/config-markdownlint/node_modules/markdownlint/lib/md043.js +0 -67
  241. package/packages/config-markdownlint/node_modules/markdownlint/lib/md044.js +0 -115
  242. package/packages/config-markdownlint/node_modules/markdownlint/lib/md045.js +0 -67
  243. package/packages/config-markdownlint/node_modules/markdownlint/lib/md046.js +0 -40
  244. package/packages/config-markdownlint/node_modules/markdownlint/lib/md047.js +0 -31
  245. package/packages/config-markdownlint/node_modules/markdownlint/lib/md048.js +0 -43
  246. package/packages/config-markdownlint/node_modules/markdownlint/lib/md049-md050.js +0 -108
  247. package/packages/config-markdownlint/node_modules/markdownlint/lib/md051.js +0 -176
  248. package/packages/config-markdownlint/node_modules/markdownlint/lib/md052.js +0 -42
  249. package/packages/config-markdownlint/node_modules/markdownlint/lib/md053.js +0 -62
  250. package/packages/config-markdownlint/node_modules/markdownlint/lib/md054.js +0 -130
  251. package/packages/config-markdownlint/node_modules/markdownlint/lib/md055.js +0 -80
  252. package/packages/config-markdownlint/node_modules/markdownlint/lib/md056.js +0 -52
  253. package/packages/config-markdownlint/node_modules/markdownlint/lib/rules.js +0 -67
  254. package/packages/config-markdownlint/node_modules/markdownlint/package.json +0 -103
  255. package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.jsonc +0 -304
  256. package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.yaml +0 -272
  257. package/packages/config-markdownlint/node_modules/markdownlint/schema/ValidatingConfiguration.md +0 -28
  258. package/packages/config-markdownlint/node_modules/markdownlint/schema/markdownlint-config-schema.json +0 -1814
  259. package/packages/config-markdownlint/node_modules/markdownlint/style/all.json +0 -5
  260. package/packages/config-markdownlint/node_modules/markdownlint/style/cirosantilli.json +0 -22
  261. package/packages/config-markdownlint/node_modules/markdownlint/style/prettier.json +0 -26
  262. package/packages/config-markdownlint/node_modules/markdownlint/style/relaxed.json +0 -12
  263. package/packages/config-markdownlint/node_modules/markdownlint-micromark/LICENSE +0 -21
  264. package/packages/config-markdownlint/node_modules/markdownlint-micromark/README.md +0 -10
  265. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-browser.js +0 -2
  266. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-html-browser.js +0 -2
  267. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.cjs +0 -1
  268. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.d.ts +0 -1751
  269. package/packages/config-markdownlint/node_modules/markdownlint-micromark/package.json +0 -46
@@ -1,445 +0,0 @@
1
- // @ts-check
2
-
3
- "use strict";
4
-
5
- // @ts-ignore
6
- const {
7
- directive, gfmAutolinkLiteral, gfmFootnote, gfmTable, math,
8
- parse, postprocess, preprocess
9
- // @ts-ignore
10
- } = require("markdownlint-micromark");
11
- const { newLineRe } = require("./shared.js");
12
-
13
- const flatTokensSymbol = Symbol("flat-tokens");
14
-
15
- /** @typedef {import("markdownlint-micromark").Event} Event */
16
- /** @typedef {import("markdownlint-micromark").ParseOptions} ParseOptions */
17
- /** @typedef {import("markdownlint-micromark").TokenType} TokenType */
18
- /** @typedef {import("../lib/markdownlint.js").MicromarkToken} Token */
19
-
20
- /**
21
- * Returns whether a token is an htmlFlow type containing an HTML comment.
22
- *
23
- * @param {Token} token Micromark token.
24
- * @returns {boolean} True iff token is htmlFlow containing a comment.
25
- */
26
- function isHtmlFlowComment(token) {
27
- const { text, type } = token;
28
- if (
29
- (type === "htmlFlow") &&
30
- text.startsWith("<!--") &&
31
- text.endsWith("-->")
32
- ) {
33
- const comment = text.slice(4, -3);
34
- return (
35
- !comment.startsWith(">") &&
36
- !comment.startsWith("->") &&
37
- !comment.endsWith("-")
38
- // The following condition from the CommonMark specification is commented
39
- // to avoid parsing HTML comments that include "--" because that is NOT a
40
- // condition of the HTML specification.
41
- // https://spec.commonmark.org/0.30/#raw-html
42
- // https://html.spec.whatwg.org/multipage/syntax.html#comments
43
- // && !comment.includes("--")
44
- );
45
- }
46
- return false;
47
- }
48
-
49
- /**
50
- * Parses a Markdown document and returns Micromark events.
51
- *
52
- * @param {string} markdown Markdown document.
53
- * @param {ParseOptions} [micromarkOptions] Options for micromark.
54
- * @param {boolean} [referencesDefined] Treat references as defined.
55
- * @returns {Event[]} Micromark events.
56
- */
57
- function getMicromarkEvents(
58
- markdown,
59
- micromarkOptions = {},
60
- referencesDefined = true
61
- ) {
62
-
63
- // Customize options object to add useful extensions
64
- micromarkOptions.extensions = micromarkOptions.extensions || [];
65
- micromarkOptions.extensions.push(
66
- directive(),
67
- gfmAutolinkLiteral(),
68
- gfmFootnote(),
69
- gfmTable(),
70
- math()
71
- );
72
-
73
- // Use micromark to parse document into Events
74
- const encoding = undefined;
75
- const eol = true;
76
- const parseContext = parse(micromarkOptions);
77
- if (referencesDefined) {
78
- // Customize ParseContext to treat all references as defined
79
- parseContext.defined.includes = (searchElement) => searchElement.length > 0;
80
- }
81
- const chunks = preprocess()(markdown, encoding, eol);
82
- const events = postprocess(parseContext.document().write(chunks));
83
- return events;
84
- }
85
-
86
- /**
87
- * Parses a Markdown document and returns (frozen) tokens.
88
- *
89
- * @param {string} markdown Markdown document.
90
- * @param {ParseOptions} micromarkOptions Options for micromark.
91
- * @param {boolean} referencesDefined Treat references as defined.
92
- * @param {number} lineDelta Offset to apply to start/end line.
93
- * @param {Token} [ancestor] Parent of top-most tokens.
94
- * @returns {Token[]} Micromark tokens (frozen).
95
- */
96
- function micromarkParseWithOffset(
97
- markdown,
98
- micromarkOptions,
99
- referencesDefined,
100
- lineDelta,
101
- ancestor
102
- ) {
103
- // Use micromark to parse document into Events
104
- const events = getMicromarkEvents(
105
- markdown, micromarkOptions, referencesDefined
106
- );
107
-
108
- // Create Token objects
109
- const document = [];
110
- let flatTokens = [];
111
- /** @type {Token} */
112
- const root = {
113
- "type": "data",
114
- "startLine": -1,
115
- "startColumn": -1,
116
- "endLine": -1,
117
- "endColumn": -1,
118
- "text": "ROOT",
119
- "children": document,
120
- "parent": null
121
- };
122
- const history = [ root ];
123
- let current = root;
124
- // eslint-disable-next-line jsdoc/valid-types
125
- /** @type ParseOptions | null */
126
- let reparseOptions = null;
127
- let lines = null;
128
- let skipHtmlFlowChildren = false;
129
- for (const event of events) {
130
- const [ kind, token, context ] = event;
131
- const { type, start, end } = token;
132
- const { "column": startColumn, "line": startLine } = start;
133
- const { "column": endColumn, "line": endLine } = end;
134
- const text = context.sliceSerialize(token);
135
- if ((kind === "enter") && !skipHtmlFlowChildren) {
136
- const previous = current;
137
- history.push(previous);
138
- current = {
139
- type,
140
- "startLine": startLine + lineDelta,
141
- startColumn,
142
- "endLine": endLine + lineDelta,
143
- endColumn,
144
- text,
145
- "children": [],
146
- "parent": ((previous === root) ? (ancestor || null) : previous)
147
- };
148
- previous.children.push(current);
149
- flatTokens.push(current);
150
- if ((current.type === "htmlFlow") && !isHtmlFlowComment(current)) {
151
- skipHtmlFlowChildren = true;
152
- if (!reparseOptions || !lines) {
153
- reparseOptions = {
154
- ...micromarkOptions,
155
- "extensions": [
156
- {
157
- "disable": {
158
- "null": [ "codeIndented", "htmlFlow" ]
159
- }
160
- }
161
- ]
162
- };
163
- lines = markdown.split(newLineRe);
164
- }
165
- const reparseMarkdown = lines
166
- .slice(current.startLine - 1, current.endLine)
167
- .join("\n");
168
- const tokens = micromarkParseWithOffset(
169
- reparseMarkdown,
170
- reparseOptions,
171
- referencesDefined,
172
- current.startLine - 1,
173
- current
174
- );
175
- current.children = tokens;
176
- // Avoid stack overflow of Array.push(...spread)
177
- // eslint-disable-next-line unicorn/prefer-spread
178
- flatTokens = flatTokens.concat(tokens[flatTokensSymbol]);
179
- }
180
- } else if (kind === "exit") {
181
- if (type === "htmlFlow") {
182
- skipHtmlFlowChildren = false;
183
- }
184
- if (!skipHtmlFlowChildren) {
185
- Object.freeze(current.children);
186
- Object.freeze(current);
187
- // @ts-ignore
188
- current = history.pop();
189
- }
190
- }
191
- }
192
-
193
- // Return document
194
- Object.defineProperty(document, flatTokensSymbol, { "value": flatTokens });
195
- Object.freeze(document);
196
- return document;
197
- }
198
-
199
- /**
200
- * Parses a Markdown document and returns (frozen) tokens.
201
- *
202
- * @param {string} markdown Markdown document.
203
- * @param {ParseOptions} [micromarkOptions] Options for micromark.
204
- * @param {boolean} [referencesDefined] Treat references as defined.
205
- * @returns {Token[]} Micromark tokens (frozen).
206
- */
207
- function micromarkParse(
208
- markdown,
209
- micromarkOptions = {},
210
- referencesDefined = true
211
- ) {
212
- return micromarkParseWithOffset(
213
- markdown,
214
- micromarkOptions,
215
- referencesDefined,
216
- 0
217
- );
218
- }
219
-
220
- /**
221
- * @callback AllowedPredicate
222
- * @param {Token} token Micromark token.
223
- * @returns {boolean} True iff allowed.
224
- */
225
-
226
- /**
227
- * @callback TransformPredicate
228
- * @param {Token} token Micromark token.
229
- * @returns {Token[]} Child tokens.
230
- */
231
-
232
- /**
233
- * Filter a list of Micromark tokens by predicate.
234
- *
235
- * @param {Token[]} tokens Micromark tokens.
236
- * @param {AllowedPredicate} [allowed] Allowed token predicate.
237
- * @param {TransformPredicate} [transformChildren] Transform predicate.
238
- * @returns {Token[]} Filtered tokens.
239
- */
240
- function filterByPredicate(tokens, allowed, transformChildren) {
241
- allowed = allowed || (() => true);
242
- const result = [];
243
- const queue = [
244
- {
245
- "array": tokens,
246
- "index": 0
247
- }
248
- ];
249
- while (queue.length > 0) {
250
- const current = queue[queue.length - 1];
251
- const { array, index } = current;
252
- if (index < array.length) {
253
- const token = array[current.index++];
254
- if (allowed(token)) {
255
- result.push(token);
256
- }
257
- const { children } = token;
258
- if (children.length > 0) {
259
- const transformed =
260
- transformChildren ? transformChildren(token) : children;
261
- queue.push(
262
- {
263
- "array": transformed,
264
- "index": 0
265
- }
266
- );
267
- }
268
- } else {
269
- queue.pop();
270
- }
271
- }
272
- return result;
273
- }
274
-
275
- /**
276
- * Filter a list of Micromark tokens by type.
277
- *
278
- * @param {Token[]} tokens Micromark tokens.
279
- * @param {TokenType[]} types Types to allow.
280
- * @returns {Token[]} Filtered tokens.
281
- */
282
- function filterByTypes(tokens, types) {
283
- const predicate = (token) => types.includes(token.type);
284
- const flatTokens = tokens[flatTokensSymbol];
285
- if (flatTokens) {
286
- return flatTokens.filter(predicate);
287
- }
288
- return filterByPredicate(tokens, predicate);
289
- }
290
-
291
- /**
292
- * Gets the heading level of a Micromark heading tokan.
293
- *
294
- * @param {Token} heading Micromark heading token.
295
- * @returns {number} Heading level.
296
- */
297
- function getHeadingLevel(heading) {
298
- const headingSequence = filterByTypes(
299
- heading.children,
300
- [ "atxHeadingSequence", "setextHeadingLineSequence" ]
301
- );
302
- let level = 1;
303
- const { text } = headingSequence[0];
304
- if (text[0] === "#") {
305
- level = Math.min(text.length, 6);
306
- } else if (text[0] === "-") {
307
- level = 2;
308
- }
309
- return level;
310
- }
311
-
312
- /**
313
- * HTML tag information.
314
- *
315
- * @typedef {Object} HtmlTagInfo
316
- * @property {boolean} close True iff close tag.
317
- * @property {string} name Tag name.
318
- */
319
-
320
- /**
321
- * Gets information about the tag in an HTML token.
322
- *
323
- * @param {Token} token Micromark token.
324
- * @returns {HtmlTagInfo | null} HTML tag information.
325
- */
326
- function getHtmlTagInfo(token) {
327
- const htmlTagNameRe = /^<([^!>][^/\s>]*)/;
328
- if (token.type === "htmlText") {
329
- const match = htmlTagNameRe.exec(token.text);
330
- if (match) {
331
- const name = match[1];
332
- const close = name.startsWith("/");
333
- return {
334
- close,
335
- "name": close ? name.slice(1) : name
336
- };
337
- }
338
- }
339
- return null;
340
- }
341
-
342
- /**
343
- * Gets the nearest parent of the specified type for a Micromark token.
344
- *
345
- * @param {Token} token Micromark token.
346
- * @param {TokenType[]} types Types to allow.
347
- * @returns {Token | null} Parent token.
348
- */
349
- function getTokenParentOfType(token, types) {
350
- /** @type {Token | null} */
351
- let current = token;
352
- while ((current = current.parent) && !types.includes(current.type)) {
353
- // Empty
354
- }
355
- return current;
356
- }
357
-
358
- /**
359
- * Get the text of the first match from a list of Micromark tokens by type.
360
- *
361
- * @param {Token[]} tokens Micromark tokens.
362
- * @param {TokenType} type Type to match.
363
- * @returns {string | null} Text of token.
364
- */
365
- function getTokenTextByType(tokens, type) {
366
- const filtered = tokens.filter((token) => token.type === type);
367
- return (filtered.length > 0) ? filtered[0].text : null;
368
- }
369
-
370
- /**
371
- * Determines if a Micromark token has an htmlFlow-type parent.
372
- *
373
- * @param {Token} token Micromark token.
374
- * @returns {boolean} True iff the token has an htmlFlow-type parent.
375
- */
376
- function inHtmlFlow(token) {
377
- return getTokenParentOfType(token, [ "htmlFlow" ]) !== null;
378
- }
379
-
380
- /**
381
- * Determines a list of Micromark tokens matches and returns a subset.
382
- *
383
- * @param {Token[]} tokens Micromark tokens.
384
- * @param {TokenType[]} matchTypes Types to match.
385
- * @param {TokenType[]} [resultTypes] Types to return.
386
- * @returns {Token[] | null} Matching tokens.
387
- */
388
- function matchAndGetTokensByType(tokens, matchTypes, resultTypes) {
389
- if (tokens.length !== matchTypes.length) {
390
- return null;
391
- }
392
- resultTypes = resultTypes || matchTypes;
393
- const result = [];
394
- // eslint-disable-next-line unicorn/no-for-loop
395
- for (let i = 0; i < matchTypes.length; i++) {
396
- if (tokens[i].type !== matchTypes[i]) {
397
- return null;
398
- } else if (resultTypes.includes(matchTypes[i])) {
399
- result.push(tokens[i]);
400
- }
401
- }
402
- return result;
403
- }
404
-
405
- /**
406
- * Returns the specified token iff it is of the desired type.
407
- *
408
- * @param {Token} token Micromark token candidate.
409
- * @param {TokenType} type Desired type.
410
- * @returns {Token | null} Token instance.
411
- */
412
- function tokenIfType(token, type) {
413
- return (token && (token.type === type)) ? token : null;
414
- }
415
-
416
- /**
417
- * Set containing token types that do not contain content.
418
- *
419
- * @type {Set<TokenType>}
420
- */
421
- const nonContentTokens = new Set([
422
- "blockQuoteMarker",
423
- "blockQuotePrefix",
424
- "blockQuotePrefixWhitespace",
425
- "lineEnding",
426
- "lineEndingBlank",
427
- "linePrefix",
428
- "listItemIndent"
429
- ]);
430
-
431
- module.exports = {
432
- "parse": micromarkParse,
433
- filterByPredicate,
434
- filterByTypes,
435
- getHeadingLevel,
436
- getHtmlTagInfo,
437
- getMicromarkEvents,
438
- getTokenParentOfType,
439
- getTokenTextByType,
440
- inHtmlFlow,
441
- isHtmlFlowComment,
442
- matchAndGetTokensByType,
443
- nonContentTokens,
444
- tokenIfType
445
- };
@@ -1,26 +0,0 @@
1
- {
2
- "name": "markdownlint-rule-helpers",
3
- "version": "0.25.0",
4
- "description": "A collection of markdownlint helper functions for custom rules",
5
- "main": "./helpers.js",
6
- "exports": "./helpers.js",
7
- "author": "David Anson (https://dlaa.me/)",
8
- "license": "MIT",
9
- "homepage": "https://github.com/DavidAnson/markdownlint",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/DavidAnson/markdownlint.git"
13
- },
14
- "bugs": "https://github.com/DavidAnson/markdownlint/issues",
15
- "funding": "https://github.com/sponsors/DavidAnson",
16
- "engines": {
17
- "node": ">=18"
18
- },
19
- "dependencies": {
20
- "markdownlint-micromark": "0.1.2"
21
- },
22
- "keywords": [
23
- "markdownlint",
24
- "markdownlint-rule"
25
- ]
26
- }
@@ -1,10 +0,0 @@
1
- // @ts-check
2
-
3
- "use strict";
4
-
5
- // Regular expression for matching common newline characters
6
- // See NEWLINES_RE in markdown-it/lib/rules_core/normalize.js
7
- module.exports.newLineRe = /\r\n?|\n/g;
8
-
9
- // Regular expression for matching next lines
10
- module.exports.nextLinesRe = /[\r\n][\s\S]*$/;
@@ -1,21 +0,0 @@
1
- // @ts-check
2
-
3
- "use strict";
4
-
5
- const map = new Map();
6
-
7
- module.exports.set = (keyValuePairs) => {
8
- for (const [ key, value ] of Object.entries(keyValuePairs)) {
9
- map.set(key, value);
10
- }
11
- };
12
- module.exports.clear = () => map.clear();
13
-
14
- module.exports.codeBlockAndSpanRanges =
15
- () => map.get("codeBlockAndSpanRanges");
16
- module.exports.flattenedLists =
17
- () => map.get("flattenedLists");
18
- module.exports.lineMetadata =
19
- () => map.get("lineMetadata");
20
- module.exports.referenceLinkImageData =
21
- () => map.get("referenceLinkImageData");