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

React

Package: @santi020k/eslint-config-react

Use the React package for React apps, or as the required React dependency when composing Next.js or Expo.

pnpm
pnpm add -D @santi020k/eslint-config-react
npm
npm install -D @santi020k/eslint-config-react
yarn
yarn add -D @santi020k/eslint-config-react
bun
bun add -d @santi020k/eslint-config-react
import { eslintConfig } from '@santi020k/eslint-config-basic'
import react from '@santi020k/eslint-config-react'
export default eslintConfig({
frameworks: {
react
},
typescript: true
})
  • React and Hooks rules through an explicit framework package.
  • A reusable building block for plain React, Next.js, and Expo configurations.
  • Better clarity in the final config array because React support is never implicit.
  • Plain React browser apps often combine react with runtime: Runtime.Browser or preset: Preset.Browser.
  • Next.js and Expo both require frameworks.react in addition to their own framework package.

Did this page help?

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