# eslint-import-resolver-react-native

> eslint-plugin-import resolver for react-native that tries to resolve .ios.js and .android.js imports

Latest version **0.2.0** (published 2019-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-import-resolver-react-native
pnpm add eslint-import-resolver-react-native
yarn add eslint-import-resolver-react-native
bun add eslint-import-resolver-react-native
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2019-02-11 |
| First published | 2016-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Pontus Rulander |
| Maintainers | leadinglight |
| Keywords | eslint, eslint-import-resolver |

## Links

- npm: https://www.npmjs.com/package/eslint-import-resolver-react-native
- Repository: https://github.com/LeadingLight/eslint-import-resolver-react-native
- Homepage: https://github.com/LeadingLight/eslint-import-resolver-react-native#readme
- Issues: https://github.com/LeadingLight/eslint-import-resolver-react-native/issues
- npm.io page: https://npm.io/package/eslint-import-resolver-react-native

## Dependencies (1)

- [eslint-import-resolver-node](https://npm.io/package/eslint-import-resolver-node.md) ^0.2.3

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2019-02-11
- 0.1.1 — 2018-11-27
- 0.1.0 — 2017-08-03
- 0.0.1 — 2016-10-19

## README

# eslint-import-resolver-react-native
eslint-plugin-import resolver for react-native that tries to resolve .ios.js and .android.js if import is not resolved, and also checks for @image extensions

Ex:
- table.ios.js
- table.ios.gif
- table@3.5x.gif
- table@3.5x.ios.gif

##Install

```
npm i eslint-import-resolver-react-native --save-dev

```

## .eslintrc

```
{
  ...
  settings: {
    "import/resolver": "react-native"
  }
  ...
}
```

## Options

platform: 'both' || 'ios' || 'android' || 'any'  
default = 'both'

'both'    - .ios and .android file needs to be present to resolve  
'any'     - .ios and/or .android file needs to be present to resolve  
'ios'     - only looks for .ios files  
'android' - only looks for .android files
```
{
  ...
  settings: {
    "import/resolver": {
      "react-native": {platform: 'ios'}
    }
  }
  ...
}
```

---
_Source: https://npm.io/package/eslint-import-resolver-react-native · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
