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.
Common errors
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+).
Warnings
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
Install
npm install eslint-config-reactjs yarn add eslint-config-reactjs pnpm add eslint-config-reactjs Imports
- config (via extends) wrong
{ "extends": "eslint-config-reactjs" }correct{ "extends": "reactjs" } - peer deps installation wrong
npm install --save-dev eslint-config-reactjscorrectnpm install --save-dev eslint-config-reactjs eslint-plugin-react eslint-plugin-objects eslint-config-standard - ESLint version compatibility wrong
ESLint v3+ (some rules may be removed or renamed)correctUse ESLint v2.x (tested up to v2.x, as per migration in v1.1.0)
Quickstart
{
"extends": "reactjs",
"plugins": ["react", "objects"],
"rules": {
"react/jsx-uses-react": 2,
"react/react-in-jsx-scope": 2
}
}