pickier 0.1.19 → 0.1.21
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/README.md +80 -459
- package/dist/ast.d.ts +4 -15
- package/dist/bin/cli.js +18409 -15891
- package/dist/config.d.ts +1 -1
- package/dist/format.d.ts +1 -1
- package/dist/formatter.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/linter.d.ts +3 -3
- package/dist/plugins/eslint.d.ts +1 -1
- package/dist/plugins/general.d.ts +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/lockfile.d.ts +1 -1
- package/dist/plugins/markdown.d.ts +1 -1
- package/dist/plugins/node.d.ts +1 -1
- package/dist/plugins/perfectionist.d.ts +1 -1
- package/dist/plugins/pickier.d.ts +1 -1
- package/dist/plugins/publint.d.ts +1 -2
- package/dist/plugins/quality.d.ts +1 -1
- package/dist/plugins/regexp.d.ts +1 -1
- package/dist/plugins/shell.d.ts +2 -0
- package/dist/plugins/spell.d.ts +3 -0
- package/dist/plugins/style.d.ts +1 -1
- package/dist/plugins/ts.d.ts +1 -1
- package/dist/plugins/unused-imports.d.ts +1 -1
- package/dist/plugins/utils.d.ts +2 -1
- package/dist/rules/general/array-callback-return.d.ts +1 -1
- package/dist/rules/general/constructor-super.d.ts +1 -1
- package/dist/rules/general/for-direction.d.ts +1 -1
- package/dist/rules/general/getter-return.d.ts +1 -1
- package/dist/rules/general/no-async-promise-executor.d.ts +1 -1
- package/dist/rules/general/no-compare-neg-zero.d.ts +1 -1
- package/dist/rules/general/no-cond-assign.d.ts +1 -1
- package/dist/rules/general/no-const-assign.d.ts +1 -1
- package/dist/rules/general/no-constant-condition.d.ts +1 -1
- package/dist/rules/general/no-constructor-return.d.ts +1 -1
- package/dist/rules/general/no-dupe-class-members.d.ts +1 -1
- package/dist/rules/general/no-dupe-keys.d.ts +1 -1
- package/dist/rules/general/no-duplicate-case.d.ts +1 -1
- package/dist/rules/general/no-empty-pattern.d.ts +1 -1
- package/dist/rules/general/no-fallthrough.d.ts +1 -1
- package/dist/rules/general/no-irregular-whitespace.d.ts +1 -1
- package/dist/rules/general/no-loss-of-precision.d.ts +1 -1
- package/dist/rules/general/no-new.d.ts +1 -1
- package/dist/rules/general/no-promise-executor-return.d.ts +1 -1
- package/dist/rules/general/no-redeclare.d.ts +1 -1
- package/dist/rules/general/no-regex-spaces.d.ts +1 -1
- package/dist/rules/general/no-self-assign.d.ts +1 -1
- package/dist/rules/general/no-self-compare.d.ts +1 -1
- package/dist/rules/general/no-sparse-arrays.d.ts +1 -1
- package/dist/rules/general/no-undef.d.ts +1 -1
- package/dist/rules/general/no-unreachable.d.ts +1 -1
- package/dist/rules/general/no-unsafe-negation.d.ts +1 -1
- package/dist/rules/general/no-unused-vars.d.ts +1 -1
- package/dist/rules/general/no-useless-catch.d.ts +1 -1
- package/dist/rules/general/prefer-const.d.ts +1 -1
- package/dist/rules/general/prefer-object-spread.d.ts +1 -1
- package/dist/rules/general/prefer-template.d.ts +1 -1
- package/dist/rules/general/use-isnan.d.ts +1 -1
- package/dist/rules/general/valid-typeof.d.ts +1 -1
- package/dist/rules/imports/first.d.ts +1 -1
- package/dist/rules/imports/import-dedupe.d.ts +1 -1
- package/dist/rules/imports/named.d.ts +1 -1
- package/dist/rules/imports/no-cycle.d.ts +1 -1
- package/dist/rules/imports/no-duplicate-imports.d.ts +1 -1
- package/dist/rules/imports/no-import-dist.d.ts +1 -1
- package/dist/rules/imports/no-import-node-modules-by-path.d.ts +1 -1
- package/dist/rules/imports/no-unresolved.d.ts +1 -1
- package/dist/rules/lockfile/index.d.ts +1 -1
- package/dist/rules/lockfile/parser.d.ts +1 -1
- package/dist/rules/lockfile/validate-host.d.ts +1 -2
- package/dist/rules/lockfile/validate-https.d.ts +1 -1
- package/dist/rules/lockfile/validate-integrity.d.ts +1 -1
- package/dist/rules/lockfile/validate-package-names.d.ts +1 -1
- package/dist/rules/lockfile/validate-scheme.d.ts +1 -1
- package/dist/rules/markdown/blanks-around-fences.d.ts +1 -1
- package/dist/rules/markdown/blanks-around-headings.d.ts +1 -1
- package/dist/rules/markdown/blanks-around-lists.d.ts +1 -1
- package/dist/rules/markdown/blanks-around-tables.d.ts +1 -1
- package/dist/rules/markdown/code-block-style.d.ts +1 -1
- package/dist/rules/markdown/code-fence-style.d.ts +1 -1
- package/dist/rules/markdown/commands-show-output.d.ts +1 -1
- package/dist/rules/markdown/descriptive-link-text.d.ts +1 -1
- package/dist/rules/markdown/emphasis-style.d.ts +1 -1
- package/dist/rules/markdown/fenced-code-language.d.ts +1 -1
- package/dist/rules/markdown/first-line-heading.d.ts +1 -1
- package/dist/rules/markdown/heading-increment.d.ts +1 -1
- package/dist/rules/markdown/heading-start-left.d.ts +1 -1
- package/dist/rules/markdown/heading-style.d.ts +1 -1
- package/dist/rules/markdown/hr-style.d.ts +1 -1
- package/dist/rules/markdown/line-length.d.ts +1 -1
- package/dist/rules/markdown/link-fragments.d.ts +1 -1
- package/dist/rules/markdown/link-image-reference-definitions.d.ts +1 -1
- package/dist/rules/markdown/link-image-style.d.ts +1 -1
- package/dist/rules/markdown/list-indent.d.ts +1 -1
- package/dist/rules/markdown/list-marker-space.d.ts +1 -1
- package/dist/rules/markdown/no-alt-text.d.ts +1 -1
- package/dist/rules/markdown/no-bare-urls.d.ts +1 -1
- package/dist/rules/markdown/no-blanks-blockquote.d.ts +1 -1
- package/dist/rules/markdown/no-duplicate-heading.d.ts +1 -1
- package/dist/rules/markdown/no-emphasis-as-heading.d.ts +5 -1
- package/dist/rules/markdown/no-empty-links.d.ts +1 -1
- package/dist/rules/markdown/no-hard-tabs.d.ts +1 -1
- package/dist/rules/markdown/no-inline-html.d.ts +1 -1
- package/dist/rules/markdown/no-missing-space-atx.d.ts +1 -1
- package/dist/rules/markdown/no-missing-space-closed-atx.d.ts +1 -1
- package/dist/rules/markdown/no-multiple-blanks.d.ts +1 -1
- package/dist/rules/markdown/no-multiple-space-atx.d.ts +1 -1
- package/dist/rules/markdown/no-multiple-space-blockquote.d.ts +1 -1
- package/dist/rules/markdown/no-multiple-space-closed-atx.d.ts +1 -1
- package/dist/rules/markdown/no-reversed-links.d.ts +1 -1
- package/dist/rules/markdown/no-space-in-code.d.ts +1 -1
- package/dist/rules/markdown/no-space-in-emphasis.d.ts +1 -1
- package/dist/rules/markdown/no-space-in-links.d.ts +1 -1
- package/dist/rules/markdown/no-trailing-punctuation.d.ts +1 -1
- package/dist/rules/markdown/no-trailing-spaces.d.ts +1 -1
- package/dist/rules/markdown/ol-prefix.d.ts +1 -1
- package/dist/rules/markdown/proper-names.d.ts +1 -1
- package/dist/rules/markdown/reference-links-images.d.ts +10 -1
- package/dist/rules/markdown/required-headings.d.ts +1 -1
- package/dist/rules/markdown/single-title.d.ts +1 -1
- package/dist/rules/markdown/single-trailing-newline.d.ts +1 -1
- package/dist/rules/markdown/strong-style.d.ts +1 -1
- package/dist/rules/markdown/table-column-count.d.ts +1 -1
- package/dist/rules/markdown/table-column-style.d.ts +1 -1
- package/dist/rules/markdown/table-pipe-style.d.ts +1 -1
- package/dist/rules/markdown/ul-indent.d.ts +10 -1
- package/dist/rules/markdown/ul-style.d.ts +1 -1
- package/dist/rules/node/prefer-global-buffer.d.ts +1 -1
- package/dist/rules/node/prefer-global-process.d.ts +1 -1
- package/dist/rules/publint/bin-file-not-executable.d.ts +1 -1
- package/dist/rules/publint/deprecated-field-jsnext.d.ts +1 -1
- package/dist/rules/publint/exports-default-should-be-last.d.ts +1 -1
- package/dist/rules/publint/exports-fallback-array-use.d.ts +1 -1
- package/dist/rules/publint/exports-missing-root-entrypoint.d.ts +1 -1
- package/dist/rules/publint/exports-module-should-be-esm.d.ts +1 -1
- package/dist/rules/publint/exports-module-should-precede-require.d.ts +1 -1
- package/dist/rules/publint/exports-types-should-be-first.d.ts +1 -1
- package/dist/rules/publint/exports-value-invalid.d.ts +1 -1
- package/dist/rules/publint/field-invalid-value-type.d.ts +1 -1
- package/dist/rules/publint/file-does-not-exist.d.ts +1 -1
- package/dist/rules/publint/file-invalid-format.d.ts +1 -1
- package/dist/rules/publint/has-module-but-no-exports.d.ts +1 -1
- package/dist/rules/publint/imports-default-should-be-last.d.ts +1 -1
- package/dist/rules/publint/imports-key-invalid.d.ts +1 -1
- package/dist/rules/publint/imports-module-should-precede-require.d.ts +1 -1
- package/dist/rules/publint/imports-value-invalid.d.ts +1 -1
- package/dist/rules/publint/index.d.ts +13 -11
- package/dist/rules/publint/local-dependency.d.ts +1 -1
- package/dist/rules/publint/module-should-be-esm.d.ts +1 -1
- package/dist/rules/publint/use-type.d.ts +1 -1
- package/dist/rules/publint/utils.d.ts +2 -2
- package/dist/rules/quality/complexity.d.ts +1 -1
- package/dist/rules/quality/default-case.d.ts +1 -1
- package/dist/rules/quality/eqeqeq.d.ts +1 -1
- package/dist/rules/quality/max-depth.d.ts +1 -1
- package/dist/rules/quality/max-lines-per-function.d.ts +1 -1
- package/dist/rules/quality/no-alert.d.ts +1 -1
- package/dist/rules/quality/no-await-in-loop.d.ts +1 -1
- package/dist/rules/quality/no-caller.d.ts +1 -1
- package/dist/rules/quality/no-case-declarations.d.ts +1 -1
- package/dist/rules/quality/no-else-return.d.ts +1 -1
- package/dist/rules/quality/no-empty-function.d.ts +1 -1
- package/dist/rules/quality/no-empty.d.ts +1 -1
- package/dist/rules/quality/no-eval.d.ts +1 -1
- package/dist/rules/quality/no-extend-native.d.ts +1 -1
- package/dist/rules/quality/no-extra-boolean-cast.d.ts +1 -1
- package/dist/rules/quality/no-global-assign.d.ts +1 -1
- package/dist/rules/quality/no-implied-eval.d.ts +1 -1
- package/dist/rules/quality/no-iterator.d.ts +1 -1
- package/dist/rules/quality/no-lonely-if.d.ts +1 -1
- package/dist/rules/quality/no-new-func.d.ts +1 -1
- package/dist/rules/quality/no-new-wrappers.d.ts +1 -1
- package/dist/rules/quality/no-new.d.ts +1 -1
- package/dist/rules/quality/no-octal.d.ts +1 -1
- package/dist/rules/quality/no-param-reassign.d.ts +1 -1
- package/dist/rules/quality/no-proto.d.ts +1 -1
- package/dist/rules/quality/no-return-assign.d.ts +1 -1
- package/dist/rules/quality/no-sequences.d.ts +1 -1
- package/dist/rules/quality/no-shadow.d.ts +1 -1
- package/dist/rules/quality/no-throw-literal.d.ts +1 -1
- package/dist/rules/quality/no-use-before-define.d.ts +1 -1
- package/dist/rules/quality/no-useless-call.d.ts +1 -1
- package/dist/rules/quality/no-useless-concat.d.ts +1 -1
- package/dist/rules/quality/no-useless-escape.d.ts +1 -1
- package/dist/rules/quality/no-useless-rename.d.ts +1 -1
- package/dist/rules/quality/no-useless-return.d.ts +1 -1
- package/dist/rules/quality/no-var.d.ts +1 -1
- package/dist/rules/quality/no-with.d.ts +1 -1
- package/dist/rules/quality/prefer-arrow-callback.d.ts +1 -1
- package/dist/rules/quality/require-await.d.ts +1 -1
- package/dist/rules/regexp/no-super-linear-backtracking.d.ts +1 -1
- package/dist/rules/regexp/no-unused-capturing-group.d.ts +1 -1
- package/dist/rules/regexp/no-useless-lazy.d.ts +1 -1
- package/dist/rules/shell/_shared.d.ts +24 -0
- package/dist/rules/shell/command-substitution.d.ts +6 -0
- package/dist/rules/shell/consistent-case-terminators.d.ts +9 -0
- package/dist/rules/shell/function-style.d.ts +6 -0
- package/dist/rules/shell/heredoc-indent.d.ts +7 -0
- package/dist/rules/shell/indent.d.ts +2 -0
- package/dist/rules/shell/keyword-spacing.d.ts +10 -0
- package/dist/rules/shell/no-broken-redirect.d.ts +7 -0
- package/dist/rules/shell/no-cd-without-check.d.ts +6 -0
- package/dist/rules/shell/no-eval.d.ts +6 -0
- package/dist/rules/shell/no-exit-in-subshell.d.ts +7 -0
- package/dist/rules/shell/no-ls-parsing.d.ts +7 -0
- package/dist/rules/shell/no-trailing-semicolons.d.ts +6 -0
- package/dist/rules/shell/no-trailing-whitespace.d.ts +5 -0
- package/dist/rules/shell/no-useless-cat.d.ts +6 -0
- package/dist/rules/shell/no-variable-in-single-quotes.d.ts +7 -0
- package/dist/rules/shell/operator-spacing.d.ts +11 -0
- package/dist/rules/shell/prefer-double-brackets.d.ts +6 -0
- package/dist/rules/shell/prefer-printf.d.ts +6 -0
- package/dist/rules/shell/quote-variables.d.ts +2 -0
- package/dist/rules/shell/set-options.d.ts +8 -0
- package/dist/rules/shell/shebang.d.ts +2 -0
- package/dist/rules/sort/exports.d.ts +1 -1
- package/dist/rules/sort/heritage-clauses.d.ts +1 -1
- package/dist/rules/sort/imports.d.ts +1 -1
- package/dist/rules/sort/keys.d.ts +1 -1
- package/dist/rules/sort/named-imports.d.ts +1 -1
- package/dist/rules/sort/objects.d.ts +1 -1
- package/dist/rules/sort/tailwind-classes.d.ts +5 -0
- package/dist/rules/style/array-bracket-spacing.d.ts +1 -1
- package/dist/rules/style/arrow-parens.d.ts +1 -1
- package/dist/rules/style/arrow-spacing.d.ts +1 -1
- package/dist/rules/style/block-spacing.d.ts +1 -1
- package/dist/rules/style/brace-style.d.ts +1 -1
- package/dist/rules/style/comma-dangle.d.ts +1 -1
- package/dist/rules/style/comma-spacing.d.ts +1 -1
- package/dist/rules/style/comma-style.d.ts +1 -1
- package/dist/rules/style/computed-property-spacing.d.ts +1 -1
- package/dist/rules/style/consistent-chaining.d.ts +1 -1
- package/dist/rules/style/consistent-list-newline.d.ts +1 -1
- package/dist/rules/style/curly.d.ts +1 -1
- package/dist/rules/style/dot-location.d.ts +1 -1
- package/dist/rules/style/function-call-spacing.d.ts +1 -1
- package/dist/rules/style/generator-star-spacing.d.ts +1 -1
- package/dist/rules/style/if-newline.d.ts +1 -1
- package/dist/rules/style/indent-binary-ops.d.ts +1 -1
- package/dist/rules/style/indent-unindent.d.ts +1 -1
- package/dist/rules/style/key-spacing.d.ts +1 -1
- package/dist/rules/style/keyword-spacing.d.ts +1 -1
- package/dist/rules/style/lines-between-class-members.d.ts +1 -1
- package/dist/rules/style/max-statements-per-line.d.ts +1 -1
- package/dist/rules/style/multiline-ternary.d.ts +1 -1
- package/dist/rules/style/new-parens.d.ts +1 -1
- package/dist/rules/style/no-extra-parens.d.ts +1 -1
- package/dist/rules/style/no-floating-decimal.d.ts +1 -1
- package/dist/rules/style/no-mixed-operators.d.ts +1 -1
- package/dist/rules/style/no-mixed-spaces-and-tabs.d.ts +1 -1
- package/dist/rules/style/no-multi-spaces.d.ts +1 -1
- package/dist/rules/style/no-multiple-empty-lines.d.ts +1 -1
- package/dist/rules/style/no-tabs.d.ts +1 -1
- package/dist/rules/style/no-trailing-spaces.d.ts +1 -1
- package/dist/rules/style/no-whitespace-before-property.d.ts +1 -1
- package/dist/rules/style/object-curly-spacing.d.ts +1 -1
- package/dist/rules/style/operator-linebreak.d.ts +1 -1
- package/dist/rules/style/padded-blocks.d.ts +1 -1
- package/dist/rules/style/quote-props.d.ts +1 -1
- package/dist/rules/style/rest-spread-spacing.d.ts +1 -1
- package/dist/rules/style/semi-spacing.d.ts +1 -1
- package/dist/rules/style/space-before-blocks.d.ts +1 -1
- package/dist/rules/style/space-before-function-paren.d.ts +1 -1
- package/dist/rules/style/space-in-parens.d.ts +1 -1
- package/dist/rules/style/space-infix-ops.d.ts +1 -1
- package/dist/rules/style/space-unary-ops.d.ts +1 -1
- package/dist/rules/style/spaced-comment.d.ts +1 -1
- package/dist/rules/style/switch-colon-spacing.d.ts +1 -1
- package/dist/rules/style/template-curly-spacing.d.ts +1 -1
- package/dist/rules/style/template-tag-spacing.d.ts +1 -1
- package/dist/rules/style/top-level-function.d.ts +1 -1
- package/dist/rules/style/wrap-iife.d.ts +1 -1
- package/dist/rules/style/yield-star-spacing.d.ts +1 -1
- package/dist/rules/ts/member-delimiter-style.d.ts +1 -1
- package/dist/rules/ts/no-explicit-any.d.ts +1 -1
- package/dist/rules/ts/no-floating-promises.d.ts +1 -1
- package/dist/rules/ts/no-misused-promises.d.ts +1 -1
- package/dist/rules/ts/no-require-imports.d.ts +1 -1
- package/dist/rules/ts/no-top-level-await.d.ts +1 -1
- package/dist/rules/ts/no-ts-export-equal.d.ts +1 -1
- package/dist/rules/ts/no-unsafe-assignment.d.ts +1 -1
- package/dist/rules/ts/prefer-nullish-coalescing.d.ts +1 -1
- package/dist/rules/ts/prefer-optional-chain.d.ts +1 -1
- package/dist/rules/ts/type-annotation-spacing.d.ts +1 -1
- package/dist/rules/ts/type-generic-spacing.d.ts +1 -1
- package/dist/rules/ts/type-named-tuple-spacing.d.ts +1 -1
- package/dist/run.d.ts +1 -1
- package/dist/src/index.js +11768 -11309
- package/dist/types.d.ts +21 -4
- package/dist/utils.d.ts +36 -11
- package/package.json +16 -8
package/dist/config.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import type { PickierConfig } from './types';
|
|
|
2
2
|
export declare function getConfig(): Promise<PickierConfig>;
|
|
3
3
|
export declare const defaultConfig: PickierConfig;
|
|
4
4
|
// For backwards compatibility - synchronous access with default fallback
|
|
5
|
-
export declare const config: PickierConfig;
|
|
5
|
+
export declare const config: PickierConfig;
|
package/dist/format.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export declare function formatCode(src: string, cfg: PickierConfig, filePath: st
|
|
|
3
3
|
export declare function detectQuoteIssues(line: string, preferred: 'single' | 'double'): number[];
|
|
4
4
|
export declare function hasIndentIssue(leading: string, indentSize: number, indentStyle?: 'spaces' | 'tabs', lineContent?: string): boolean;
|
|
5
5
|
export declare function formatImports(source: string): string;
|
|
6
|
-
declare type ImportKind = 'value' | 'type' | 'side-effect'
|
|
6
|
+
declare type ImportKind = 'value' | 'type' | 'side-effect';
|
package/dist/formatter.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export declare function applyPluginFixes(filePath: string, content: string, cfg:
|
|
|
3
3
|
export declare function applyFixes(filePath: string, content: string, cfg: PickierConfig): string;
|
|
4
4
|
export declare function formatVerbose(issues: LintIssue[]): string;
|
|
5
5
|
export declare function formatStylish(issues: LintIssue[]): string;
|
|
6
|
-
export declare function runFormat(globs: string[], options: FormatOptions): Promise<number>;
|
|
6
|
+
export declare function runFormat(globs: string[], options: FormatOptions): Promise<number>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type { RunOptions } from './run';
|
|
2
2
|
export { config, defaultConfig } from './config';
|
|
3
3
|
export * from './format';
|
|
4
|
-
export { runFormat } from './formatter';
|
|
5
4
|
export { lintText, runLint, runLintProgrammatic } from './linter';
|
|
5
|
+
export { runFormat } from './formatter';
|
|
6
6
|
export { runUnified as run } from './run';
|
|
7
7
|
export * from './types';
|
|
8
|
-
export * from './utils';
|
|
8
|
+
export * from './utils';
|
package/dist/linter.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { LintIssue, LintOptions, PickierConfig } from './types';
|
|
2
2
|
// Programmatic single-text lint with optional cancellation
|
|
3
|
-
export declare function lintText(text: string, cfg: PickierConfig, filePath?:
|
|
3
|
+
export declare function lintText(text: string, cfg: PickierConfig, filePath?: string, signal?: AbortSignal): Promise<LintIssue[]>;
|
|
4
4
|
// Programmatic batch lint returning structured result, with optional cancellation
|
|
5
5
|
export declare function runLintProgrammatic(globs: string[], options: LintOptions, signal?: AbortSignal): Promise<{ errors: number, warnings: number, issues: LintIssue[] }>;
|
|
6
|
-
export declare function applyPlugins(filePath: string, content: string, cfg: PickierConfig): Promise<Array<any
|
|
6
|
+
export declare function applyPlugins(filePath: string, content: string, cfg: PickierConfig): Promise<Array<any>> /* PluginLintIssue[] */;
|
|
7
7
|
// Optimized version that accepts pre-computed directive and comment data
|
|
8
8
|
export declare function scanContentOptimized(filePath: string, content: string, cfg: PickierConfig, suppress: DisableDirectives, commentLines: Set<number>): LintIssue[];
|
|
9
9
|
export declare function scanContent(filePath: string, content: string, cfg: PickierConfig): LintIssue[];
|
|
@@ -16,4 +16,4 @@ declare interface DisableDirectives {
|
|
|
16
16
|
sortedDisableLines: number[]
|
|
17
17
|
sortedEnableLines: number[]
|
|
18
18
|
}
|
|
19
|
-
declare type SuppressMap = Map<number, Set<string
|
|
19
|
+
declare type SuppressMap = Map<number, Set<string>>;
|
package/dist/plugins/eslint.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare const eslintPlugin: PickierPlugin;
|
|
2
|
+
export declare const eslintPlugin: PickierPlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare const generalPlugin: PickierPlugin;
|
|
2
|
+
export declare const generalPlugin: PickierPlugin;
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare function getAllPlugins(): PickierPlugin[];
|
|
2
|
+
export declare function getAllPlugins(): PickierPlugin[];
|
|
@@ -19,4 +19,4 @@ import type { PickierPlugin } from '../types';
|
|
|
19
19
|
* 4. Weak Integrity Hashes - Using SHA1/SHA256 instead of SHA512 (collision attacks)
|
|
20
20
|
* 5. Unauthorized URL Schemes - Using file://, data://, git+http://, etc.
|
|
21
21
|
*/
|
|
22
|
-
export declare const lockfilePlugin: PickierPlugin;
|
|
22
|
+
export declare const lockfilePlugin: PickierPlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare const markdownPlugin: PickierPlugin;
|
|
2
|
+
export declare const markdownPlugin: PickierPlugin;
|
package/dist/plugins/node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare const nodePlugin: PickierPlugin;
|
|
2
|
+
export declare const nodePlugin: PickierPlugin;
|
|
@@ -3,4 +3,4 @@ import type { PickierPlugin } from '../types';
|
|
|
3
3
|
* Perfectionist plugin - provides compatibility with perfectionist ESLint plugin
|
|
4
4
|
* These rules are aliases to existing Pickier rules under different namespaces
|
|
5
5
|
*/
|
|
6
|
-
export declare const perfectionistPlugin: PickierPlugin;
|
|
6
|
+
export declare const perfectionistPlugin: PickierPlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare const pickierPlugin: PickierPlugin;
|
|
2
|
+
export declare const pickierPlugin: PickierPlugin;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { } from '../rules/publint';
|
|
2
1
|
import type { PickierPlugin } from '../types';
|
|
3
2
|
/**
|
|
4
3
|
* publint plugin for pickier.
|
|
@@ -8,4 +7,4 @@ import type { PickierPlugin } from '../types';
|
|
|
8
7
|
*
|
|
9
8
|
* Ported from publint (https://publint.dev).
|
|
10
9
|
*/
|
|
11
|
-
export declare const publintPlugin: PickierPlugin;
|
|
10
|
+
export declare const publintPlugin: PickierPlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare const qualityPlugin: PickierPlugin;
|
|
2
|
+
export declare const qualityPlugin: PickierPlugin;
|
package/dist/plugins/regexp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare const regexpPlugin: PickierPlugin;
|
|
2
|
+
export declare const regexpPlugin: PickierPlugin;
|
package/dist/plugins/style.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare const stylePlugin: PickierPlugin;
|
|
2
|
+
export declare const stylePlugin: PickierPlugin;
|
package/dist/plugins/ts.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { PickierPlugin } from '../types';
|
|
2
|
-
export declare const tsPlugin: PickierPlugin;
|
|
2
|
+
export declare const tsPlugin: PickierPlugin;
|
|
@@ -3,4 +3,4 @@ import type { PickierPlugin } from '../types';
|
|
|
3
3
|
* unused-imports plugin - provides compatibility with unused-imports ESLint plugin
|
|
4
4
|
* These rules are aliases to existing Pickier rules under different namespaces
|
|
5
5
|
*/
|
|
6
|
-
export declare const unusedImportsPlugin: PickierPlugin;
|
|
6
|
+
export declare const unusedImportsPlugin: PickierPlugin;
|
package/dist/plugins/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { RuleModule } from '../types';
|
|
2
2
|
export declare function codeOnly(rule: RuleModule): RuleModule;
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function shellOnly(rule: RuleModule): RuleModule;
|
|
4
|
+
export declare function packageJsonOnly(rule: RuleModule): RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const arrayCallbackReturnRule: RuleModule;
|
|
2
|
+
export declare const arrayCallbackReturnRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const constructorSuperRule: RuleModule;
|
|
2
|
+
export declare const constructorSuperRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const forDirectionRule: RuleModule;
|
|
2
|
+
export declare const forDirectionRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const getterReturnRule: RuleModule;
|
|
2
|
+
export declare const getterReturnRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noAsyncPromiseExecutorRule: RuleModule;
|
|
2
|
+
export declare const noAsyncPromiseExecutorRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noCompareNegZeroRule: RuleModule;
|
|
2
|
+
export declare const noCompareNegZeroRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noCondAssignRule: RuleModule;
|
|
2
|
+
export declare const noCondAssignRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noConstAssignRule: RuleModule;
|
|
2
|
+
export declare const noConstAssignRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noConstantConditionRule: RuleModule;
|
|
2
|
+
export declare const noConstantConditionRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noConstructorReturnRule: RuleModule;
|
|
2
|
+
export declare const noConstructorReturnRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noDupeClassMembersRule: RuleModule;
|
|
2
|
+
export declare const noDupeClassMembersRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noDupeKeysRule: RuleModule;
|
|
2
|
+
export declare const noDupeKeysRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noDuplicateCaseRule: RuleModule;
|
|
2
|
+
export declare const noDuplicateCaseRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noEmptyPatternRule: RuleModule;
|
|
2
|
+
export declare const noEmptyPatternRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noFallthroughRule: RuleModule;
|
|
2
|
+
export declare const noFallthroughRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noIrregularWhitespaceRule: RuleModule;
|
|
2
|
+
export declare const noIrregularWhitespaceRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noLossOfPrecisionRule: RuleModule;
|
|
2
|
+
export declare const noLossOfPrecisionRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noPromiseExecutorReturnRule: RuleModule;
|
|
2
|
+
export declare const noPromiseExecutorReturnRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noRedeclareRule: RuleModule;
|
|
2
|
+
export declare const noRedeclareRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noSelfAssignRule: RuleModule;
|
|
2
|
+
export declare const noSelfAssignRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noSelfCompareRule: RuleModule;
|
|
2
|
+
export declare const noSelfCompareRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noSparseArraysRule: RuleModule;
|
|
2
|
+
export declare const noSparseArraysRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noUndefRule: RuleModule;
|
|
2
|
+
export declare const noUndefRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noUnreachableRule: RuleModule;
|
|
2
|
+
export declare const noUnreachableRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noUnsafeNegationRule: RuleModule;
|
|
2
|
+
export declare const noUnsafeNegationRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noUnusedVarsRule: RuleModule;
|
|
2
|
+
export declare const noUnusedVarsRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noUselessCatchRule: RuleModule;
|
|
2
|
+
export declare const noUselessCatchRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const preferConstRule: RuleModule;
|
|
2
|
+
export declare const preferConstRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const preferObjectSpreadRule: RuleModule;
|
|
2
|
+
export declare const preferObjectSpreadRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const preferTemplate: RuleModule;
|
|
2
|
+
export declare const preferTemplate: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const useIsNaNRule: RuleModule;
|
|
2
|
+
export declare const useIsNaNRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const validTypeofRule: RuleModule;
|
|
2
|
+
export declare const validTypeofRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const firstRule: RuleModule;
|
|
2
|
+
export declare const firstRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const importDedupeRule: RuleModule;
|
|
2
|
+
export declare const importDedupeRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const namedRule: RuleModule;
|
|
2
|
+
export declare const namedRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noCycleRule: RuleModule;
|
|
2
|
+
export declare const noCycleRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noDuplicateImportsRule: RuleModule;
|
|
2
|
+
export declare const noDuplicateImportsRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noImportDistRule: RuleModule;
|
|
2
|
+
export declare const noImportDistRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noImportNodeModulesByPathRule: RuleModule;
|
|
2
|
+
export declare const noImportNodeModulesByPathRule: RuleModule;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
export declare const noUnresolvedRule: RuleModule;
|
|
2
|
+
export declare const noUnresolvedRule: RuleModule;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { } from './parser';
|
|
2
1
|
import type { RuleModule } from '../../types';
|
|
3
2
|
/**
|
|
4
3
|
* Validate that all packages in a lockfile are from allowed hosts.
|
|
@@ -16,4 +15,4 @@ import type { RuleModule } from '../../types';
|
|
|
16
15
|
* }
|
|
17
16
|
* ```
|
|
18
17
|
*/
|
|
19
|
-
export declare const validateHost: RuleModule;
|
|
18
|
+
export declare const validateHost: RuleModule;
|