A utility library providing context information for eslint-plugin-import-x, eliminating the need for extra arguments. Version 0.2.0 is the current stable release, actively maintained with frequent patches. It ships TypeScript types and relies on oxc-resolver as a peer dependency. Key differentiator: simplifies usage of eslint-plugin-import-x by wrapping resolver context.
npm install eslint-import-contextVerified import paths — ran on the pinned version, not inferred.
Shows how to use useRuleContext and getTsconfigWithContext in an ESLint rule to get resolver context and tsconfig.
npm install oxc-resolver or add to peerDependencies.
Use stable-hash-x instead.
Install tslib separately if needed.
Check bundler configuration for CommonJS compatibility.
Update to >=0.1.4 or manually add missing peer deps.
Update to v0.1.6 or later for correct types.
npm install oxc-resolver --save-dev
import { getTsconfigWithContext } from 'eslint-import-context'Update to stable-hash-x or downgrade to v0.1.7.
Update eslint-import-context to v0.1.6 or later.