@alexlit/lint-kit 127.6.0 → 127.6.2

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 (303) hide show
  1. package/.npmpackagejsonlintrc.json +0 -0
  2. package/.npmrc +5 -0
  3. package/LICENSE +0 -0
  4. package/README.md +1 -1
  5. package/commitlint.config.js +0 -0
  6. package/lint-staged.config.js +0 -0
  7. package/package.json +11 -9
  8. package/packages/config-commitlint/LICENSE +0 -0
  9. package/packages/config-commitlint/index.js +0 -0
  10. package/packages/config-commitlint/node_modules/.bin/commitlint +17 -0
  11. package/packages/config-commitlint/node_modules/.bin/conventional-changelog +17 -0
  12. package/packages/config-commitlint/node_modules/.bin/conventional-commits-parser +17 -0
  13. package/packages/config-commitlint/node_modules/.bin/tsc +17 -0
  14. package/packages/config-commitlint/node_modules/.bin/tsserver +17 -0
  15. package/packages/config-commitlint/package.json +0 -0
  16. package/packages/config-eslint/LICENSE +0 -0
  17. package/packages/config-eslint/_legacy/LICENSE +0 -0
  18. package/packages/config-eslint/_legacy/dictionaries/index.js +0 -0
  19. package/packages/config-eslint/_legacy/dictionaries/programming/bash.js +0 -0
  20. package/packages/config-eslint/_legacy/dictionaries/programming/django.js +0 -0
  21. package/packages/config-eslint/_legacy/dictionaries/programming/elixir.js +0 -0
  22. package/packages/config-eslint/_legacy/dictionaries/programming/go.js +0 -0
  23. package/packages/config-eslint/_legacy/dictionaries/programming/java.js +0 -0
  24. package/packages/config-eslint/_legacy/dictionaries/programming/latex.js +0 -0
  25. package/packages/config-eslint/_legacy/dictionaries/programming/lua.js +0 -0
  26. package/packages/config-eslint/_legacy/dictionaries/programming/php.js +0 -0
  27. package/packages/config-eslint/_legacy/dictionaries/programming/python.js +0 -0
  28. package/packages/config-eslint/_legacy/dictionaries/programming/ruby.js +0 -0
  29. package/packages/config-eslint/_legacy/dictionaries/programming/rust.js +0 -0
  30. package/packages/config-eslint/_legacy/dictionaries/programming/scala.js +0 -0
  31. package/packages/config-eslint/_legacy/dictionaries/specialized/html-symbol-entities.js +0 -0
  32. package/packages/config-eslint/_legacy/dictionaries/specialized/lorem-ipsum.js +0 -0
  33. package/packages/config-eslint/_legacy/index.js +0 -0
  34. package/packages/config-eslint/_legacy/legacy.js +0 -0
  35. package/packages/config-eslint/_legacy/package.json +0 -0
  36. package/packages/config-eslint/_legacy/plugins/array-func.js +0 -0
  37. package/packages/config-eslint/_legacy/plugins/compat.js +0 -0
  38. package/packages/config-eslint/_legacy/plugins/decorator-position.js +0 -0
  39. package/packages/config-eslint/_legacy/plugins/eslint-comments.js +0 -0
  40. package/packages/config-eslint/_legacy/plugins/etc.js +0 -0
  41. package/packages/config-eslint/_legacy/plugins/ext.js +0 -0
  42. package/packages/config-eslint/_legacy/plugins/filenames.js +0 -0
  43. package/packages/config-eslint/_legacy/plugins/import.js +0 -0
  44. package/packages/config-eslint/_legacy/plugins/jsdoc.js +0 -0
  45. package/packages/config-eslint/_legacy/plugins/jsx-a11y.js +0 -0
  46. package/packages/config-eslint/_legacy/plugins/lit-a11y.js +0 -0
  47. package/packages/config-eslint/_legacy/plugins/lit.js +0 -0
  48. package/packages/config-eslint/_legacy/plugins/more.js +0 -0
  49. package/packages/config-eslint/_legacy/plugins/no-constructor-bind.js +0 -0
  50. package/packages/config-eslint/_legacy/plugins/no-explicit-type-exports.js +0 -0
  51. package/packages/config-eslint/_legacy/plugins/no-loops.js +0 -0
  52. package/packages/config-eslint/_legacy/plugins/no-secrets.js +0 -0
  53. package/packages/config-eslint/_legacy/plugins/no-use-extend-native.js +0 -0
  54. package/packages/config-eslint/_legacy/plugins/node.js +0 -0
  55. package/packages/config-eslint/_legacy/plugins/prettier.js +0 -0
  56. package/packages/config-eslint/_legacy/plugins/promise.js +0 -0
  57. package/packages/config-eslint/_legacy/plugins/regexp.js +0 -0
  58. package/packages/config-eslint/_legacy/plugins/security.js +0 -0
  59. package/packages/config-eslint/_legacy/plugins/simple-import-sort.js +0 -0
  60. package/packages/config-eslint/_legacy/plugins/sonar.js +0 -0
  61. package/packages/config-eslint/_legacy/plugins/sort-class-members.js +0 -0
  62. package/packages/config-eslint/_legacy/plugins/sort-destructure-keys.js +0 -0
  63. package/packages/config-eslint/_legacy/plugins/sort-keys-fix.js +0 -0
  64. package/packages/config-eslint/_legacy/plugins/spellcheck.js +0 -0
  65. package/packages/config-eslint/_legacy/plugins/sql.js +0 -0
  66. package/packages/config-eslint/_legacy/plugins/tanstack-query.js +0 -0
  67. package/packages/config-eslint/_legacy/plugins/testing-library.js +0 -0
  68. package/packages/config-eslint/_legacy/plugins/typescript-sort-keys.js +0 -0
  69. package/packages/config-eslint/_legacy/plugins/unicorn.js +0 -0
  70. package/packages/config-eslint/_legacy/plugins/unused-imports.js +0 -0
  71. package/packages/config-eslint/_legacy/plugins/vitest.js +0 -0
  72. package/packages/config-eslint/_legacy/plugins/vue-i18n.js +0 -0
  73. package/packages/config-eslint/_legacy/plugins/vue.js +0 -0
  74. package/packages/config-eslint/_legacy/plugins/vuejs-accessibility.js +0 -0
  75. package/packages/config-eslint/_legacy/plugins/wc.js +0 -0
  76. package/packages/config-eslint/_legacy/plugins/write-good-comments.js +0 -0
  77. package/packages/config-eslint/_legacy/utils/create-config.js +0 -0
  78. package/packages/config-eslint/index.js +0 -0
  79. package/packages/config-eslint/node_modules/.bin/acorn +17 -0
  80. package/packages/config-eslint/node_modules/.bin/browserslist +17 -0
  81. package/packages/config-eslint/node_modules/.bin/eslint +17 -0
  82. package/packages/config-eslint/node_modules/.bin/eslint-config-prettier +17 -0
  83. package/packages/config-eslint/node_modules/.bin/jiti +17 -0
  84. package/packages/config-eslint/node_modules/.bin/prettier +17 -0
  85. package/packages/config-eslint/node_modules/.bin/tsc +17 -0
  86. package/packages/config-eslint/node_modules/.bin/tsserver +17 -0
  87. package/packages/config-eslint/package.json +1 -1
  88. package/packages/config-hooks/LICENSE +0 -0
  89. package/packages/config-hooks/lint-staged.js +0 -0
  90. package/packages/config-hooks/node_modules/.bin/husky +17 -0
  91. package/packages/config-hooks/node_modules/.bin/lint-staged +17 -0
  92. package/packages/config-hooks/package.json +0 -0
  93. package/packages/config-htmllint/LICENSE +0 -0
  94. package/packages/config-htmllint/index.js +0 -0
  95. package/packages/config-htmllint/node_modules/.bin/linthtml +17 -0
  96. package/packages/config-htmllint/node_modules/.bin/tsc +17 -0
  97. package/packages/config-htmllint/node_modules/.bin/tsserver +17 -0
  98. package/packages/config-htmllint/package.json +0 -0
  99. package/packages/config-markdownlint/LICENSE +0 -0
  100. package/packages/config-markdownlint/index.json +0 -0
  101. package/packages/config-markdownlint/node_modules/.bin/markdownlint +17 -0
  102. package/packages/config-markdownlint/package.json +0 -0
  103. package/packages/config-npmlint/LICENSE +0 -0
  104. package/packages/config-npmlint/index.json +0 -0
  105. package/packages/config-npmlint/node_modules/.bin/lockfile-lint +17 -0
  106. package/packages/config-npmlint/node_modules/.bin/npmPkgJsonLint +17 -0
  107. package/packages/config-npmlint/node_modules/.bin/tsc +17 -0
  108. package/packages/config-npmlint/node_modules/.bin/tsserver +17 -0
  109. package/packages/config-npmlint/package.json +0 -0
  110. package/packages/config-prettier/LICENSE +0 -0
  111. package/packages/config-prettier/index.js +0 -0
  112. package/packages/config-prettier/node_modules/.bin/prettier +17 -0
  113. package/packages/config-prettier/package.json +0 -0
  114. package/packages/config-prettier/plugins/jsdoc.js +0 -0
  115. package/packages/config-prettier/plugins/packagejson.js +0 -0
  116. package/packages/config-prettier/plugins/php.js +0 -0
  117. package/packages/config-prettier/plugins/pug.js +0 -0
  118. package/packages/config-prettier/plugins/ruby.js +0 -0
  119. package/packages/config-prettier/plugins/sh.js +0 -0
  120. package/packages/config-prettier/plugins/solidity.js +0 -0
  121. package/packages/config-prettier/plugins/sort-json.js +0 -0
  122. package/packages/config-prettier/plugins/sql.js +0 -0
  123. package/packages/config-prettier/plugins/svelte.js +0 -0
  124. package/packages/config-prettier/plugins/tailwindcss.js +0 -0
  125. package/packages/config-prettier/plugins/xml.js +0 -0
  126. package/packages/config-stylelint/LICENSE +0 -0
  127. package/packages/config-stylelint/index.js +1 -0
  128. package/packages/config-stylelint/node_modules/.bin/browserslist +17 -0
  129. package/packages/config-stylelint/node_modules/.bin/prettier +17 -0
  130. package/packages/config-stylelint/node_modules/.bin/stylelint +17 -0
  131. package/packages/config-stylelint/node_modules/.bin/tsc +17 -0
  132. package/packages/config-stylelint/node_modules/.bin/tsserver +17 -0
  133. package/packages/config-stylelint/package.json +2 -2
  134. package/packages/config-stylelint/plugins/a11y.js +0 -0
  135. package/packages/config-stylelint/plugins/at-rule-no-children.js +0 -0
  136. package/packages/config-stylelint/plugins/color-format.js +0 -0
  137. package/packages/config-stylelint/plugins/declaration-block-no-ignored-properties.js +0 -0
  138. package/packages/config-stylelint/plugins/gamut.js +0 -0
  139. package/packages/config-stylelint/plugins/high-performance-animation.js +0 -0
  140. package/packages/config-stylelint/plugins/logical-css.js +0 -0
  141. package/packages/config-stylelint/plugins/no-indistinguishable-colors.js +0 -0
  142. package/packages/config-stylelint/plugins/no-nested-media.js +0 -0
  143. package/packages/config-stylelint/plugins/no-unresolved-module.js +0 -0
  144. package/packages/config-stylelint/plugins/no-unsupported-browser-features.js +0 -0
  145. package/packages/config-stylelint/plugins/order.js +0 -0
  146. package/packages/config-stylelint/plugins/prettier.js +0 -0
  147. package/packages/config-stylelint/plugins/scss.js +0 -0
  148. package/packages/config-stylelint/plugins/selector-no-empty.js +0 -0
  149. package/packages/config-stylelint/plugins/use-nesting.js +0 -0
  150. package/prettier.config.js +0 -0
  151. package/scripts/check.editorconfig.sh +0 -0
  152. package/scripts/i.sh +1 -1
  153. package/scripts/lint.eslint.sh +0 -0
  154. package/scripts/lint.htmllint.sh +0 -0
  155. package/scripts/lint.markdownlint.sh +0 -0
  156. package/scripts/lint.npmlint.sh +1 -1
  157. package/scripts/lint.sh +5 -5
  158. package/scripts/lint.stylelint.sh +0 -0
  159. package/scripts/ou.sh +8 -0
  160. package/scripts/preinstall.sh +1 -0
  161. package/scripts/release.sh +3 -3
  162. package/scripts/semver.sh +0 -0
  163. package/scripts/up.sh +12 -27
  164. package/stylelint.config.js +0 -0
  165. package/packages/config-markdownlint/node_modules/markdownlint/CHANGELOG.md +0 -457
  166. package/packages/config-markdownlint/node_modules/markdownlint/CONTRIBUTING.md +0 -93
  167. package/packages/config-markdownlint/node_modules/markdownlint/LICENSE +0 -21
  168. package/packages/config-markdownlint/node_modules/markdownlint/README.md +0 -1047
  169. package/packages/config-markdownlint/node_modules/markdownlint/demo/markdownlint-browser.js +0 -7094
  170. package/packages/config-markdownlint/node_modules/markdownlint/doc/CustomRules.md +0 -388
  171. package/packages/config-markdownlint/node_modules/markdownlint/doc/Prettier.md +0 -27
  172. package/packages/config-markdownlint/node_modules/markdownlint/doc/ReleaseProcess.md +0 -20
  173. package/packages/config-markdownlint/node_modules/markdownlint/doc/Rules.md +0 -2528
  174. package/packages/config-markdownlint/node_modules/markdownlint/doc/md001.md +0 -37
  175. package/packages/config-markdownlint/node_modules/markdownlint/doc/md003.md +0 -59
  176. package/packages/config-markdownlint/node_modules/markdownlint/doc/md004.md +0 -49
  177. package/packages/config-markdownlint/node_modules/markdownlint/doc/md005.md +0 -53
  178. package/packages/config-markdownlint/node_modules/markdownlint/doc/md007.md +0 -52
  179. package/packages/config-markdownlint/node_modules/markdownlint/doc/md009.md +0 -51
  180. package/packages/config-markdownlint/node_modules/markdownlint/doc/md010.md +0 -56
  181. package/packages/config-markdownlint/node_modules/markdownlint/doc/md011.md +0 -30
  182. package/packages/config-markdownlint/node_modules/markdownlint/doc/md012.md +0 -38
  183. package/packages/config-markdownlint/node_modules/markdownlint/doc/md013.md +0 -58
  184. package/packages/config-markdownlint/node_modules/markdownlint/doc/md014.md +0 -54
  185. package/packages/config-markdownlint/node_modules/markdownlint/doc/md018.md +0 -27
  186. package/packages/config-markdownlint/node_modules/markdownlint/doc/md019.md +0 -28
  187. package/packages/config-markdownlint/node_modules/markdownlint/doc/md020.md +0 -29
  188. package/packages/config-markdownlint/node_modules/markdownlint/doc/md021.md +0 -31
  189. package/packages/config-markdownlint/node_modules/markdownlint/doc/md022.md +0 -52
  190. package/packages/config-markdownlint/node_modules/markdownlint/doc/md023.md +0 -33
  191. package/packages/config-markdownlint/node_modules/markdownlint/doc/md024.md +0 -44
  192. package/packages/config-markdownlint/node_modules/markdownlint/doc/md025.md +0 -49
  193. package/packages/config-markdownlint/node_modules/markdownlint/doc/md026.md +0 -40
  194. package/packages/config-markdownlint/node_modules/markdownlint/doc/md027.md +0 -24
  195. package/packages/config-markdownlint/node_modules/markdownlint/doc/md028.md +0 -40
  196. package/packages/config-markdownlint/node_modules/markdownlint/doc/md029.md +0 -98
  197. package/packages/config-markdownlint/node_modules/markdownlint/doc/md030.md +0 -82
  198. package/packages/config-markdownlint/node_modules/markdownlint/doc/md031.md +0 -50
  199. package/packages/config-markdownlint/node_modules/markdownlint/doc/md032.md +0 -55
  200. package/packages/config-markdownlint/node_modules/markdownlint/doc/md033.md +0 -27
  201. package/packages/config-markdownlint/node_modules/markdownlint/doc/md034.md +0 -55
  202. package/packages/config-markdownlint/node_modules/markdownlint/doc/md035.md +0 -42
  203. package/packages/config-markdownlint/node_modules/markdownlint/doc/md036.md +0 -45
  204. package/packages/config-markdownlint/node_modules/markdownlint/doc/md037.md +0 -37
  205. package/packages/config-markdownlint/node_modules/markdownlint/doc/md038.md +0 -40
  206. package/packages/config-markdownlint/node_modules/markdownlint/doc/md039.md +0 -21
  207. package/packages/config-markdownlint/node_modules/markdownlint/doc/md040.md +0 -52
  208. package/packages/config-markdownlint/node_modules/markdownlint/doc/md041.md +0 -49
  209. package/packages/config-markdownlint/node_modules/markdownlint/doc/md042.md +0 -32
  210. package/packages/config-markdownlint/node_modules/markdownlint/doc/md043.md +0 -69
  211. package/packages/config-markdownlint/node_modules/markdownlint/doc/md044.md +0 -45
  212. package/packages/config-markdownlint/node_modules/markdownlint/doc/md045.md +0 -40
  213. package/packages/config-markdownlint/node_modules/markdownlint/doc/md046.md +0 -40
  214. package/packages/config-markdownlint/node_modules/markdownlint/doc/md047.md +0 -34
  215. package/packages/config-markdownlint/node_modules/markdownlint/doc/md048.md +0 -41
  216. package/packages/config-markdownlint/node_modules/markdownlint/doc/md049.md +0 -35
  217. package/packages/config-markdownlint/node_modules/markdownlint/doc/md050.md +0 -35
  218. package/packages/config-markdownlint/node_modules/markdownlint/doc/md051.md +0 -87
  219. package/packages/config-markdownlint/node_modules/markdownlint/doc/md052.md +0 -40
  220. package/packages/config-markdownlint/node_modules/markdownlint/doc/md053.md +0 -38
  221. package/packages/config-markdownlint/node_modules/markdownlint/doc/md054.md +0 -100
  222. package/packages/config-markdownlint/node_modules/markdownlint/doc/md055.md +0 -54
  223. package/packages/config-markdownlint/node_modules/markdownlint/doc/md056.md +0 -37
  224. package/packages/config-markdownlint/node_modules/markdownlint/doc/md058.md +0 -48
  225. package/packages/config-markdownlint/node_modules/markdownlint/helpers/LICENSE +0 -21
  226. package/packages/config-markdownlint/node_modules/markdownlint/helpers/README.md +0 -46
  227. package/packages/config-markdownlint/node_modules/markdownlint/helpers/helpers.js +0 -793
  228. package/packages/config-markdownlint/node_modules/markdownlint/helpers/micromark.cjs +0 -544
  229. package/packages/config-markdownlint/node_modules/markdownlint/helpers/package.json +0 -26
  230. package/packages/config-markdownlint/node_modules/markdownlint/helpers/shared.js +0 -10
  231. package/packages/config-markdownlint/node_modules/markdownlint/lib/cache.js +0 -70
  232. package/packages/config-markdownlint/node_modules/markdownlint/lib/configuration-strict.d.ts +0 -1185
  233. package/packages/config-markdownlint/node_modules/markdownlint/lib/configuration.d.ts +0 -8
  234. package/packages/config-markdownlint/node_modules/markdownlint/lib/constants.js +0 -15
  235. package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.d.ts +0 -488
  236. package/packages/config-markdownlint/node_modules/markdownlint/lib/markdownlint.js +0 -1572
  237. package/packages/config-markdownlint/node_modules/markdownlint/lib/md001.js +0 -31
  238. package/packages/config-markdownlint/node_modules/markdownlint/lib/md003.js +0 -50
  239. package/packages/config-markdownlint/node_modules/markdownlint/lib/md004.js +0 -86
  240. package/packages/config-markdownlint/node_modules/markdownlint/lib/md005.js +0 -72
  241. package/packages/config-markdownlint/node_modules/markdownlint/lib/md007.js +0 -88
  242. package/packages/config-markdownlint/node_modules/markdownlint/lib/md009.js +0 -95
  243. package/packages/config-markdownlint/node_modules/markdownlint/lib/md010.js +0 -78
  244. package/packages/config-markdownlint/node_modules/markdownlint/lib/md011.js +0 -57
  245. package/packages/config-markdownlint/node_modules/markdownlint/lib/md012.js +0 -43
  246. package/packages/config-markdownlint/node_modules/markdownlint/lib/md013.js +0 -105
  247. package/packages/config-markdownlint/node_modules/markdownlint/lib/md014.js +0 -54
  248. package/packages/config-markdownlint/node_modules/markdownlint/lib/md018.js +0 -46
  249. package/packages/config-markdownlint/node_modules/markdownlint/lib/md019-md021.js +0 -80
  250. package/packages/config-markdownlint/node_modules/markdownlint/lib/md020.js +0 -71
  251. package/packages/config-markdownlint/node_modules/markdownlint/lib/md022.js +0 -106
  252. package/packages/config-markdownlint/node_modules/markdownlint/lib/md023.js +0 -40
  253. package/packages/config-markdownlint/node_modules/markdownlint/lib/md024.js +0 -48
  254. package/packages/config-markdownlint/node_modules/markdownlint/lib/md025.js +0 -40
  255. package/packages/config-markdownlint/node_modules/markdownlint/lib/md026.js +0 -49
  256. package/packages/config-markdownlint/node_modules/markdownlint/lib/md027.js +0 -37
  257. package/packages/config-markdownlint/node_modules/markdownlint/lib/md028.js +0 -42
  258. package/packages/config-markdownlint/node_modules/markdownlint/lib/md029.js +0 -76
  259. package/packages/config-markdownlint/node_modules/markdownlint/lib/md030.js +0 -60
  260. package/packages/config-markdownlint/node_modules/markdownlint/lib/md031.js +0 -63
  261. package/packages/config-markdownlint/node_modules/markdownlint/lib/md032.js +0 -66
  262. package/packages/config-markdownlint/node_modules/markdownlint/lib/md033.js +0 -41
  263. package/packages/config-markdownlint/node_modules/markdownlint/lib/md034.js +0 -100
  264. package/packages/config-markdownlint/node_modules/markdownlint/lib/md035.js +0 -26
  265. package/packages/config-markdownlint/node_modules/markdownlint/lib/md036.js +0 -51
  266. package/packages/config-markdownlint/node_modules/markdownlint/lib/md037.js +0 -94
  267. package/packages/config-markdownlint/node_modules/markdownlint/lib/md038.js +0 -100
  268. package/packages/config-markdownlint/node_modules/markdownlint/lib/md039.js +0 -83
  269. package/packages/config-markdownlint/node_modules/markdownlint/lib/md040.js +0 -37
  270. package/packages/config-markdownlint/node_modules/markdownlint/lib/md041.js +0 -37
  271. package/packages/config-markdownlint/node_modules/markdownlint/lib/md042.js +0 -63
  272. package/packages/config-markdownlint/node_modules/markdownlint/lib/md043.js +0 -73
  273. package/packages/config-markdownlint/node_modules/markdownlint/lib/md044.js +0 -110
  274. package/packages/config-markdownlint/node_modules/markdownlint/lib/md045.js +0 -62
  275. package/packages/config-markdownlint/node_modules/markdownlint/lib/md046.js +0 -34
  276. package/packages/config-markdownlint/node_modules/markdownlint/lib/md047.js +0 -31
  277. package/packages/config-markdownlint/node_modules/markdownlint/lib/md048.js +0 -39
  278. package/packages/config-markdownlint/node_modules/markdownlint/lib/md049-md050.js +0 -103
  279. package/packages/config-markdownlint/node_modules/markdownlint/lib/md051.js +0 -170
  280. package/packages/config-markdownlint/node_modules/markdownlint/lib/md052.js +0 -42
  281. package/packages/config-markdownlint/node_modules/markdownlint/lib/md053.js +0 -62
  282. package/packages/config-markdownlint/node_modules/markdownlint/lib/md054.js +0 -125
  283. package/packages/config-markdownlint/node_modules/markdownlint/lib/md055.js +0 -79
  284. package/packages/config-markdownlint/node_modules/markdownlint/lib/md056.js +0 -56
  285. package/packages/config-markdownlint/node_modules/markdownlint/lib/md058.js +0 -43
  286. package/packages/config-markdownlint/node_modules/markdownlint/lib/rules.js +0 -74
  287. package/packages/config-markdownlint/node_modules/markdownlint/package.json +0 -105
  288. package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.jsonc +0 -307
  289. package/packages/config-markdownlint/node_modules/markdownlint/schema/.markdownlint.yaml +0 -275
  290. package/packages/config-markdownlint/node_modules/markdownlint/schema/ValidatingConfiguration.md +0 -26
  291. package/packages/config-markdownlint/node_modules/markdownlint/schema/markdownlint-config-schema-strict.json +0 -1819
  292. package/packages/config-markdownlint/node_modules/markdownlint/schema/markdownlint-config-schema.json +0 -1824
  293. package/packages/config-markdownlint/node_modules/markdownlint/style/all.json +0 -5
  294. package/packages/config-markdownlint/node_modules/markdownlint/style/cirosantilli.json +0 -22
  295. package/packages/config-markdownlint/node_modules/markdownlint/style/prettier.json +0 -27
  296. package/packages/config-markdownlint/node_modules/markdownlint/style/relaxed.json +0 -12
  297. package/packages/config-markdownlint/node_modules/markdownlint-micromark/LICENSE +0 -21
  298. package/packages/config-markdownlint/node_modules/markdownlint-micromark/README.md +0 -10
  299. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-browser.js +0 -2
  300. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark-html-browser.js +0 -2
  301. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.cjs +0 -1
  302. package/packages/config-markdownlint/node_modules/markdownlint-micromark/micromark.d.cts +0 -1751
  303. package/packages/config-markdownlint/node_modules/markdownlint-micromark/package.json +0 -46
