tessl install tessl/npm-eslint-plugin-import-x@3.1.0ESLint plugin providing comprehensive linting rules for ES2015+ import/export syntax with static analysis and module system enforcement.
Agent Success
Agent success rate when using this tile
80%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.96x
Baseline
Agent success rate without this tile
83%
Build a small utility that exposes a configurable Node-style resolver for import paths so that linting rules can resolve modules the same way as Node does under custom conditions.
fs) reports it as found with a null path instead of hitting the filesystem. @testdata: URL returns found with a null path. @testextensions includes .ts, resolving ./utils/helpers from fixtures/app/src/index.ts yields the absolute path to fixtures/app/src/utils/helpers.ts. @testconditionNames is set to ['require', 'default'], resolving pkg-conditional from fixtures/app/src/index.ts selects the require export and returns fixtures/vendor/pkg-conditional/cjs.js. @testmodules includes fixtures/vendor, resolving the bare specifier vendor-tool from fixtures/app/src/index.ts returns the path to fixtures/vendor/vendor-tool/index.js. @test@generates
export interface ResolverOptions {
extensions?: string[];
conditionNames?: string[];
modules?: string[];
}
export interface ResolveResult {
found: boolean;
path?: string | null;
}
export interface ImportResolver {
interfaceVersion: 3;
name: string;
resolve(moduleId: string, sourceFile: string): ResolveResult;
}
export function buildResolver(options?: ResolverOptions): ImportResolver;Provides a Node-style resolver factory for ESLint import resolution in flat config setups.