eslint-config-reactjs

raw JSON →
1.3.0 verified Sat Apr 25 auth: no javascript maintenance

ESLint shareable config for React projects, version 1.3.0. Provides a set of lint rules based on JavaScript Standard Style and plugins for React and objects. Released irregularly (last v1.3.0 in 2016). Requires manual installation of peer dependencies (eslint-plugin-react, eslint-plugin-objects, eslint-config-standard). Differentiates by integrating Standard Style with React-specific rules; however, the package is no longer actively maintained and may not support modern React/ESLint versions.

error ESLint couldn't find the plugin "eslint-plugin-react"
cause Peer dependency eslint-plugin-react is not installed.
fix
npm install --save-dev eslint-plugin-react
error Error while loading rule 'react/wrap-multilines': Rule is not found
cause The rule 'react/wrap-multilines' was renamed in eslint-plugin-react; config references deprecated name.
fix
Update eslint-plugin-react or use a newer config version (v1.2.1+).
deprecated Package has not been updated since v1.3.0 (2016); may not support modern ESLint (v3+), React, or JavaScript features.
fix Consider using eslint-config-react-app or eslint-config-airbnb for modern React projects.
breaking Migration to ESLint v2 in v1.1.0 changed rule names and behavior; configs for ESLint v1 are incompatible.
fix Use ESLint v2 or later; update any custom rules to match ESLint v2 conventions.
breaking In v1.3.0, the rule react/jsx-no-bind was removed; code relying on it may pass uncaught.
fix If you need the rule, add it manually: "react/jsx-no-bind": 2
npm install eslint-config-reactjs
yarn add eslint-config-reactjs
pnpm add eslint-config-reactjs

Minimal .eslintrc configuration to extend eslint-config-reactjs with React and objects plugin rules enabled.

{
  "extends": "reactjs",
  "plugins": ["react", "objects"],
  "rules": {
    "react/jsx-uses-react": 2,
    "react/react-in-jsx-scope": 2
  }
}