@@ -1,544 +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
- const reparseSymbol = Symbol("reparse");
15
-
16
- /** @typedef {import("markdownlint-micromark").Event} Event */
17
- /** @typedef {import("markdownlint-micromark").ParseOptions} ParseOptions */
18
- /** @typedef {import("markdownlint-micromark").TokenType} TokenType */
19
- /** @typedef {import("../lib/markdownlint.js").MicromarkToken} Token */
20
-
21
- /**
22
- * Determines if a Micromark token is within an htmlFlow.
23
- *
24
- * @param {Token} token Micromark token.
25
- * @returns {boolean} True iff the token is within an htmlFlow.
26
- */
27
- function inHtmlFlow(token) {
28
- return token[reparseSymbol];
29
- }
30
-
31
- /**
32
- * Returns whether a token is an htmlFlow type containing an HTML comment.
33
- *
34
- * @param {Token} token Micromark token.
35
- * @returns {boolean} True iff token is htmlFlow containing a comment.
36
- */
37
- function isHtmlFlowComment(token) {
38
- const { text, type } = token;
39
- if (
40
- (type === "htmlFlow") &&
41
- text.startsWith("<!--") &&
42
- text.endsWith("-->")
43
- ) {
44
- const comment = text.slice(4, -3);
45
- return (
46
- !comment.startsWith(">") &&
47
- !comment.startsWith("->") &&
48
- !comment.endsWith("-")
49
- // The following condition from the CommonMark specification is commented
50
- // to avoid parsing HTML comments that include "--" because that is NOT a
51
- // condition of the HTML specification.
52
- // https://spec.commonmark.org/0.30/#raw-html
53
- // https://html.spec.whatwg.org/multipage/syntax.html#comments
54
- // && !comment.includes("--")
55
- );
56
- }
57
- return false;
58
- }
59
-
60
- /**
61
- * Parses a Markdown document and returns Micromark events.
62
- *
63
- * @param {string} markdown Markdown document.
64
- * @param {ParseOptions} [micromarkOptions] Options for micromark.
65
- * @param {boolean} [referencesDefined] Treat references as defined.
66
- * @returns {Event[]} Micromark events.
67
- */
68
- function getMicromarkEvents(
69
- markdown,
70
- micromarkOptions = {},
71
- referencesDefined = true
72
- ) {
73
-
74
- // Customize options object to add useful extensions
75
- micromarkOptions.extensions = micromarkOptions.extensions || [];
76
- micromarkOptions.extensions.push(
77
- directive(),
78
- gfmAutolinkLiteral(),
79
- gfmFootnote(),
80
- gfmTable(),
81
- math()
82
- );
83
-
84
- // Use micromark to parse document into Events
85
- const encoding = undefined;
86
- const eol = true;
87
- const parseContext = parse(micromarkOptions);
88
- if (referencesDefined) {
89
- // Customize ParseContext to treat all references as defined
90
- parseContext.defined.includes = (searchElement) => searchElement.length > 0;
91
- }
92
- const chunks = preprocess()(markdown, encoding, eol);
93
- const events = postprocess(parseContext.document().write(chunks));
94
- return events;
95
- }
96
-
97
- /**
98
- * Parses a Markdown document and returns (frozen) tokens.
99
- *
100
- * @param {string} markdown Markdown document.
101
- * @param {ParseOptions} micromarkOptions Options for micromark.
102
- * @param {boolean} referencesDefined Treat references as defined.
103
- * @param {number} lineDelta Offset to apply to start/end line.
104
- * @param {Token} [ancestor] Parent of top-most tokens.
105
- * @returns {Token[]} Micromark tokens (frozen).
106
- */
107
- function micromarkParseWithOffset(
108
- markdown,
109
- micromarkOptions,
110
- referencesDefined,
111
- lineDelta,
112
- ancestor
113
- ) {
114
- // Use micromark to parse document into Events
115
- const events = getMicromarkEvents(
116
- markdown, micromarkOptions, referencesDefined
117
- );
118
-
119
- // Create Token objects
120
- const document = [];
121
- let flatTokens = [];
122
- /** @type {Token} */
123
- const root = {
124
- "type": "data",
125
- "startLine": -1,
126
- "startColumn": -1,
127
- "endLine": -1,
128
- "endColumn": -1,
129
- "text": "ROOT",
130
- "children": document,
131
- "parent": null
132
- };
133
- const history = [ root ];
134
- let current = root;
135
- // eslint-disable-next-line jsdoc/valid-types
136
- /** @type ParseOptions | null */
137
- let reparseOptions = null;
138
- let lines = null;
139
- let skipHtmlFlowChildren = false;
140
- for (const event of events) {
141
- const [ kind, token, context ] = event;
142
- const { type, start, end } = token;
143
- const { "column": startColumn, "line": startLine } = start;
144
- const { "column": endColumn, "line": endLine } = end;
145
- const text = context.sliceSerialize(token);
146
- if ((kind === "enter") && !skipHtmlFlowChildren) {
147
- const previous = current;
148
- history.push(previous);
149
- current = {
150
- type,
151
- "startLine": startLine + lineDelta,
152
- startColumn,
153
- "endLine": endLine + lineDelta,
154
- endColumn,
155
- text,
156
- "children": [],
157
- "parent": ((previous === root) ? (ancestor || null) : previous)
158
- };
159
- if (ancestor) {
160
- Object.defineProperty(current, reparseSymbol, { "value": true });
161
- }
162
- previous.children.push(current);
163
- flatTokens.push(current);
164
- if ((current.type === "htmlFlow") && !isHtmlFlowComment(current)) {
165
- skipHtmlFlowChildren = true;
166
- if (!reparseOptions || !lines) {
167
- reparseOptions = {
168
- ...micromarkOptions,
169
- "extensions": [
170
- {
171
- "disable": {
172
- "null": [ "codeIndented", "htmlFlow" ]
173
- }
174
- }
175
- ]
176
- };
177
- lines = markdown.split(newLineRe);
178
- }
179
- const reparseMarkdown = lines
180
- .slice(current.startLine - 1, current.endLine)
181
- .join("\n");
182
- const tokens = micromarkParseWithOffset(
183
- reparseMarkdown,
184
- reparseOptions,
185
- referencesDefined,
186
- current.startLine - 1,
187
- current
188
- );
189
- current.children = tokens;
190
- // Avoid stack overflow of Array.push(...spread)
191
- // eslint-disable-next-line unicorn/prefer-spread
192
- flatTokens = flatTokens.concat(tokens[flatTokensSymbol]);
193
- }
194
- } else if (kind === "exit") {
195
- if (type === "htmlFlow") {
196
- skipHtmlFlowChildren = false;
197
- }
198
- if (!skipHtmlFlowChildren) {
199
- Object.freeze(current.children);
200
- Object.freeze(current);
201
- // @ts-ignore
202
- current = history.pop();
203
- }
204
- }
205
- }
206
-
207
- // Return document
208
- Object.defineProperty(document, flatTokensSymbol, { "value": flatTokens });
209
- Object.freeze(document);
210
- return document;
211
- }
212
-
213
- /**
214
- * Parses a Markdown document and returns (frozen) tokens.
215
- *
216
- * @param {string} markdown Markdown document.
217
- * @param {ParseOptions} [micromarkOptions] Options for micromark.
218
- * @param {boolean} [referencesDefined] Treat references as defined.
219
- * @returns {Token[]} Micromark tokens (frozen).
220
- */
221
- function micromarkParse(
222
- markdown,
223
- micromarkOptions = {},
224
- referencesDefined = true
225
- ) {
226
- return micromarkParseWithOffset(
227
- markdown,
228
- micromarkOptions,
229
- referencesDefined,
230
- 0
231
- );
232
- }
233
-
234
- /**
235
- * Adds a range of numbers to a set.
236
- *
237
- * @param {Set<number>} set Set of numbers.
238
- * @param {number} start Starting number.
239
- * @param {number} end Ending number.
240
- * @returns {void}
241
- */
242
- function addRangeToSet(set, start, end) {
243
- for (let i = start; i <= end; i++) {
244
- set.add(i);
245
- }
246
- }
247
-
248
- /**
249
- * @callback AllowedPredicate
250
- * @param {Token} token Micromark token.
251
- * @returns {boolean} True iff allowed.
252
- */
253
-
254
- /**
255
- * @callback TransformPredicate
256
- * @param {Token} token Micromark token.
257
- * @returns {Token[]} Child tokens.
258
- */
259
-
260
- /**
261
- * Filter a list of Micromark tokens by predicate.
262
- *
263
- * @param {Token[]} tokens Micromark tokens.
264
- * @param {AllowedPredicate} [allowed] Allowed token predicate.
265
- * @param {TransformPredicate} [transformChildren] Transform predicate.
266
- * @returns {Token[]} Filtered tokens.
267
- */
268
- function filterByPredicate(tokens, allowed, transformChildren) {
269
- allowed = allowed || (() => true);
270
- const result = [];
271
- const queue = [
272
- {
273
- "array": tokens,
274
- "index": 0
275
- }
276
- ];
277
- while (queue.length > 0) {
278
- const current = queue[queue.length - 1];
279
- const { array, index } = current;
280
- if (index < array.length) {
281
- const token = array[current.index++];
282
- if (allowed(token)) {
283
- result.push(token);
284
- }
285
- const { children } = token;
286
- if (children.length > 0) {
287
- const transformed =
288
- transformChildren ? transformChildren(token) : children;
289
- queue.push(
290
- {
291
- "array": transformed,
292
- "index": 0
293
- }
294
- );
295
- }
296
- } else {
297
- queue.pop();
298
- }
299
- }
300
- return result;
301
- }
302
-
303
- /**
304
- * Filter a list of Micromark tokens by type.
305
- *
306
- * @param {Token[]} tokens Micromark tokens.
307
- * @param {TokenType[]} types Types to allow.
308
- * @param {boolean} [htmlFlow] Whether to include htmlFlow content.
309
- * @returns {Token[]} Filtered tokens.
310
- */
311
- function filterByTypes(tokens, types, htmlFlow) {
312
- const predicate = (token) =>
313
- (htmlFlow || !inHtmlFlow(token)) && types.includes(token.type);
314
- const flatTokens = tokens[flatTokensSymbol];
315
- if (flatTokens) {
316
- return flatTokens.filter(predicate);
317
- }
318
- return filterByPredicate(tokens, predicate);
319
- }
320
-
321
- /**
322
- * Gets a list of nested Micromark token descendants by type path.
323
- *
324
- * @param {Token|Token[]} parent Micromark token parent or parents.
325
- * @param {TokenType[]} typePath Micromark token type path.
326
- * @returns {Token[]} Micromark token descendants.
327
- */
328
- function getDescendantsByType(parent, typePath) {
329
- let tokens = Array.isArray(parent) ? parent : [ parent ];
330
- for (const type of typePath) {
331
- tokens = tokens.flatMap((t) => t.children).filter((t) => t.type === type);
332
- }
333
- return tokens;
334
- }
335
-
336
- // eslint-disable-next-line jsdoc/valid-types
337
- /** @typedef {readonly string[]} ReadonlyStringArray */
338
-
339
- /**
340
- * Gets the line/column/length exclusions for a Micromark token.
341
- *
342
- * @param {ReadonlyStringArray} lines File/string lines.
343
- * @param {Token} token Micromark token.
344
- * @returns {number[][]} Exclusions (line number, start column, length).
345
- */
346
- function getExclusionsForToken(lines, token) {
347
- const exclusions = [];
348
- const { endColumn, endLine, startColumn, startLine } = token;
349
- for (let lineNumber = startLine; lineNumber <= endLine; lineNumber++) {
350
- const start = (lineNumber === startLine) ? startColumn : 1;
351
- const end = (lineNumber === endLine) ? endColumn : lines[lineNumber - 1].length;
352
- exclusions.push([
353
- lineNumber,
354
- start,
355
- end - start + 1
356
- ]);
357
- }
358
- return exclusions;
359
- }
360
-
361
- /**
362
- * Gets the heading level of a Micromark heading tokan.
363
- *
364
- * @param {Token} heading Micromark heading token.
365
- * @returns {number} Heading level.
366
- */
367
- function getHeadingLevel(heading) {
368
- const headingSequence = filterByTypes(
369
- heading.children,
370
- [ "atxHeadingSequence", "setextHeadingLineSequence" ]
371
- );
372
- let level = 1;
373
- const { text } = headingSequence[0];
374
- if (text[0] === "#") {
375
- level = Math.min(text.length, 6);
376
- } else if (text[0] === "-") {
377
- level = 2;
378
- }
379
- return level;
380
- }
381
-
382
- /**
383
- * Gets the heading style of a Micromark heading tokan.
384
- *
385
- * @param {Token} heading Micromark heading token.
386
- * @returns {"atx" | "atx_closed" | "setext"} Heading style.
387
- */
388
- function getHeadingStyle(heading) {
389
- if (heading.type === "setextHeading") {
390
- return "setext";
391
- }
392
- const atxHeadingSequenceLength = filterByTypes(
393
- heading.children,
394
- [ "atxHeadingSequence" ]
395
- ).length;
396
- if (atxHeadingSequenceLength === 1) {
397
- return "atx";
398
- }
399
- return "atx_closed";
400
- }
401
-
402
- /**
403
- * Gets the heading text of a Micromark heading token.
404
- *
405
- * @param {Token} heading Micromark heading token.
406
- * @returns {string} Heading text.
407
- */
408
- function getHeadingText(heading) {
409
- const headingTexts = filterByTypes(
410
- heading.children,
411
- [ "atxHeadingText", "setextHeadingText" ]
412
- );
413
- return headingTexts[0]?.text.replace(/[\r\n]+/g, " ") || "";
414
- }
415
-
416
- /**
417
- * HTML tag information.
418
- *
419
- * @typedef {Object} HtmlTagInfo
420
- * @property {boolean} close True iff close tag.
421
- * @property {string} name Tag name.
422
- */
423
-
424
- /**
425
- * Gets information about the tag in an HTML token.
426
- *
427
- * @param {Token} token Micromark token.
428
- * @returns {HtmlTagInfo | null} HTML tag information.
429
- */
430
- function getHtmlTagInfo(token) {
431
- const htmlTagNameRe = /^<([^!>][^/\s>]*)/;
432
- if (token.type === "htmlText") {
433
- const match = htmlTagNameRe.exec(token.text);
434
- if (match) {
435
- const name = match[1];
436
- const close = name.startsWith("/");
437
- return {
438
- close,
439
- "name": close ? name.slice(1) : name
440
- };
441
- }
442
- }
443
- return null;
444
- }
445
-
446
- /**
447
- * Gets the nearest parent of the specified type for a Micromark token.
448
- *
449
- * @param {Token} token Micromark token.
450
- * @param {TokenType[]} types Types to allow.
451
- * @returns {Token | null} Parent token.
452
- */
453
- function getTokenParentOfType(token, types) {
454
- /** @type {Token | null} */
455
- let current = token;
456
- while ((current = current.parent) && !types.includes(current.type)) {
457
- // Empty
458
- }
459
- return current;
460
- }
461
-
462
- /**
463
- * Get the text of the first match from a list of Micromark tokens by type.
464
- *
465
- * @param {Token[]} tokens Micromark tokens.
466
- * @param {TokenType} type Type to match.
467
- * @returns {string | null} Text of token.
468
- */
469
- function getTokenTextByType(tokens, type) {
470
- const filtered = tokens.filter((token) => token.type === type);
471
- return (filtered.length > 0) ? filtered[0].text : null;
472
- }
473
-
474
- /**
475
- * Determines a list of Micromark tokens matches and returns a subset.
476
- *
477
- * @param {Token[]} tokens Micromark tokens.
478
- * @param {TokenType[]} matchTypes Types to match.
479
- * @param {TokenType[]} [resultTypes] Types to return.
480
- * @returns {Token[] | null} Matching tokens.
481
- */
482
- function matchAndGetTokensByType(tokens, matchTypes, resultTypes) {
483
- if (tokens.length !== matchTypes.length) {
484
- return null;
485
- }
486
- resultTypes = resultTypes || matchTypes;
487
- const result = [];
488
- // eslint-disable-next-line unicorn/no-for-loop
489
- for (let i = 0; i < matchTypes.length; i++) {
490
- if (tokens[i].type !== matchTypes[i]) {
491
- return null;
492
- } else if (resultTypes.includes(matchTypes[i])) {
493
- result.push(tokens[i]);
494
- }
495
- }
496
- return result;
497
- }
498
-
499
- /**
500
- * Returns the specified token iff it is of the desired type.
501
- *
502
- * @param {Token} token Micromark token candidate.
503
- * @param {TokenType} type Desired type.
504
- * @returns {Token | null} Token instance.
505
- */
506
- function tokenIfType(token, type) {
507
- return (token && (token.type === type)) ? token : null;
508
- }
509
-
510
- /**
511
- * Set containing token types that do not contain content.
512
- *
513
- * @type {Set<TokenType>}
514
- */
515
- const nonContentTokens = new Set([
516
- "blockQuoteMarker",
517
- "blockQuotePrefix",
518
- "blockQuotePrefixWhitespace",
519
- "lineEnding",
520
- "lineEndingBlank",
521
- "linePrefix",
522
- "listItemIndent"
523
- ]);
524
-
525
- module.exports = {
526
- "parse": micromarkParse,
527
- addRangeToSet,
528
- filterByPredicate,
529
- filterByTypes,
530
- getDescendantsByType,
531
- getExclusionsForToken,
532
- getHeadingLevel,
533
- getHeadingStyle,
534
- getHeadingText,
535
- getHtmlTagInfo,
536
- getMicromarkEvents,
537
- getTokenParentOfType,
538
- getTokenTextByType,
539
- inHtmlFlow,
540
- isHtmlFlowComment,
541
- matchAndGetTokensByType,
542
- nonContentTokens,
543
- tokenIfType
544
- };
@@ -1,26 +0,0 @@
1
- {
2
- "name": "markdownlint-rule-helpers",
3
- "version": "0.26.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,70 +0,0 @@
1
- // @ts-check
2
-
3
- "use strict";
4
-
5
- const helpers = require("../helpers");
6
- const { filterByTypes } = require("../helpers/micromark.cjs");
7
-
8
- /** @type {Map<string, object>} */
9
- const map = new Map();
10
- // eslint-disable-next-line no-undef-init
11
- let params = undefined;
12
-
13
- /**
14
- * Initializes (resets) the cache.
15
- *
16
- * @param {import("./markdownlint").RuleParams} [p] Rule parameters object.
17
- * @returns {void}
18
- */
19
- function initialize(p) {
20
- map.clear();
21
- params = p;
22
- }
23
-
24
- /**
25
- * Gets a cached object value - computes it and caches it.
26
- *
27
- * @param {string} name Cache object name.
28
- * @param {Function} getValue Getter for object value.
29
- * @returns {Object} Object value.
30
- */
31
- function getCached(name, getValue) {
32
- if (map.has(name)) {
33
- return map.get(name);
34
- }
35
- const value = getValue();
36
- map.set(name, value);
37
- return value;
38
- }
39
-
40
- /**
41
- * Filters a list of Micromark tokens by type and caches the result.
42
- *
43
- * @param {import("./markdownlint").MicromarkTokenType[]} types Types to allow.
44
- * @param {boolean} [htmlFlow] Whether to include htmlFlow content.
45
- * @returns {import("./markdownlint").MicromarkToken[]} Filtered tokens.
46
- */
47
- function filterByTypesCached(types, htmlFlow) {
48
- return getCached(
49
- types.join("|"),
50
- () => filterByTypes(params.parsers.micromark.tokens, types, htmlFlow)
51
- );
52
- }
53
-
54
- /**
55
- * Gets a reference link and image data object.
56
- *
57
- * @returns {Object} Reference link and image data object.
58
- */
59
- function getReferenceLinkImageData() {
60
- return getCached(
61
- getReferenceLinkImageData.name,
62
- () => helpers.getReferenceLinkImageData(params.parsers.micromark.tokens)
63
- );
64
- }
65
-
66
- module.exports = {
67
- initialize,
68
- filterByTypesCached,
69
- getReferenceLinkImageData
70
- };