pickier 0.1.28 → 0.1.30

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 (263) hide show
  1. package/dist/ast.d.ts +13 -0
  2. package/dist/bin/cli.js +554 -436
  3. package/dist/plugins/eslint.d.ts +2 -0
  4. package/dist/plugins/general.d.ts +2 -0
  5. package/dist/plugins/index.d.ts +2 -0
  6. package/dist/plugins/lockfile.d.ts +22 -0
  7. package/dist/plugins/markdown.d.ts +2 -0
  8. package/dist/plugins/node.d.ts +2 -0
  9. package/dist/plugins/perfectionist.d.ts +6 -0
  10. package/dist/plugins/pickier.d.ts +2 -0
  11. package/dist/plugins/publint.d.ts +10 -0
  12. package/dist/plugins/quality.d.ts +2 -0
  13. package/dist/plugins/regexp.d.ts +2 -0
  14. package/dist/plugins/shell.d.ts +2 -0
  15. package/dist/plugins/spell.d.ts +3 -0
  16. package/dist/plugins/style.d.ts +2 -0
  17. package/dist/plugins/ts.d.ts +2 -0
  18. package/dist/plugins/unused-imports.d.ts +6 -0
  19. package/dist/plugins/utils.d.ts +4 -0
  20. package/dist/rules/general/_template-tracking.d.ts +31 -0
  21. package/dist/rules/general/array-callback-return.d.ts +2 -0
  22. package/dist/rules/general/constructor-super.d.ts +2 -0
  23. package/dist/rules/general/for-direction.d.ts +2 -0
  24. package/dist/rules/general/getter-return.d.ts +2 -0
  25. package/dist/rules/general/no-async-promise-executor.d.ts +2 -0
  26. package/dist/rules/general/no-compare-neg-zero.d.ts +2 -0
  27. package/dist/rules/general/no-cond-assign.d.ts +2 -0
  28. package/dist/rules/general/no-const-assign.d.ts +2 -0
  29. package/dist/rules/general/no-constant-condition.d.ts +2 -0
  30. package/dist/rules/general/no-constructor-return.d.ts +2 -0
  31. package/dist/rules/general/no-dupe-class-members.d.ts +2 -0
  32. package/dist/rules/general/no-dupe-keys.d.ts +2 -0
  33. package/dist/rules/general/no-duplicate-case.d.ts +2 -0
  34. package/dist/rules/general/no-empty-pattern.d.ts +2 -0
  35. package/dist/rules/general/no-fallthrough.d.ts +2 -0
  36. package/dist/rules/general/no-irregular-whitespace.d.ts +2 -0
  37. package/dist/rules/general/no-loss-of-precision.d.ts +2 -0
  38. package/dist/rules/general/no-new.d.ts +13 -0
  39. package/dist/rules/general/no-promise-executor-return.d.ts +2 -0
  40. package/dist/rules/general/no-redeclare.d.ts +2 -0
  41. package/dist/rules/general/no-regex-spaces.d.ts +10 -0
  42. package/dist/rules/general/no-self-assign.d.ts +2 -0
  43. package/dist/rules/general/no-self-compare.d.ts +2 -0
  44. package/dist/rules/general/no-sparse-arrays.d.ts +2 -0
  45. package/dist/rules/general/no-undef.d.ts +2 -0
  46. package/dist/rules/general/no-unreachable.d.ts +2 -0
  47. package/dist/rules/general/no-unsafe-negation.d.ts +2 -0
  48. package/dist/rules/general/no-unused-vars.d.ts +2 -0
  49. package/dist/rules/general/no-useless-catch.d.ts +2 -0
  50. package/dist/rules/general/prefer-const.d.ts +2 -0
  51. package/dist/rules/general/prefer-object-spread.d.ts +2 -0
  52. package/dist/rules/general/prefer-template.d.ts +2 -0
  53. package/dist/rules/general/use-isnan.d.ts +2 -0
  54. package/dist/rules/general/valid-typeof.d.ts +2 -0
  55. package/dist/rules/imports/first.d.ts +2 -0
  56. package/dist/rules/imports/import-dedupe.d.ts +2 -0
  57. package/dist/rules/imports/named.d.ts +2 -0
  58. package/dist/rules/imports/no-cycle.d.ts +2 -0
  59. package/dist/rules/imports/no-duplicate-imports.d.ts +2 -0
  60. package/dist/rules/imports/no-import-dist.d.ts +2 -0
  61. package/dist/rules/imports/no-import-node-modules-by-path.d.ts +2 -0
  62. package/dist/rules/imports/no-unresolved.d.ts +2 -0
  63. package/dist/rules/lockfile/parser.d.ts +79 -0
  64. package/dist/rules/lockfile/validate-host.d.ts +18 -0
  65. package/dist/rules/lockfile/validate-https.d.ts +14 -0
  66. package/dist/rules/lockfile/validate-integrity.d.ts +19 -0
  67. package/dist/rules/lockfile/validate-package-names.d.ts +23 -0
  68. package/dist/rules/lockfile/validate-scheme.d.ts +17 -0
  69. package/dist/rules/markdown/_fence-tracking.d.ts +32 -0
  70. package/dist/rules/markdown/_shared.d.ts +9 -0
  71. package/dist/rules/markdown/blanks-around-fences.d.ts +5 -0
  72. package/dist/rules/markdown/blanks-around-headings.d.ts +5 -0
  73. package/dist/rules/markdown/blanks-around-lists.d.ts +5 -0
  74. package/dist/rules/markdown/blanks-around-tables.d.ts +5 -0
  75. package/dist/rules/markdown/code-block-style.d.ts +5 -0
  76. package/dist/rules/markdown/code-fence-style.d.ts +5 -0
  77. package/dist/rules/markdown/commands-show-output.d.ts +5 -0
  78. package/dist/rules/markdown/descriptive-link-text.d.ts +5 -0
  79. package/dist/rules/markdown/emphasis-style.d.ts +5 -0
  80. package/dist/rules/markdown/fenced-code-language.d.ts +5 -0
  81. package/dist/rules/markdown/first-line-heading.d.ts +5 -0
  82. package/dist/rules/markdown/heading-increment.d.ts +5 -0
  83. package/dist/rules/markdown/heading-start-left.d.ts +5 -0
  84. package/dist/rules/markdown/heading-style.d.ts +5 -0
  85. package/dist/rules/markdown/hr-style.d.ts +5 -0
  86. package/dist/rules/markdown/line-length.d.ts +5 -0
  87. package/dist/rules/markdown/link-fragments.d.ts +5 -0
  88. package/dist/rules/markdown/link-image-reference-definitions.d.ts +5 -0
  89. package/dist/rules/markdown/link-image-style.d.ts +5 -0
  90. package/dist/rules/markdown/list-indent.d.ts +5 -0
  91. package/dist/rules/markdown/list-marker-space.d.ts +5 -0
  92. package/dist/rules/markdown/no-alt-text.d.ts +5 -0
  93. package/dist/rules/markdown/no-bare-urls.d.ts +5 -0
  94. package/dist/rules/markdown/no-blanks-blockquote.d.ts +5 -0
  95. package/dist/rules/markdown/no-duplicate-heading.d.ts +10 -0
  96. package/dist/rules/markdown/no-emphasis-as-heading.d.ts +9 -0
  97. package/dist/rules/markdown/no-empty-links.d.ts +5 -0
  98. package/dist/rules/markdown/no-hard-tabs.d.ts +5 -0
  99. package/dist/rules/markdown/no-inline-html.d.ts +5 -0
  100. package/dist/rules/markdown/no-missing-space-atx.d.ts +5 -0
  101. package/dist/rules/markdown/no-missing-space-closed-atx.d.ts +5 -0
  102. package/dist/rules/markdown/no-multiple-blanks.d.ts +5 -0
  103. package/dist/rules/markdown/no-multiple-space-atx.d.ts +5 -0
  104. package/dist/rules/markdown/no-multiple-space-blockquote.d.ts +5 -0
  105. package/dist/rules/markdown/no-multiple-space-closed-atx.d.ts +5 -0
  106. package/dist/rules/markdown/no-reversed-links.d.ts +5 -0
  107. package/dist/rules/markdown/no-space-in-code.d.ts +5 -0
  108. package/dist/rules/markdown/no-space-in-emphasis.d.ts +5 -0
  109. package/dist/rules/markdown/no-space-in-links.d.ts +5 -0
  110. package/dist/rules/markdown/no-trailing-punctuation.d.ts +5 -0
  111. package/dist/rules/markdown/no-trailing-spaces.d.ts +5 -0
  112. package/dist/rules/markdown/ol-prefix.d.ts +5 -0
  113. package/dist/rules/markdown/proper-names.d.ts +5 -0
  114. package/dist/rules/markdown/reference-links-images.d.ts +14 -0
  115. package/dist/rules/markdown/required-headings.d.ts +5 -0
  116. package/dist/rules/markdown/single-title.d.ts +5 -0
  117. package/dist/rules/markdown/single-trailing-newline.d.ts +5 -0
  118. package/dist/rules/markdown/strong-style.d.ts +5 -0
  119. package/dist/rules/markdown/table-column-count.d.ts +5 -0
  120. package/dist/rules/markdown/table-column-style.d.ts +5 -0
  121. package/dist/rules/markdown/table-pipe-style.d.ts +5 -0
  122. package/dist/rules/markdown/ul-indent.d.ts +14 -0
  123. package/dist/rules/markdown/ul-style.d.ts +5 -0
  124. package/dist/rules/node/prefer-global-buffer.d.ts +9 -0
  125. package/dist/rules/node/prefer-global-process.d.ts +9 -0
  126. package/dist/rules/quality/complexity.d.ts +2 -0
  127. package/dist/rules/quality/default-case.d.ts +2 -0
  128. package/dist/rules/quality/eqeqeq.d.ts +2 -0
  129. package/dist/rules/quality/max-depth.d.ts +2 -0
  130. package/dist/rules/quality/max-lines-per-function.d.ts +2 -0
  131. package/dist/rules/quality/no-alert.d.ts +2 -0
  132. package/dist/rules/quality/no-await-in-loop.d.ts +2 -0
  133. package/dist/rules/quality/no-caller.d.ts +2 -0
  134. package/dist/rules/quality/no-case-declarations.d.ts +2 -0
  135. package/dist/rules/quality/no-else-return.d.ts +2 -0
  136. package/dist/rules/quality/no-empty-function.d.ts +2 -0
  137. package/dist/rules/quality/no-empty.d.ts +2 -0
  138. package/dist/rules/quality/no-eval.d.ts +2 -0
  139. package/dist/rules/quality/no-extend-native.d.ts +2 -0
  140. package/dist/rules/quality/no-extra-boolean-cast.d.ts +2 -0
  141. package/dist/rules/quality/no-global-assign.d.ts +2 -0
  142. package/dist/rules/quality/no-implied-eval.d.ts +2 -0
  143. package/dist/rules/quality/no-iterator.d.ts +2 -0
  144. package/dist/rules/quality/no-lonely-if.d.ts +2 -0
  145. package/dist/rules/quality/no-new-func.d.ts +2 -0
  146. package/dist/rules/quality/no-new-wrappers.d.ts +2 -0
  147. package/dist/rules/quality/no-new.d.ts +2 -0
  148. package/dist/rules/quality/no-octal.d.ts +2 -0
  149. package/dist/rules/quality/no-param-reassign.d.ts +2 -0
  150. package/dist/rules/quality/no-proto.d.ts +2 -0
  151. package/dist/rules/quality/no-return-assign.d.ts +2 -0
  152. package/dist/rules/quality/no-sequences.d.ts +2 -0
  153. package/dist/rules/quality/no-shadow.d.ts +2 -0
  154. package/dist/rules/quality/no-throw-literal.d.ts +2 -0
  155. package/dist/rules/quality/no-use-before-define.d.ts +2 -0
  156. package/dist/rules/quality/no-useless-call.d.ts +2 -0
  157. package/dist/rules/quality/no-useless-concat.d.ts +2 -0
  158. package/dist/rules/quality/no-useless-escape.d.ts +2 -0
  159. package/dist/rules/quality/no-useless-rename.d.ts +2 -0
  160. package/dist/rules/quality/no-useless-return.d.ts +2 -0
  161. package/dist/rules/quality/no-var.d.ts +2 -0
  162. package/dist/rules/quality/no-with.d.ts +2 -0
  163. package/dist/rules/quality/prefer-arrow-callback.d.ts +2 -0
  164. package/dist/rules/quality/require-await.d.ts +2 -0
  165. package/dist/rules/regexp/no-super-linear-backtracking.d.ts +2 -0
  166. package/dist/rules/regexp/no-unused-capturing-group.d.ts +2 -0
  167. package/dist/rules/regexp/no-useless-lazy.d.ts +9 -0
  168. package/dist/rules/shell/_shared.d.ts +24 -0
  169. package/dist/rules/shell/command-substitution.d.ts +6 -0
  170. package/dist/rules/shell/consistent-case-terminators.d.ts +9 -0
  171. package/dist/rules/shell/function-style.d.ts +6 -0
  172. package/dist/rules/shell/heredoc-indent.d.ts +7 -0
  173. package/dist/rules/shell/indent.d.ts +2 -0
  174. package/dist/rules/shell/keyword-spacing.d.ts +10 -0
  175. package/dist/rules/shell/no-broken-redirect.d.ts +7 -0
  176. package/dist/rules/shell/no-cd-without-check.d.ts +6 -0
  177. package/dist/rules/shell/no-eval.d.ts +6 -0
  178. package/dist/rules/shell/no-exit-in-subshell.d.ts +7 -0
  179. package/dist/rules/shell/no-ls-parsing.d.ts +7 -0
  180. package/dist/rules/shell/no-trailing-semicolons.d.ts +6 -0
  181. package/dist/rules/shell/no-trailing-whitespace.d.ts +5 -0
  182. package/dist/rules/shell/no-useless-cat.d.ts +6 -0
  183. package/dist/rules/shell/no-variable-in-single-quotes.d.ts +7 -0
  184. package/dist/rules/shell/operator-spacing.d.ts +11 -0
  185. package/dist/rules/shell/prefer-double-brackets.d.ts +6 -0
  186. package/dist/rules/shell/prefer-printf.d.ts +6 -0
  187. package/dist/rules/shell/quote-variables.d.ts +2 -0
  188. package/dist/rules/shell/set-options.d.ts +8 -0
  189. package/dist/rules/shell/shebang.d.ts +2 -0
  190. package/dist/rules/sort/exports.d.ts +2 -0
  191. package/dist/rules/sort/heritage-clauses.d.ts +2 -0
  192. package/dist/rules/sort/imports.d.ts +2 -0
  193. package/dist/rules/sort/keys.d.ts +2 -0
  194. package/dist/rules/sort/named-imports.d.ts +2 -0
  195. package/dist/rules/sort/objects.d.ts +2 -0
  196. package/dist/rules/sort/tailwind-classes.d.ts +5 -0
  197. package/dist/rules/style/array-bracket-spacing.d.ts +2 -0
  198. package/dist/rules/style/arrow-parens.d.ts +2 -0
  199. package/dist/rules/style/arrow-spacing.d.ts +2 -0
  200. package/dist/rules/style/block-spacing.d.ts +2 -0
  201. package/dist/rules/style/brace-style.d.ts +10 -0
  202. package/dist/rules/style/comma-dangle.d.ts +2 -0
  203. package/dist/rules/style/comma-spacing.d.ts +2 -0
  204. package/dist/rules/style/comma-style.d.ts +2 -0
  205. package/dist/rules/style/computed-property-spacing.d.ts +2 -0
  206. package/dist/rules/style/consistent-chaining.d.ts +2 -0
  207. package/dist/rules/style/consistent-list-newline.d.ts +2 -0
  208. package/dist/rules/style/curly.d.ts +5 -0
  209. package/dist/rules/style/dot-location.d.ts +2 -0
  210. package/dist/rules/style/function-call-spacing.d.ts +2 -0
  211. package/dist/rules/style/generator-star-spacing.d.ts +2 -0
  212. package/dist/rules/style/if-newline.d.ts +2 -0
  213. package/dist/rules/style/indent-binary-ops.d.ts +2 -0
  214. package/dist/rules/style/indent-unindent.d.ts +2 -0
  215. package/dist/rules/style/key-spacing.d.ts +2 -0
  216. package/dist/rules/style/keyword-spacing.d.ts +2 -0
  217. package/dist/rules/style/lines-between-class-members.d.ts +2 -0
  218. package/dist/rules/style/max-statements-per-line.d.ts +2 -0
  219. package/dist/rules/style/multiline-ternary.d.ts +2 -0
  220. package/dist/rules/style/new-parens.d.ts +2 -0
  221. package/dist/rules/style/no-extra-parens.d.ts +2 -0
  222. package/dist/rules/style/no-floating-decimal.d.ts +2 -0
  223. package/dist/rules/style/no-mixed-operators.d.ts +2 -0
  224. package/dist/rules/style/no-mixed-spaces-and-tabs.d.ts +2 -0
  225. package/dist/rules/style/no-multi-spaces.d.ts +10 -0
  226. package/dist/rules/style/no-multiple-empty-lines.d.ts +9 -0
  227. package/dist/rules/style/no-tabs.d.ts +2 -0
  228. package/dist/rules/style/no-trailing-spaces.d.ts +9 -0
  229. package/dist/rules/style/no-whitespace-before-property.d.ts +2 -0
  230. package/dist/rules/style/object-curly-spacing.d.ts +2 -0
  231. package/dist/rules/style/operator-linebreak.d.ts +2 -0
  232. package/dist/rules/style/padded-blocks.d.ts +2 -0
  233. package/dist/rules/style/quote-props.d.ts +2 -0
  234. package/dist/rules/style/rest-spread-spacing.d.ts +2 -0
  235. package/dist/rules/style/semi-spacing.d.ts +2 -0
  236. package/dist/rules/style/space-before-blocks.d.ts +2 -0
  237. package/dist/rules/style/space-before-function-paren.d.ts +2 -0
  238. package/dist/rules/style/space-in-parens.d.ts +2 -0
  239. package/dist/rules/style/space-infix-ops.d.ts +2 -0
  240. package/dist/rules/style/space-unary-ops.d.ts +2 -0
  241. package/dist/rules/style/spaced-comment.d.ts +2 -0
  242. package/dist/rules/style/switch-colon-spacing.d.ts +2 -0
  243. package/dist/rules/style/template-curly-spacing.d.ts +2 -0
  244. package/dist/rules/style/template-tag-spacing.d.ts +2 -0
  245. package/dist/rules/style/top-level-function.d.ts +6 -0
  246. package/dist/rules/style/wrap-iife.d.ts +2 -0
  247. package/dist/rules/style/yield-star-spacing.d.ts +2 -0
  248. package/dist/rules/ts/member-delimiter-style.d.ts +4 -0
  249. package/dist/rules/ts/no-explicit-any.d.ts +2 -0
  250. package/dist/rules/ts/no-floating-promises.d.ts +2 -0
  251. package/dist/rules/ts/no-misused-promises.d.ts +2 -0
  252. package/dist/rules/ts/no-require-imports.d.ts +2 -0
  253. package/dist/rules/ts/no-top-level-await.d.ts +4 -0
  254. package/dist/rules/ts/no-ts-export-equal.d.ts +2 -0
  255. package/dist/rules/ts/no-unsafe-assignment.d.ts +2 -0
  256. package/dist/rules/ts/prefer-nullish-coalescing.d.ts +2 -0
  257. package/dist/rules/ts/prefer-optional-chain.d.ts +2 -0
  258. package/dist/rules/ts/type-annotation-spacing.d.ts +2 -0
  259. package/dist/rules/ts/type-generic-spacing.d.ts +2 -0
  260. package/dist/rules/ts/type-named-tuple-spacing.d.ts +2 -0
  261. package/dist/src/index.js +527 -423
  262. package/dist/utils.d.ts +12 -3
  263. package/package.json +3 -2
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD040 - Fenced code blocks should have a language specified
4
+ */
5
+ export declare const fencedCodeLanguageRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD041 - First line in a file should be a top-level heading
4
+ */
5
+ export declare const firstLineHeadingRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD001 - Heading levels should only increment by one level at a time
4
+ */
5
+ export declare const headingIncrementRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD023 - Headings must start at the beginning of the line
4
+ */
5
+ export declare const headingStartLeftRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD003 - Heading style
4
+ */
5
+ export declare const headingStyleRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD035 - Horizontal rule style
4
+ */
5
+ export declare const hrStyleRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD013 - Line length
4
+ */
5
+ export declare const lineLengthRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD051 - Link fragments should be valid
4
+ */
5
+ export declare const linkFragmentsRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD053 - Link and image reference definitions should be needed
4
+ */
5
+ export declare const linkImageReferenceDefinitionsRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD054 - Link and image style
4
+ */
5
+ export declare const linkImageStyleRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD005 - Inconsistent indentation for list items at the same level
4
+ */
5
+ export declare const listIndentRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD030 - Spaces after list markers
4
+ */
5
+ export declare const listMarkerSpaceRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD045 - Images should have alternate text (alt text)
4
+ */
5
+ export declare const noAltTextRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD034 - Bare URL used
4
+ */
5
+ export declare const noBareUrlsRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD028 - Blank line inside blockquote
4
+ */
5
+ export declare const noBlanksBlockquoteRule: RuleModule;
@@ -0,0 +1,10 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD024 - Multiple headings with the same content
4
+ *
5
+ * Uses "siblings only" mode by default: only flags duplicate headings
6
+ * within the same parent section. This avoids false positives in
7
+ * changelogs and other documents where headings naturally repeat
8
+ * across different sections (e.g., each version has "Features", "Fixes").
9
+ */
10
+ export declare const noDuplicateHeadingRule: RuleModule;
@@ -0,0 +1,9 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD036 - Emphasis used instead of a heading
4
+ *
5
+ * Flags standalone bold/italic lines that look like headings.
6
+ * Matches markdownlint MD036 behavior: skips lines ending in punctuation
7
+ * (., !, ?, :, ,, ;) since those are sentences/labels, not headings.
8
+ */
9
+ export declare const noEmphasisAsHeadingRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD042 - No empty links
4
+ */
5
+ export declare const noEmptyLinksRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD010 - Hard tabs
4
+ */
5
+ export declare const noHardTabsRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD033 - Inline HTML
4
+ */
5
+ export declare const noInlineHtmlRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD018 - No space after hash on atx style heading
4
+ */
5
+ export declare const noMissingSpaceAtxRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD020 - No space inside hashes on closed atx style heading
4
+ */
5
+ export declare const noMissingSpaceClosedAtxRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD012 - Multiple consecutive blank lines
4
+ */
5
+ export declare const noMultipleBlanksRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD019 - Multiple spaces after hash on atx style heading
4
+ */
5
+ export declare const noMultipleSpaceAtxRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD027 - Multiple spaces after blockquote symbol
4
+ */
5
+ export declare const noMultipleSpaceBlockquoteRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD021 - Multiple spaces inside hashes on closed atx style heading
4
+ */
5
+ export declare const noMultipleSpaceClosedAtxRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD011 - Reversed link syntax
4
+ */
5
+ export declare const noReversedLinksRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD038 - Spaces inside code span elements
4
+ */
5
+ export declare const noSpaceInCodeRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD037 - Spaces inside emphasis markers
4
+ */
5
+ export declare const noSpaceInEmphasisRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD039 - Spaces inside link text
4
+ */
5
+ export declare const noSpaceInLinksRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD026 - Trailing punctuation in heading
4
+ */
5
+ export declare const noTrailingPunctuationRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD009 - Trailing spaces
4
+ */
5
+ export declare const noTrailingSpacesRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD029 - Ordered list item prefix
4
+ */
5
+ export declare const olPrefixRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD044 - Proper names should have the correct capitalization
4
+ */
5
+ export declare const properNamesRule: RuleModule;
@@ -0,0 +1,14 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD052 - Reference links and images should use a label that is defined
4
+ *
5
+ * Only fires on explicit reference-style link/image syntax where the
6
+ * intent is unambiguous: `[text][label]` or `![alt][label]`.
7
+ *
8
+ * Does NOT fire on bare `[text]` shortcut references, because those collide
9
+ * with too many legitimate non-link uses: array literals, TypeScript tuples,
10
+ * shell test expressions, JSON examples, citation markers, etc.
11
+ *
12
+ * Matches markdownlint MD052 behavior for explicit references only.
13
+ */
14
+ export declare const referenceLinksImagesRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD043 - Required heading structure
4
+ */
5
+ export declare const requiredHeadingsRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD025 - Multiple top-level headings in the same document
4
+ */
5
+ export declare const singleTitleRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD047 - Files should end with a single newline character
4
+ */
5
+ export declare const singleTrailingNewlineRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD050 - Strong style
4
+ */
5
+ export declare const strongStyleRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD056 - Table column count
4
+ */
5
+ export declare const tableColumnCountRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD060 - Table column style
4
+ */
5
+ export declare const tableColumnStyleRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD055 - Table pipe style
4
+ */
5
+ export declare const tablePipeStyleRule: RuleModule;
@@ -0,0 +1,14 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD007 - Unordered list indentation
4
+ *
5
+ * Tracks list-nesting context to correctly handle nested lists, including
6
+ * lists nested inside ordered list items (where indentation must align
7
+ * with the content after the ordered marker, e.g. 3 spaces after "1. ").
8
+ *
9
+ * Matches markdownlint MD007 behavior: only top-level unordered lists and
10
+ * their descendants nested under other unordered lists are checked against
11
+ * the fixed indent. Lists nested inside ordered items may use any indent
12
+ * that aligns with the parent's content column.
13
+ */
14
+ export declare const ulIndentRule: RuleModule;
@@ -0,0 +1,5 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * MD004 - Unordered list style
4
+ */
5
+ export declare const ulStyleRule: RuleModule;
@@ -0,0 +1,9 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * Enforce using the global `Buffer` instead of `require("buffer").Buffer`.
4
+ * In Node.js, `Buffer` is a global, so requiring it explicitly is unnecessary.
5
+ *
6
+ * Violations:
7
+ * - Using `Buffer` without importing (should use require("buffer").Buffer)
8
+ */
9
+ export declare const preferGlobalBuffer: RuleModule;
@@ -0,0 +1,9 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * Enforce using the global `process` instead of `require("process")`.
4
+ * In Node.js, `process` is a global, so requiring it explicitly is unnecessary.
5
+ *
6
+ * Violations:
7
+ * - Using `process` without importing (should use require("process"))
8
+ */
9
+ export declare const preferGlobalProcess: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const complexityRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const defaultCaseRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const eqeqeqRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const maxDepthRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const maxLinesPerFunctionRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noAlertRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noAwaitInLoopRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noCallerRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noCaseDeclarationsRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noElseReturnRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noEmptyFunctionRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noEmptyRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noEvalRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noExtendNativeRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noExtraBooleanCastRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noGlobalAssignRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noImpliedEvalRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noIteratorRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noLonelyIfRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noNewFuncRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noNewWrappersRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noNewRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noOctalRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noParamReassignRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noProtoRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noReturnAssignRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noSequencesRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noShadowRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noThrowLiteralRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noUseBeforeDefineRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noUselessCallRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noUselessConcatRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noUselessEscapeRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noUselessRenameRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noUselessReturnRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noVarRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noWithRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const preferArrowCallbackRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const requireAwaitRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noSuperLinearBacktrackingRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const noUnusedCapturingGroupRule: RuleModule;
@@ -0,0 +1,9 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * Disallow lazy quantifiers when they don't affect matching behavior
4
+ *
5
+ * Examples of useless lazy:
6
+ * - /a+?$/ - lazy is useless because $ forces end-of-string
7
+ * - /a*?b/ - lazy might be useless in some contexts
8
+ */
9
+ export declare const noUselessLazy: RuleModule;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Replace the interiors of shell strings, parameter expansions, command
3
+ * substitutions, and arithmetic expansions with spaces so regex-based rules
4
+ * can operate on "bare shell code" without false positives from characters
5
+ * that appear inside `$'...'`, `'...'`, `"..."`, `` `...` ``, `${...}`,
6
+ * `$(...)`, `$((...))`, or trailing `# ...` comments.
7
+ *
8
+ * The returned string has the same length as the input so that indices
9
+ * produced by matches on the masked line are valid indices in the original.
10
+ *
11
+ * Only *interior* characters are masked to spaces; structural delimiters
12
+ * (`'`, `"`, `` ` ``, `$`, `(`, `)`, `{`, `}`) are preserved so that rules
13
+ * can still reason about whether a token sits next to a string boundary —
14
+ * e.g. `"$var"]` still reports the `"` as the character preceding `]`.
15
+ */
16
+ export declare function maskShellStrings(line: string): string;
17
+ /**
18
+ * Track heredoc start and end within a line-by-line scan. Returns the
19
+ * delimiter recognised at this line, or `null` if this line does not start a
20
+ * heredoc. The caller tracks state by flipping a boolean when
21
+ * `heredocDelimiter` returns non-null, and clearing it when the delimiter
22
+ * matches a subsequent line's trimmed content.
23
+ */
24
+ export declare function heredocDelimiter(line: string): string | null;
@@ -0,0 +1,6 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * SC2006: Use $(...) notation instead of legacy backtick `...` command substitution.
4
+ * Backticks are harder to nest and read. $() is the modern POSIX-compliant alternative.
5
+ */
6
+ export declare const commandSubstitutionRule: RuleModule;
@@ -0,0 +1,9 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * Enforce consistent placement of case statement terminators (;;).
4
+ * Each case branch must end with ;; before the next pattern or the closing
5
+ * `esac`. The rule walks the case body honoring nested block structure so
6
+ * `)` characters inside `for ... done`, `while ... done`, `if ... fi`, and
7
+ * `$(...)` subshells are not mistaken for the next case pattern.
8
+ */
9
+ export declare const consistentCaseTerminatorsRule: RuleModule;
@@ -0,0 +1,6 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * Enforce consistent function declaration style in shell scripts.
4
+ * Default: prefer `name() {` over `function name {` (POSIX-compatible).
5
+ */
6
+ export declare const functionStyleRule: RuleModule;
@@ -0,0 +1,7 @@
1
+ import type { RuleModule } from '../../types';
2
+ /**
3
+ * Recommend <<- (with tab stripping) for indented heredocs.
4
+ * When a heredoc is inside a function or loop, using << requires the delimiter
5
+ * to be at column 0, which breaks indentation flow.
6
+ */
7
+ export declare const heredocIndentRule: RuleModule;
@@ -0,0 +1,2 @@
1
+ import type { RuleModule } from '../../types';
2
+ export declare const indentRule: RuleModule;