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.
Install
Section titled “Install”pnpm add -D @santi020k/eslint-config-reactnpm install -D @santi020k/eslint-config-reactyarn add -D @santi020k/eslint-config-reactbun add -d @santi020k/eslint-config-reactConfigure
Section titled “Configure”import { eslintConfig } from '@santi020k/eslint-config-basic'import react from '@santi020k/eslint-config-react'
export default eslintConfig({ frameworks: { react }, typescript: true})What It Adds
Section titled “What It Adds”- 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
reactwithruntime: Runtime.Browserorpreset: Preset.Browser. - Next.js and Expo both require
frameworks.reactin addition to their own framework package.
Repository Links
Section titled “Repository Links”- Source Package: packages/react
- Playground: packages/playground/react
Related Pages
Section titled “Related Pages”Did this page help?
One click helps us spot documentation that needs another pass. No personal data is sent.