{"library":"eslint-plugin-react-prefer-function-component","type":"library","category":null,"description":"ESLint plugin that prevents the use of React class components, enforcing function components with hooks for consistency. Current stable version is 5.0.0 (released 2023). The release cadence has been stable with major version bumps for breaking changes. Key differentiators vs alternatives: stricter than eslint-plugin-react's prefer-stateless-function (which allows class components with methods other than render), supports error boundary exceptions via allowErrorBoundary, works with Preact/Inferno, and provides both legacy eslintrc and flat config support. Ships TypeScript types.","language":"javascript","status":"active","version":"5.0.0","tags":["javascript","eslint react no class","eslint react class","lint react no class","lint react class","lint jsx no class","lint jsx class","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install eslint-plugin-react-prefer-function-component","imports":["import plugin from 'eslint-plugin-react-prefer-function-component'","import { configs } from 'eslint-plugin-react-prefer-function-component'","import preferFC from 'eslint-plugin-react-prefer-function-component/config'","rules: { 'react-prefer-function-component/react-prefer-function-component': 'error' }"]},{"cmd":"yarn add eslint-plugin-react-prefer-function-component","imports":[]},{"cmd":"pnpm add eslint-plugin-react-prefer-function-component","imports":[]}],"homepage":null,"github":"https://github.com/tatethurston/eslint-plugin-react-prefer-function-component","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-plugin-react-prefer-function-component","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/eslint-plugin-react-prefer-function-component/compatibility"}}