pickier 0.1.67 → 0.1.69

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 (135) hide show
  1. package/dist/bin/cli.js +2 -2
  2. package/dist/chunk-0wjnsb7e.js +3 -0
  3. package/dist/chunk-1c4363f9.js +3 -0
  4. package/dist/chunk-1gsmqw00.js +2 -0
  5. package/dist/chunk-1r811fef.js +9 -0
  6. package/dist/chunk-861zc8zq.js +2 -0
  7. package/dist/chunk-9nk05dhr.js +3 -0
  8. package/dist/chunk-9w2q7ghj.js +2 -0
  9. package/dist/chunk-acdw0br0.js +3 -0
  10. package/dist/chunk-dqv1qww5.js +128 -0
  11. package/dist/chunk-dxrcbgyc.js +49 -0
  12. package/dist/chunk-he3fbz3w.js +8 -0
  13. package/dist/chunk-hyabhvem.js +2 -0
  14. package/dist/chunk-jqsghmew.js +3 -0
  15. package/dist/chunk-t4eg5fx5.js +41 -0
  16. package/dist/chunk-vjsh2bkt.js +25 -0
  17. package/dist/chunk-w7q10fyj.js +2 -0
  18. package/dist/chunk-yvrap76h.js +3 -0
  19. package/dist/chunk-zp6n036m.js +61 -0
  20. package/dist/native/darwin-arm64/pickier-native +0 -0
  21. package/dist/native/darwin-x64/pickier-native +0 -0
  22. package/dist/native/linux-arm64/pickier-native +0 -0
  23. package/dist/native/linux-x64/pickier-native +0 -0
  24. package/dist/native/win32-arm64/pickier-native.exe +0 -0
  25. package/dist/native/win32-x64/pickier-native.exe +0 -0
  26. package/dist/src/cache.d.ts +21 -0
  27. package/dist/src/index.js +1 -1
  28. package/dist/src/lexer.d.ts +2 -0
  29. package/dist/src/lint-worker.d.ts +1 -0
  30. package/dist/src/lint-worker.js +2 -0
  31. package/dist/src/linter.d.ts +17 -1
  32. package/dist/src/logger.d.ts +20 -0
  33. package/dist/src/native.d.ts +64 -0
  34. package/dist/src/parallel.d.ts +17 -0
  35. package/dist/src/plugins/lazy.d.ts +10 -0
  36. package/dist/src/plugins/manifest.d.ts +123 -0
  37. package/dist/src/plugins/utils.d.ts +6 -0
  38. package/dist/src/rules/style/consistent-list-newline.d.ts +2 -0
  39. package/dist/src/types.d.ts +1 -0
  40. package/dist/src/utils.d.ts +1 -0
  41. package/package.json +3 -2
  42. package/dist/chunk-13r0v0m9.js +0 -226
  43. package/dist/chunk-bxyt25b3.js +0 -2
  44. package/dist/chunk-by60fzz0.js +0 -92
  45. package/dist/chunk-rtzfbwtn.js +0 -2
  46. package/dist/chunk-tvt73e07.js +0 -2
  47. package/dist/chunk-xf6t6ene.js +0 -2
  48. package/dist/src/plugins/index.d.ts +0 -2
  49. package/dist/src/plugins/lockfile.d.ts +0 -22
  50. package/dist/src/plugins/markdown.d.ts +0 -2
  51. package/dist/src/plugins/publint.d.ts +0 -10
  52. package/dist/src/plugins/shell.d.ts +0 -2
  53. package/dist/src/plugins/spell.d.ts +0 -3
  54. package/dist/src/rules/lockfile/parser.d.ts +0 -85
  55. package/dist/src/rules/lockfile/validate-host.d.ts +0 -18
  56. package/dist/src/rules/lockfile/validate-https.d.ts +0 -14
  57. package/dist/src/rules/lockfile/validate-integrity.d.ts +0 -19
  58. package/dist/src/rules/lockfile/validate-package-names.d.ts +0 -23
  59. package/dist/src/rules/lockfile/validate-scheme.d.ts +0 -17
  60. package/dist/src/rules/markdown/_fence-tracking.d.ts +0 -70
  61. package/dist/src/rules/markdown/_shared.d.ts +0 -9
  62. package/dist/src/rules/markdown/blanks-around-fences.d.ts +0 -5
  63. package/dist/src/rules/markdown/blanks-around-headings.d.ts +0 -5
  64. package/dist/src/rules/markdown/blanks-around-lists.d.ts +0 -5
  65. package/dist/src/rules/markdown/blanks-around-tables.d.ts +0 -5
  66. package/dist/src/rules/markdown/code-block-style.d.ts +0 -5
  67. package/dist/src/rules/markdown/code-fence-style.d.ts +0 -5
  68. package/dist/src/rules/markdown/commands-show-output.d.ts +0 -5
  69. package/dist/src/rules/markdown/descriptive-link-text.d.ts +0 -5
  70. package/dist/src/rules/markdown/emphasis-style.d.ts +0 -5
  71. package/dist/src/rules/markdown/fenced-code-language.d.ts +0 -5
  72. package/dist/src/rules/markdown/first-line-heading.d.ts +0 -5
  73. package/dist/src/rules/markdown/heading-increment.d.ts +0 -5
  74. package/dist/src/rules/markdown/heading-start-left.d.ts +0 -5
  75. package/dist/src/rules/markdown/heading-style.d.ts +0 -5
  76. package/dist/src/rules/markdown/hr-style.d.ts +0 -5
  77. package/dist/src/rules/markdown/line-length.d.ts +0 -5
  78. package/dist/src/rules/markdown/link-fragments.d.ts +0 -5
  79. package/dist/src/rules/markdown/link-image-reference-definitions.d.ts +0 -5
  80. package/dist/src/rules/markdown/link-image-style.d.ts +0 -5
  81. package/dist/src/rules/markdown/list-indent.d.ts +0 -5
  82. package/dist/src/rules/markdown/list-marker-space.d.ts +0 -5
  83. package/dist/src/rules/markdown/no-alt-text.d.ts +0 -5
  84. package/dist/src/rules/markdown/no-bare-urls.d.ts +0 -5
  85. package/dist/src/rules/markdown/no-blanks-blockquote.d.ts +0 -5
  86. package/dist/src/rules/markdown/no-duplicate-heading.d.ts +0 -10
  87. package/dist/src/rules/markdown/no-emphasis-as-heading.d.ts +0 -9
  88. package/dist/src/rules/markdown/no-empty-links.d.ts +0 -5
  89. package/dist/src/rules/markdown/no-hard-tabs.d.ts +0 -5
  90. package/dist/src/rules/markdown/no-inline-html.d.ts +0 -5
  91. package/dist/src/rules/markdown/no-missing-space-atx.d.ts +0 -5
  92. package/dist/src/rules/markdown/no-missing-space-closed-atx.d.ts +0 -5
  93. package/dist/src/rules/markdown/no-multiple-blanks.d.ts +0 -5
  94. package/dist/src/rules/markdown/no-multiple-space-atx.d.ts +0 -5
  95. package/dist/src/rules/markdown/no-multiple-space-blockquote.d.ts +0 -5
  96. package/dist/src/rules/markdown/no-multiple-space-closed-atx.d.ts +0 -5
  97. package/dist/src/rules/markdown/no-reversed-links.d.ts +0 -5
  98. package/dist/src/rules/markdown/no-space-in-code.d.ts +0 -5
  99. package/dist/src/rules/markdown/no-space-in-emphasis.d.ts +0 -5
  100. package/dist/src/rules/markdown/no-space-in-links.d.ts +0 -5
  101. package/dist/src/rules/markdown/no-trailing-punctuation.d.ts +0 -5
  102. package/dist/src/rules/markdown/no-trailing-spaces.d.ts +0 -5
  103. package/dist/src/rules/markdown/ol-prefix.d.ts +0 -5
  104. package/dist/src/rules/markdown/proper-names.d.ts +0 -5
  105. package/dist/src/rules/markdown/reference-links-images.d.ts +0 -14
  106. package/dist/src/rules/markdown/required-headings.d.ts +0 -5
  107. package/dist/src/rules/markdown/single-title.d.ts +0 -5
  108. package/dist/src/rules/markdown/single-trailing-newline.d.ts +0 -5
  109. package/dist/src/rules/markdown/strong-style.d.ts +0 -16
  110. package/dist/src/rules/markdown/table-column-count.d.ts +0 -5
  111. package/dist/src/rules/markdown/table-column-style.d.ts +0 -5
  112. package/dist/src/rules/markdown/table-pipe-style.d.ts +0 -5
  113. package/dist/src/rules/markdown/ul-indent.d.ts +0 -14
  114. package/dist/src/rules/markdown/ul-style.d.ts +0 -5
  115. package/dist/src/rules/shell/command-substitution.d.ts +0 -6
  116. package/dist/src/rules/shell/consistent-case-terminators.d.ts +0 -9
  117. package/dist/src/rules/shell/function-style.d.ts +0 -6
  118. package/dist/src/rules/shell/heredoc-indent.d.ts +0 -7
  119. package/dist/src/rules/shell/indent.d.ts +0 -2
  120. package/dist/src/rules/shell/keyword-spacing.d.ts +0 -10
  121. package/dist/src/rules/shell/no-broken-redirect.d.ts +0 -7
  122. package/dist/src/rules/shell/no-cd-without-check.d.ts +0 -6
  123. package/dist/src/rules/shell/no-eval.d.ts +0 -6
  124. package/dist/src/rules/shell/no-exit-in-subshell.d.ts +0 -7
  125. package/dist/src/rules/shell/no-ls-parsing.d.ts +0 -7
  126. package/dist/src/rules/shell/no-trailing-semicolons.d.ts +0 -6
  127. package/dist/src/rules/shell/no-trailing-whitespace.d.ts +0 -5
  128. package/dist/src/rules/shell/no-useless-cat.d.ts +0 -6
  129. package/dist/src/rules/shell/no-variable-in-single-quotes.d.ts +0 -7
  130. package/dist/src/rules/shell/operator-spacing.d.ts +0 -11
  131. package/dist/src/rules/shell/prefer-double-brackets.d.ts +0 -6
  132. package/dist/src/rules/shell/prefer-printf.d.ts +0 -6
  133. package/dist/src/rules/shell/quote-variables.d.ts +0 -2
  134. package/dist/src/rules/shell/set-options.d.ts +0 -8
  135. package/dist/src/rules/shell/shebang.d.ts +0 -2
