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.
Install
bash
npm install -D @santi020k/eslint-config-expo @santi020k/eslint-config-reactExpo requires the React package explicitly.
Configure
js
import { eslintConfig } from '@santi020k/eslint-config-basic'
import expo from '@santi020k/eslint-config-expo'
import react from '@santi020k/eslint-config-react'
export default eslintConfig({
typescript: true,
frameworks: {
react,
expo
}
})What It Adds
- 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
expoandreactimports together when Expo is detected.
Notes
- Expo projects usually also enable TypeScript.
- The main package throws a helpful error if
frameworks.expois provided withoutframeworks.react.
Repository Links
- Source Package: packages/expo
- Playground: packages/playground/expo