Skip to content
You are viewing the v1 archive. For current setup guidance, use the v3 docs; the v2 release is preserved at /v2/.

Expo

Package: @santi020k/eslint-config-expo

Use the Expo package for Expo or React Native projects that need the shared baseline plus Expo-specific rules.

pnpm
pnpm add -D @santi020k/eslint-config-expo @santi020k/eslint-config-react
npm
npm install -D @santi020k/eslint-config-expo @santi020k/eslint-config-react
yarn
yarn add -D @santi020k/eslint-config-expo @santi020k/eslint-config-react
bun
bun add -d @santi020k/eslint-config-expo @santi020k/eslint-config-react

Expo requires the React package explicitly.

import { eslintConfig } from '@santi020k/eslint-config-basic'
import expo from '@santi020k/eslint-config-expo'
import react from '@santi020k/eslint-config-react'
export default eslintConfig({
frameworks: {
expo,
react
},
typescript: true
})
  • Expo-specific linting on top of the shared config stack.
  • An explicit React dependency so React and Expo stay aligned in the final config.
  • CLI support that scaffolds both expo and react imports together when Expo is detected.
  • Expo projects usually also enable TypeScript.
  • The main package throws a helpful error if frameworks.expo is provided without frameworks.react.

Did this page help?

One click helps us spot documentation that needs another pass. No personal data is sent.