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
bash
npm install -D @santi020k/eslint-config-reactConfigure
js
import { eslintConfig } from '@santi020k/eslint-config-basic'
import react from '@santi020k/eslint-config-react'
export default eslintConfig({
typescript: true,
frameworks: {
react
}
})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.
Notes
- 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
- Source Package: packages/react
- Playground: packages/playground/react