first commit

This commit is contained in:
2025-10-26 23:10:15 +08:00
commit 8f0345b7be
14961 changed files with 2356381 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
import type { PackageJson } from 'type-fest';
export type PackageDeps = ReturnType<typeof extractDepFields>;
declare function extractDepFields(pkg: PackageJson): {
dependencies: Partial<Record<string, string>>;
devDependencies: Partial<Record<string, string>>;
optionalDependencies: Partial<Record<string, string>>;
peerDependencies: Partial<Record<string, string>>;
bundledDependencies: string[];
};
export interface DepDeclaration {
isInDeps: boolean;
isInDevDeps: boolean;
isInOptDeps: boolean;
isInPeerDeps: boolean;
isInBundledDeps: boolean;
}
export interface DepsOptions {
allowDevDeps: boolean;
allowOptDeps: boolean;
allowPeerDeps: boolean;
allowBundledDeps: boolean;
verifyInternalDeps: boolean;
verifyTypeImports: boolean;
}
export interface Options {
packageDir?: string | string[];
devDependencies?: boolean | string[];
optionalDependencies?: boolean | string[];
peerDependencies?: boolean | string[];
bundledDependencies?: boolean | string[];
includeInternal?: boolean;
includeTypes?: boolean;
whitelist?: string[];
}
export type MessageId = 'pkgNotFound' | 'pkgUnparsable' | 'devDep' | 'optDep' | 'missing';
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageId, [(Options | undefined)?], import("../utils/create-rule.ts").ImportXPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
export default _default;