Registry / testing / eslint-import-resolver-reactnative

eslint-import-resolver-reactnative

JSON →
library1.0.2jsnpmunverified

React Native module resolution plugin for eslint-plugin-import (v1.0.2, last updated 2020). Uses eslint-import-resolver-node with modifications: adds .android.js and .ios.js extensions, resolves project name to root path. No breaking changes known; single stable release. Differentiates from standard resolver by supporting platform-specific file resolution and project-name-based imports.

npm install eslint-import-resolver-reactnative
INSTALL
IMPORT
SIG · ESLINT-IMPORT-RESO
E
eslint-import-resolver-reactnative
testingjavascriptv1.0.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
// No explicit import needed; configure in .eslintrc
import resolver from 'eslint-import-resolver-reactnative'
This is a resolver plugin, not imported directly. Configure via settings.import/resolver in ESLint config.

Configures ESLint to use the React Native resolver for module resolution.

// .eslintrc { "settings": { "import/resolver": "reactnative" } }
Debug
Known issues
gotchaRequires eslint-plugin-import to be installed as a dev dependency.
fix
Run: npm install --save-dev eslint-plugin-import
affects: >=1.0.0
gotchaDoes not automatically resolve node_modules; relies on eslint-import-resolver-node.
fix
Ensure your project structure matches typical node resolution or add additional resolver.
affects: >=1.0.0
gotchaOnly works with eslint-plugin-import's resolver interface; other lint rules not affected.
fix
Verify that import/export rules are enabled in .eslintrc.
affects: >=1.0.0
Errors
Common errors & fixes
ESLint: Unable to resolve path to module 'cool-project/components/button'.
Plugin not configured in .eslintrc or package name mismatch.
fix
Set settings.import/resolver to 'reactnative' and ensure package.json name matches import prefix.
Upgrade
Version history
1.0.2latest on npm
Audit
Dependencies
eslint-plugin-importrequiredpeer dependency; resolver is used as a plugin for eslint-plugin-import
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-import-resolver-reactnative — npm install eslint-import-resolver-reactnative · libregistry