@@ -1,14 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * MD043 - Required heading structure
4
- */
5
- export declare const requiredHeadingsRule: RuleModule;
@@ -1,5 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * MD025 - Multiple top-level headings in the same document
4
- */
5
- export declare const singleTitleRule: RuleModule;
@@ -1,5 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * MD047 - Files should end with a single newline character
4
- */
5
- export declare const singleTrailingNewlineRule: RuleModule;
@@ -1,16 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * MD050 - Strong style
4
- *
5
- * Inline code spans are masked before anything is matched, the way its twin
6
- * `emphasis-style` already did. Without it a code span holding two double
7
- * underscores - `typeof __ctx === 'undefined' ? undefined : __ctx` is the real
8
- * case - reads as underscore-strong, so a document written entirely in
9
- * asterisks is reported as inconsistent on every `**bold**` after it.
10
- *
11
- * The warning was the harmless half. The fixer rewrote the same span into
12
- * `**ctx === 'undefined' ? undefined : **ctx`, which changes what the code
13
- * says - a formatter corrupting code it was asked to leave alone is a much
14
- * worse failure than a false positive.
15
- */
16
- export declare const strongStyleRule: RuleModule;
@@ -1,5 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * MD056 - Table column count
4
- */
5
- export declare const tableColumnCountRule: RuleModule;
@@ -1,5 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * MD060 - Table column style
4
- */
5
- export declare const tableColumnStyleRule: RuleModule;
@@ -1,5 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * MD055 - Table pipe style
4
- */
5
- export declare const tablePipeStyleRule: RuleModule;
@@ -1,14 +0,0 @@
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;
@@ -1,5 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * MD004 - Unordered list style
4
- */
5
- export declare const ulStyleRule: RuleModule;
@@ -1,6 +0,0 @@
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;
@@ -1,9 +0,0 @@
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;
@@ -1,6 +0,0 @@
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;
@@ -1,7 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- export declare const indentRule: RuleModule;
@@ -1,10 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * Enforce proper spacing around shell keywords.
4
- * Flags: `if(`, `then;cmd`, missing space after ; in control flow, etc.
5
- *
6
- * String/quote/expansion interiors are ignored via `maskShellStrings`, so
7
- * ANSI-C escape codes such as `$'\033[0;31m'` are not misread as having a
8
- * missing space after `;`.
9
- */
10
- export declare const keywordSpacingRule: RuleModule;
@@ -1,7 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * SC2069: Detect broken redirect ordering.
4
- * `cmd 2>&1 > file` redirects stderr to original stdout (terminal), not the file.
5
- * Correct: `cmd > file 2>&1` or `cmd &> file` (bash).
6
- */
7
- export declare const noBrokenRedirectRule: RuleModule;
@@ -1,6 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * SC2164: Use `cd ... || exit` or `cd ... || return` to handle cd failure.
4
- * If `cd` fails, subsequent commands run in the wrong directory.
5
- */
6
- export declare const noCdWithoutCheckRule: RuleModule;
@@ -1,6 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * Disallow use of eval in shell scripts.
4
- * eval is dangerous because it re-parses its arguments, leading to code injection risks.
5
- */
6
- export declare const noEvalRule: RuleModule;
@@ -1,7 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * SC2033: exit in subshell only exits the subshell, not the script.
4
- * Code like `(cd dir && exit 1)` won't stop the parent script.
5
- * Use return in functions, or restructure to avoid subshells.
6
- */
7
- export declare const noExitInSubshellRule: RuleModule;
@@ -1,7 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * SC2012: Don't parse the output of ls.
4
- * ls output is not safe for parsing — filenames can contain newlines, spaces, and special chars.
5
- * Use globs, find, or stat instead.
6
- */
7
- export declare const noLsParsingRule: RuleModule;
@@ -1,6 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * Disallow unnecessary trailing semicolons on simple commands.
4
- * In shell, semicolons separate commands on the same line but are unnecessary at end of line.
5
- */
6
- export declare const noTrailingSemicolonsRule: RuleModule;
@@ -1,5 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * Disallow trailing whitespace in shell scripts.
4
- */
5
- export declare const noTrailingWhitespaceRule: RuleModule;
@@ -1,6 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * SC2002: Useless use of cat. Instead of `cat file | cmd`, use `cmd < file` or `cmd file`.
4
- * Avoids spawning an unnecessary process.
5
- */
6
- export declare const noUselessCatRule: RuleModule;
@@ -1,7 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * SC2016: Expressions don't expand in single quotes.
4
- * Detects cases where $var or ${var} appears inside single quotes,
5
- * which likely indicates the author intended double quotes.
6
- */
7
- export declare const noVariableInSingleQuotesRule: RuleModule;
@@ -1,11 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * Enforce spaces inside test bracket expressions [ ] and [[ ]].
4
- * Missing spaces cause syntax errors or incorrect behavior.
5
- *
6
- * The rule ignores `[` and `]` that appear inside strings (`'...'`, `"..."`,
7
- * `$'...'`), parameter expansions (`${arr[@]}`, `${arr[0]}`), command
8
- * substitutions (`$(...)`) and comments, so valid bash such as
9
- * `${CERTS[@]}` or ANSI-C escapes like `$'\033[0;31m'` are not flagged.
10
- */
11
- export declare const operatorSpacingRule: RuleModule;
@@ -1,6 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * SC2292: Prefer [[ ]] over [ ] for tests in bash/zsh.
4
- * [[ ]] is safer: no word splitting, no pathname expansion, supports && || and regex.
5
- */
6
- export declare const preferDoubleBracketsRule: RuleModule;
@@ -1,6 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * SC2059/SC2086: Prefer printf over echo -e / echo -n.
4
- * echo behavior varies across shells and platforms; printf is portable and predictable.
5
- */
6
- export declare const preferPrintfRule: RuleModule;
@@ -1,2 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- export declare const quoteVariablesRule: RuleModule;
@@ -1,8 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- /**
3
- * Recommend using `set -euo pipefail` for safer script execution.
4
- * - set -e: Exit on error
5
- * - set -u: Error on undefined variables
6
- * - set -o pipefail: Pipe failures propagate
7
- */
8
- export declare const setOptionsRule: RuleModule;
@@ -1,2 +0,0 @@
1
- import type { RuleModule } from '../../types';
2
- export declare const shebangRule: RuleModule;