ESLint plugin providing comprehensive linting rules for ES2015+ import/export syntax with static analysis and module system enforcement.
80
Build a helper module that exposes cache-aware path validation and an ESM-friendly bridge for loading CommonJS artifacts. The dependency supplies the resolution cache and interop helpers; your implementation should wire them together.
true and reuses the dependency-provided cache so repeated checks for the same path do not hit the filesystem twice. @testfalse while still caching the result to avoid repeated work. @testpackage.json using the dependency's CommonJS bridge and returns an object containing name and version. @test@generates
export type CacheLifetime = number | '∞' | 'Infinity';
export interface CacheSettings {
lifetime?: CacheLifetime;
}
export function checkPathCase(
filepath: string | null,
cacheSettings: CacheSettings,
strict?: boolean,
): boolean;
export function loadPackageMetadata(
moduleUrl: string,
relativePath?: string,
): { name?: string; version?: string; [key: string]: unknown };Provides cache-aware resolution helpers and an ESM-safe require utility for interop with CommonJS assets.
Install with Tessl CLI
npx tessl i tessl/npm-eslint-plugin-import-xdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10