# eslint-plugin-expo

> ESLint rules for Expo apps

Latest version **1.1.0** (published 2026-06-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-expo
pnpm add eslint-plugin-expo
yarn add eslint-plugin-expo
bun add eslint-plugin-expo
```

## Health

**Score 65/100 (B)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score; popular repo; extremely popular.

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

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2026-06-25 |
| First published | 2022-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18.0.0 |
| Dependencies | 3 |
| Unpacked size | 22.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 52338 |
| Author | Expo |
| Maintainers | ide, brentvatne, expoadmin, exponent, bycedric, kudochien, alanhughes, tsapeta, expo-bot, philpl, wschurman |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-expo
- Repository: https://github.com/expo/expo
- Homepage: https://github.com/expo/expo#readme
- Issues: https://github.com/expo/expo/issues
- npm.io page: https://npm.io/package/eslint-plugin-expo

## Dependencies (3)

- [eslint](https://npm.io/package/eslint.md) ^9.24.0
- [@typescript-eslint/types](https://npm.io/package/@typescript-eslint/types.md) ^8.59.0
- [@typescript-eslint/utils](https://npm.io/package/@typescript-eslint/utils.md) ^8.59.0

## 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

- 1.1.0 (latest) — 2026-06-25
- 1.2.0 (next) — 2026-09-10
- 2.0.0-canary-20260909-ea7a89a (canary) — 2026-09-09
- 2.0.0-canary-20260701-9100865 (canary-sdk-56) — 2026-07-01
- 1.0.1-canary-20260429-a5e59cf (canary-sdk-55) — 2026-04-29
- 0.0.1 (sdk-51) — 2024-03-26
- 2.0.0-canary-20260902-26df09e — 2026-09-02
- 2.0.0-canary-20260812-27f94d4 — 2026-08-12
- 2.0.0-canary-20260806-8c2d007 — 2026-08-06
- 2.0.0-canary-20260723-64edab9 — 2026-07-23
- 2.0.0-canary-20260720-b6d63bc — 2026-07-20
- 2.0.0-canary-20260718-7cbcda5 — 2026-07-18
- 2.0.0-canary-20260716-381e806 — 2026-07-16
- 2.0.0-canary-20260629-3010085 — 2026-06-29
- 1.0.4-canary-20260624-9d83b81 — 2026-06-24
- … 128 more at https://npm.io/package/eslint-plugin-expo/versions

## README

# eslint-plugin-expo

ESLint rules for Expo apps

## Installation

You'll first need to install [ESLint](https://eslint.org/):

```sh
npx expo install eslint --save-dev
```

Next, install `eslint-plugin-expo`:

```sh
npx expo install eslint-plugin-expo --save-dev
```

## Usage

Add `expo` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
  "plugins": [
    "expo"
  ]
}
```


Then configure the rules you want to use under the rules section.

```json
{
  "rules": {
    "expo/no-env-var-destructuring": "error",
    "expo/no-dynamic-env-var": "error",
    "expo/use-dom-exports": "error",
    "expo/prefer-box-shadow": "warn",
  }
}
```


## Rules

| Name                                                               | Description                                          |
| :----------------------------------------------------------------- | :--------------------------------------------------- |
| [no-dynamic-env-var](docs/rules/no-dynamic-env-var.md)             | Prevents process.env from being accessed dynamically |
| [no-env-var-destructuring](docs/rules/no-env-var-destructuring.md) | Disallow destructuring of environment variables     |
| [use-dom-exports](docs/rules/use-dom-exports.md)                   | Enforce using DOM exports from react-native-web |
| [prefer-box-shadow](docs/rules/prefer-box-shadow.md)               | Suggest using box-shadow instead of shadowColor/shadowOffset/shadowOpacity/shadowRadius |

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