An ESLint resolver plugin for eslint-plugin-import and eslint-plugin-import-x that resolves modules using unrs-resolver (previously oxc-resolver). v0.6.0 migrated from oxc-resolver to unrs-resolver. Supports monorepos, pnpm workspaces, and TypeScript/JavaScript path aliases from tsconfig/jsconfig. Provides a modern alternative to eslint-import-resolver-typescript and eslint-import-resolver-node, with faster resolution and built-in caching control via NEXT_RESOLVER_CACHE_DISABLED environment variable. Publish cadence is irregular but with breaking changes between versions.
npm install eslint-import-resolver-nextVerified import paths — ran on the pinned version, not inferred.
Configures eslint-import-resolver-next with TypeScript path aliases and custom extensions in an ESLint config.
Update imports: use NextImportResolver instead of NewResolver. Ensure Node version >=14.18.0.
Review unrs-resolver documentation for valid options. Remove any oxc-resolver-specific options.
Use absolute paths or ensure relative paths are relative to the package root. Use path.resolve(__dirname, ...) if needed.
If encountering stale resolutions, set environment variable NEXT_RESOLVER_CACHE_DISABLED=1 or clear node_modules/.cache.
Run npm install -D eslint-import-resolver-next and ensure it's in devDependencies.
Install the package in the root or use eslint's resolve plugin configuration to point to the correct location.
Update to v0.5.0+ and ensure correct import: const { createNextImportResolver } = require('eslint-import-resolver-next');