pickier 0.1.26 → 0.1.28
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.
- package/dist/bin/cli.js +7921 -2628
- package/dist/src/index.js +6536 -1534
- package/dist/utils.d.ts +15 -21
- package/package.json +4 -4
- package/dist/ast.d.ts +0 -13
- package/dist/plugins/eslint.d.ts +0 -2
- package/dist/plugins/general.d.ts +0 -2
- package/dist/plugins/index.d.ts +0 -2
- package/dist/plugins/lockfile.d.ts +0 -22
- package/dist/plugins/markdown.d.ts +0 -2
- package/dist/plugins/node.d.ts +0 -2
- package/dist/plugins/perfectionist.d.ts +0 -6
- package/dist/plugins/pickier.d.ts +0 -2
- package/dist/plugins/publint.d.ts +0 -10
- package/dist/plugins/quality.d.ts +0 -2
- package/dist/plugins/regexp.d.ts +0 -2
- package/dist/plugins/shell.d.ts +0 -2
- package/dist/plugins/spell.d.ts +0 -3
- package/dist/plugins/style.d.ts +0 -2
- package/dist/plugins/ts.d.ts +0 -2
- package/dist/plugins/unused-imports.d.ts +0 -6
- package/dist/plugins/utils.d.ts +0 -4
- package/dist/rules/general/_template-tracking.d.ts +0 -31
- package/dist/rules/general/array-callback-return.d.ts +0 -2
- package/dist/rules/general/constructor-super.d.ts +0 -2
- package/dist/rules/general/for-direction.d.ts +0 -2
- package/dist/rules/general/getter-return.d.ts +0 -2
- package/dist/rules/general/no-async-promise-executor.d.ts +0 -2
- package/dist/rules/general/no-compare-neg-zero.d.ts +0 -2
- package/dist/rules/general/no-cond-assign.d.ts +0 -2
- package/dist/rules/general/no-const-assign.d.ts +0 -2
- package/dist/rules/general/no-constant-condition.d.ts +0 -2
- package/dist/rules/general/no-constructor-return.d.ts +0 -2
- package/dist/rules/general/no-dupe-class-members.d.ts +0 -2
- package/dist/rules/general/no-dupe-keys.d.ts +0 -2
- package/dist/rules/general/no-duplicate-case.d.ts +0 -2
- package/dist/rules/general/no-empty-pattern.d.ts +0 -2
- package/dist/rules/general/no-fallthrough.d.ts +0 -2
- package/dist/rules/general/no-irregular-whitespace.d.ts +0 -2
- package/dist/rules/general/no-loss-of-precision.d.ts +0 -2
- package/dist/rules/general/no-new.d.ts +0 -13
- package/dist/rules/general/no-promise-executor-return.d.ts +0 -2
- package/dist/rules/general/no-redeclare.d.ts +0 -2
- package/dist/rules/general/no-regex-spaces.d.ts +0 -10
- package/dist/rules/general/no-self-assign.d.ts +0 -2
- package/dist/rules/general/no-self-compare.d.ts +0 -2
- package/dist/rules/general/no-sparse-arrays.d.ts +0 -2
- package/dist/rules/general/no-undef.d.ts +0 -2
- package/dist/rules/general/no-unreachable.d.ts +0 -2
- package/dist/rules/general/no-unsafe-negation.d.ts +0 -2
- package/dist/rules/general/no-unused-vars.d.ts +0 -2
- package/dist/rules/general/no-useless-catch.d.ts +0 -2
- package/dist/rules/general/prefer-const.d.ts +0 -2
- package/dist/rules/general/prefer-object-spread.d.ts +0 -2
- package/dist/rules/general/prefer-template.d.ts +0 -2
- package/dist/rules/general/use-isnan.d.ts +0 -2
- package/dist/rules/general/valid-typeof.d.ts +0 -2
- package/dist/rules/imports/first.d.ts +0 -2
- package/dist/rules/imports/import-dedupe.d.ts +0 -2
- package/dist/rules/imports/named.d.ts +0 -2
- package/dist/rules/imports/no-cycle.d.ts +0 -2
- package/dist/rules/imports/no-duplicate-imports.d.ts +0 -2
- package/dist/rules/imports/no-import-dist.d.ts +0 -2
- package/dist/rules/imports/no-import-node-modules-by-path.d.ts +0 -2
- package/dist/rules/imports/no-unresolved.d.ts +0 -2
- package/dist/rules/lockfile/index.d.ts +0 -6
- package/dist/rules/lockfile/parser.d.ts +0 -79
- package/dist/rules/lockfile/validate-host.d.ts +0 -18
- package/dist/rules/lockfile/validate-https.d.ts +0 -14
- package/dist/rules/lockfile/validate-integrity.d.ts +0 -19
- package/dist/rules/lockfile/validate-package-names.d.ts +0 -23
- package/dist/rules/lockfile/validate-scheme.d.ts +0 -17
- package/dist/rules/markdown/_fence-tracking.d.ts +0 -32
- package/dist/rules/markdown/_shared.d.ts +0 -9
- package/dist/rules/markdown/blanks-around-fences.d.ts +0 -5
- package/dist/rules/markdown/blanks-around-headings.d.ts +0 -5
- package/dist/rules/markdown/blanks-around-lists.d.ts +0 -5
- package/dist/rules/markdown/blanks-around-tables.d.ts +0 -5
- package/dist/rules/markdown/code-block-style.d.ts +0 -5
- package/dist/rules/markdown/code-fence-style.d.ts +0 -5
- package/dist/rules/markdown/commands-show-output.d.ts +0 -5
- package/dist/rules/markdown/descriptive-link-text.d.ts +0 -5
- package/dist/rules/markdown/emphasis-style.d.ts +0 -5
- package/dist/rules/markdown/fenced-code-language.d.ts +0 -5
- package/dist/rules/markdown/first-line-heading.d.ts +0 -5
- package/dist/rules/markdown/heading-increment.d.ts +0 -5
- package/dist/rules/markdown/heading-start-left.d.ts +0 -5
- package/dist/rules/markdown/heading-style.d.ts +0 -5
- package/dist/rules/markdown/hr-style.d.ts +0 -5
- package/dist/rules/markdown/line-length.d.ts +0 -5
- package/dist/rules/markdown/link-fragments.d.ts +0 -5
- package/dist/rules/markdown/link-image-reference-definitions.d.ts +0 -5
- package/dist/rules/markdown/link-image-style.d.ts +0 -5
- package/dist/rules/markdown/list-indent.d.ts +0 -5
- package/dist/rules/markdown/list-marker-space.d.ts +0 -5
- package/dist/rules/markdown/no-alt-text.d.ts +0 -5
- package/dist/rules/markdown/no-bare-urls.d.ts +0 -5
- package/dist/rules/markdown/no-blanks-blockquote.d.ts +0 -5
- package/dist/rules/markdown/no-duplicate-heading.d.ts +0 -10
- package/dist/rules/markdown/no-emphasis-as-heading.d.ts +0 -9
- package/dist/rules/markdown/no-empty-links.d.ts +0 -5
- package/dist/rules/markdown/no-hard-tabs.d.ts +0 -5
- package/dist/rules/markdown/no-inline-html.d.ts +0 -5
- package/dist/rules/markdown/no-missing-space-atx.d.ts +0 -5
- package/dist/rules/markdown/no-missing-space-closed-atx.d.ts +0 -5
- package/dist/rules/markdown/no-multiple-blanks.d.ts +0 -5
- package/dist/rules/markdown/no-multiple-space-atx.d.ts +0 -5
- package/dist/rules/markdown/no-multiple-space-blockquote.d.ts +0 -5
- package/dist/rules/markdown/no-multiple-space-closed-atx.d.ts +0 -5
- package/dist/rules/markdown/no-reversed-links.d.ts +0 -5
- package/dist/rules/markdown/no-space-in-code.d.ts +0 -5
- package/dist/rules/markdown/no-space-in-emphasis.d.ts +0 -5
- package/dist/rules/markdown/no-space-in-links.d.ts +0 -5
- package/dist/rules/markdown/no-trailing-punctuation.d.ts +0 -5
- package/dist/rules/markdown/no-trailing-spaces.d.ts +0 -5
- package/dist/rules/markdown/ol-prefix.d.ts +0 -5
- package/dist/rules/markdown/proper-names.d.ts +0 -5
- package/dist/rules/markdown/reference-links-images.d.ts +0 -14
- package/dist/rules/markdown/required-headings.d.ts +0 -5
- package/dist/rules/markdown/single-title.d.ts +0 -5
- package/dist/rules/markdown/single-trailing-newline.d.ts +0 -5
- package/dist/rules/markdown/strong-style.d.ts +0 -5
- package/dist/rules/markdown/table-column-count.d.ts +0 -5
- package/dist/rules/markdown/table-column-style.d.ts +0 -5
- package/dist/rules/markdown/table-pipe-style.d.ts +0 -5
- package/dist/rules/markdown/ul-indent.d.ts +0 -14
- package/dist/rules/markdown/ul-style.d.ts +0 -5
- package/dist/rules/node/prefer-global-buffer.d.ts +0 -9
- package/dist/rules/node/prefer-global-process.d.ts +0 -9
- package/dist/rules/publint/bin-file-not-executable.d.ts +0 -2
- package/dist/rules/publint/deprecated-field-jsnext.d.ts +0 -2
- package/dist/rules/publint/exports-default-should-be-last.d.ts +0 -2
- package/dist/rules/publint/exports-fallback-array-use.d.ts +0 -2
- package/dist/rules/publint/exports-missing-root-entrypoint.d.ts +0 -2
- package/dist/rules/publint/exports-module-should-be-esm.d.ts +0 -2
- package/dist/rules/publint/exports-module-should-precede-require.d.ts +0 -2
- package/dist/rules/publint/exports-types-should-be-first.d.ts +0 -2
- package/dist/rules/publint/exports-value-invalid.d.ts +0 -2
- package/dist/rules/publint/field-invalid-value-type.d.ts +0 -2
- package/dist/rules/publint/file-does-not-exist.d.ts +0 -2
- package/dist/rules/publint/file-invalid-format.d.ts +0 -2
- package/dist/rules/publint/has-module-but-no-exports.d.ts +0 -2
- package/dist/rules/publint/imports-default-should-be-last.d.ts +0 -2
- package/dist/rules/publint/imports-key-invalid.d.ts +0 -2
- package/dist/rules/publint/imports-module-should-precede-require.d.ts +0 -2
- package/dist/rules/publint/imports-value-invalid.d.ts +0 -2
- package/dist/rules/publint/index.d.ts +0 -22
- package/dist/rules/publint/local-dependency.d.ts +0 -2
- package/dist/rules/publint/module-should-be-esm.d.ts +0 -2
- package/dist/rules/publint/use-type.d.ts +0 -2
- package/dist/rules/publint/utils.d.ts +0 -73
- package/dist/rules/quality/complexity.d.ts +0 -2
- package/dist/rules/quality/default-case.d.ts +0 -2
- package/dist/rules/quality/eqeqeq.d.ts +0 -2
- package/dist/rules/quality/max-depth.d.ts +0 -2
- package/dist/rules/quality/max-lines-per-function.d.ts +0 -2
- package/dist/rules/quality/no-alert.d.ts +0 -2
- package/dist/rules/quality/no-await-in-loop.d.ts +0 -2
- package/dist/rules/quality/no-caller.d.ts +0 -2
- package/dist/rules/quality/no-case-declarations.d.ts +0 -2
- package/dist/rules/quality/no-else-return.d.ts +0 -2
- package/dist/rules/quality/no-empty-function.d.ts +0 -2
- package/dist/rules/quality/no-empty.d.ts +0 -2
- package/dist/rules/quality/no-eval.d.ts +0 -2
- package/dist/rules/quality/no-extend-native.d.ts +0 -2
- package/dist/rules/quality/no-extra-boolean-cast.d.ts +0 -2
- package/dist/rules/quality/no-global-assign.d.ts +0 -2
- package/dist/rules/quality/no-implied-eval.d.ts +0 -2
- package/dist/rules/quality/no-iterator.d.ts +0 -2
- package/dist/rules/quality/no-lonely-if.d.ts +0 -2
- package/dist/rules/quality/no-new-func.d.ts +0 -2
- package/dist/rules/quality/no-new-wrappers.d.ts +0 -2
- package/dist/rules/quality/no-new.d.ts +0 -2
- package/dist/rules/quality/no-octal.d.ts +0 -2
- package/dist/rules/quality/no-param-reassign.d.ts +0 -2
- package/dist/rules/quality/no-proto.d.ts +0 -2
- package/dist/rules/quality/no-return-assign.d.ts +0 -2
- package/dist/rules/quality/no-sequences.d.ts +0 -2
- package/dist/rules/quality/no-shadow.d.ts +0 -2
- package/dist/rules/quality/no-throw-literal.d.ts +0 -2
- package/dist/rules/quality/no-use-before-define.d.ts +0 -2
- package/dist/rules/quality/no-useless-call.d.ts +0 -2
- package/dist/rules/quality/no-useless-concat.d.ts +0 -2
- package/dist/rules/quality/no-useless-escape.d.ts +0 -2
- package/dist/rules/quality/no-useless-rename.d.ts +0 -2
- package/dist/rules/quality/no-useless-return.d.ts +0 -2
- package/dist/rules/quality/no-var.d.ts +0 -2
- package/dist/rules/quality/no-with.d.ts +0 -2
- package/dist/rules/quality/prefer-arrow-callback.d.ts +0 -2
- package/dist/rules/quality/require-await.d.ts +0 -2
- package/dist/rules/regexp/no-super-linear-backtracking.d.ts +0 -2
- package/dist/rules/regexp/no-unused-capturing-group.d.ts +0 -2
- package/dist/rules/regexp/no-useless-lazy.d.ts +0 -9
- package/dist/rules/shell/_shared.d.ts +0 -24
- package/dist/rules/shell/command-substitution.d.ts +0 -6
- package/dist/rules/shell/consistent-case-terminators.d.ts +0 -9
- package/dist/rules/shell/function-style.d.ts +0 -6
- package/dist/rules/shell/heredoc-indent.d.ts +0 -7
- package/dist/rules/shell/indent.d.ts +0 -2
- package/dist/rules/shell/keyword-spacing.d.ts +0 -10
- package/dist/rules/shell/no-broken-redirect.d.ts +0 -7
- package/dist/rules/shell/no-cd-without-check.d.ts +0 -6
- package/dist/rules/shell/no-eval.d.ts +0 -6
- package/dist/rules/shell/no-exit-in-subshell.d.ts +0 -7
- package/dist/rules/shell/no-ls-parsing.d.ts +0 -7
- package/dist/rules/shell/no-trailing-semicolons.d.ts +0 -6
- package/dist/rules/shell/no-trailing-whitespace.d.ts +0 -5
- package/dist/rules/shell/no-useless-cat.d.ts +0 -6
- package/dist/rules/shell/no-variable-in-single-quotes.d.ts +0 -7
- package/dist/rules/shell/operator-spacing.d.ts +0 -11
- package/dist/rules/shell/prefer-double-brackets.d.ts +0 -6
- package/dist/rules/shell/prefer-printf.d.ts +0 -6
- package/dist/rules/shell/quote-variables.d.ts +0 -2
- package/dist/rules/shell/set-options.d.ts +0 -8
- package/dist/rules/shell/shebang.d.ts +0 -2
- package/dist/rules/sort/exports.d.ts +0 -2
- package/dist/rules/sort/heritage-clauses.d.ts +0 -2
- package/dist/rules/sort/imports.d.ts +0 -2
- package/dist/rules/sort/keys.d.ts +0 -2
- package/dist/rules/sort/named-imports.d.ts +0 -2
- package/dist/rules/sort/objects.d.ts +0 -2
- package/dist/rules/sort/tailwind-classes.d.ts +0 -5
- package/dist/rules/style/array-bracket-spacing.d.ts +0 -2
- package/dist/rules/style/arrow-parens.d.ts +0 -2
- package/dist/rules/style/arrow-spacing.d.ts +0 -2
- package/dist/rules/style/block-spacing.d.ts +0 -2
- package/dist/rules/style/brace-style.d.ts +0 -10
- package/dist/rules/style/comma-dangle.d.ts +0 -2
- package/dist/rules/style/comma-spacing.d.ts +0 -2
- package/dist/rules/style/comma-style.d.ts +0 -2
- package/dist/rules/style/computed-property-spacing.d.ts +0 -2
- package/dist/rules/style/consistent-chaining.d.ts +0 -2
- package/dist/rules/style/consistent-list-newline.d.ts +0 -2
- package/dist/rules/style/curly.d.ts +0 -5
- package/dist/rules/style/dot-location.d.ts +0 -2
- package/dist/rules/style/function-call-spacing.d.ts +0 -2
- package/dist/rules/style/generator-star-spacing.d.ts +0 -2
- package/dist/rules/style/if-newline.d.ts +0 -2
- package/dist/rules/style/indent-binary-ops.d.ts +0 -2
- package/dist/rules/style/indent-unindent.d.ts +0 -2
- package/dist/rules/style/key-spacing.d.ts +0 -2
- package/dist/rules/style/keyword-spacing.d.ts +0 -2
- package/dist/rules/style/lines-between-class-members.d.ts +0 -2
- package/dist/rules/style/max-statements-per-line.d.ts +0 -2
- package/dist/rules/style/multiline-ternary.d.ts +0 -2
- package/dist/rules/style/new-parens.d.ts +0 -2
- package/dist/rules/style/no-extra-parens.d.ts +0 -2
- package/dist/rules/style/no-floating-decimal.d.ts +0 -2
- package/dist/rules/style/no-mixed-operators.d.ts +0 -2
- package/dist/rules/style/no-mixed-spaces-and-tabs.d.ts +0 -2
- package/dist/rules/style/no-multi-spaces.d.ts +0 -10
- package/dist/rules/style/no-multiple-empty-lines.d.ts +0 -9
- package/dist/rules/style/no-tabs.d.ts +0 -2
- package/dist/rules/style/no-trailing-spaces.d.ts +0 -9
- package/dist/rules/style/no-whitespace-before-property.d.ts +0 -2
- package/dist/rules/style/object-curly-spacing.d.ts +0 -2
- package/dist/rules/style/operator-linebreak.d.ts +0 -2
- package/dist/rules/style/padded-blocks.d.ts +0 -2
- package/dist/rules/style/quote-props.d.ts +0 -2
- package/dist/rules/style/rest-spread-spacing.d.ts +0 -2
- package/dist/rules/style/semi-spacing.d.ts +0 -2
- package/dist/rules/style/space-before-blocks.d.ts +0 -2
- package/dist/rules/style/space-before-function-paren.d.ts +0 -2
- package/dist/rules/style/space-in-parens.d.ts +0 -2
- package/dist/rules/style/space-infix-ops.d.ts +0 -2
- package/dist/rules/style/space-unary-ops.d.ts +0 -2
- package/dist/rules/style/spaced-comment.d.ts +0 -2
- package/dist/rules/style/switch-colon-spacing.d.ts +0 -2
- package/dist/rules/style/template-curly-spacing.d.ts +0 -2
- package/dist/rules/style/template-tag-spacing.d.ts +0 -2
- package/dist/rules/style/top-level-function.d.ts +0 -6
- package/dist/rules/style/wrap-iife.d.ts +0 -2
- package/dist/rules/style/yield-star-spacing.d.ts +0 -2
- package/dist/rules/ts/member-delimiter-style.d.ts +0 -4
- package/dist/rules/ts/no-explicit-any.d.ts +0 -2
- package/dist/rules/ts/no-floating-promises.d.ts +0 -2
- package/dist/rules/ts/no-misused-promises.d.ts +0 -2
- package/dist/rules/ts/no-require-imports.d.ts +0 -2
- package/dist/rules/ts/no-top-level-await.d.ts +0 -4
- package/dist/rules/ts/no-ts-export-equal.d.ts +0 -2
- package/dist/rules/ts/no-unsafe-assignment.d.ts +0 -2
- package/dist/rules/ts/prefer-nullish-coalescing.d.ts +0 -2
- package/dist/rules/ts/prefer-optional-chain.d.ts +0 -2
- package/dist/rules/ts/type-annotation-spacing.d.ts +0 -2
- package/dist/rules/ts/type-generic-spacing.d.ts +0 -2
- package/dist/rules/ts/type-named-tuple-spacing.d.ts +0 -2
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CommonMark-compliant code-block detection for markdown.
|
|
3
|
-
*
|
|
4
|
-
* Returns a Set of 0-indexed line numbers that are inside any code block —
|
|
5
|
-
* fenced (` ``` ... ``` ` / `~~~ ... ~~~`) or indented (4-space prefix). The
|
|
6
|
-
* fence boundary lines themselves are also included.
|
|
7
|
-
*
|
|
8
|
-
* Per the CommonMark spec, a fenced code block:
|
|
9
|
-
* - Opens with at least 3 backticks or tildes, optionally followed by an
|
|
10
|
-
* "info string" (e.g. ` ```js `).
|
|
11
|
-
* - Closes only with the SAME fence character, AT LEAST as many of them
|
|
12
|
-
* as the opener, and an EMPTY info string (just the run of backticks
|
|
13
|
-
* or tildes plus optional trailing whitespace).
|
|
14
|
-
* - Anything else inside the block — including ` ```js ` lines — is
|
|
15
|
-
* content, not a fence boundary.
|
|
16
|
-
*
|
|
17
|
-
* The naive tracker that toggles on every `^`{3,}|~{3,}` confuses
|
|
18
|
-
* `` ```js `` with a close and corrupts state for the rest of the file.
|
|
19
|
-
* Use this helper instead.
|
|
20
|
-
*
|
|
21
|
-
* Indented code blocks: a line is treated as inside an indented code block
|
|
22
|
-
* when it has 4+ leading spaces and the previous non-blank line is also
|
|
23
|
-
* indented (or blank with another indented line above it). Lines inside a
|
|
24
|
-
* fenced block don't double-count as indented.
|
|
25
|
-
*/
|
|
26
|
-
export declare function getCodeBlockLines(lines: string[]): Set<number>;
|
|
27
|
-
/**
|
|
28
|
-
* Like `getCodeBlockLines` but returns whether a single line index is
|
|
29
|
-
* inside ANY kind of code block — handy for one-shot checks where you
|
|
30
|
-
* don't already have the set computed.
|
|
31
|
-
*/
|
|
32
|
-
export declare function isInsideCodeBlock(lines: string[], targetIdx: number): boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Identify genuine GFM table rows in a markdown document. A row counts as
|
|
3
|
-
* a table row when it is part of a block that includes a separator row of
|
|
4
|
-
* the form `|---|---|` (pipes + dashes, optional colons for alignment).
|
|
5
|
-
* Stray `|` characters inside paragraphs are ignored. Lines inside fenced
|
|
6
|
-
* or indented code blocks are ignored — `| Foo | Bar |` lines inside a
|
|
7
|
-
* `` ```markdown `` example are content, not real tables.
|
|
8
|
-
*/
|
|
9
|
-
export declare function findTableRows(lines: string[]): Set<number>;
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -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,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,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Tier 1 - Pure JSON analysis
|
|
2
|
-
export { deprecatedFieldJsnext } from './deprecated-field-jsnext';
|
|
3
|
-
export { exportsDefaultShouldBeLast } from './exports-default-should-be-last';
|
|
4
|
-
export { exportsFallbackArrayUse } from './exports-fallback-array-use';
|
|
5
|
-
export { exportsMissingRootEntrypoint } from './exports-missing-root-entrypoint';
|
|
6
|
-
export { exportsModuleShouldPrecedeRequire } from './exports-module-should-precede-require';
|
|
7
|
-
export { exportsTypesShouldBeFirst } from './exports-types-should-be-first';
|
|
8
|
-
export { exportsValueInvalid } from './exports-value-invalid';
|
|
9
|
-
export { fieldInvalidValueType } from './field-invalid-value-type';
|
|
10
|
-
export { hasModuleButNoExports } from './has-module-but-no-exports';
|
|
11
|
-
export { importsDefaultShouldBeLast } from './imports-default-should-be-last';
|
|
12
|
-
export { importsKeyInvalid } from './imports-key-invalid';
|
|
13
|
-
export { importsModuleShouldPrecedeRequire } from './imports-module-should-precede-require';
|
|
14
|
-
export { importsValueInvalid } from './imports-value-invalid';
|
|
15
|
-
export { localDependency } from './local-dependency';
|
|
16
|
-
export { useType } from './use-type';
|
|
17
|
-
// Tier 2 - Filesystem access
|
|
18
|
-
export { binFileNotExecutable } from './bin-file-not-executable';
|
|
19
|
-
export { exportsModuleShouldBeEsm } from './exports-module-should-be-esm';
|
|
20
|
-
export { fileDoesNotExist } from './file-does-not-exist';
|
|
21
|
-
export { fileInvalidFormat } from './file-invalid-format';
|
|
22
|
-
export { moduleShouldBeEsm } from './module-should-be-esm';
|