Registry / testing / eslint-config-react

eslint-config-react

JSON →
library1.1.7jsnpmunverified

An opinionated ESLint shareable config for React projects (v1.1.7). Last released in 2016, it is unmaintained and superseded by eslint-config-react-app and other modern configs. It bundles a set of ESLint rules plus recommended React plugin rules, but requires manual installation of babel-eslint and eslint-plugin-react. Key differentiators: opinionated, includes rules like arrow-parens and prefer-reflect; however, it does not support ESLint 3+ and actively removed env and certain rules. Not recommended for new projects.

testing
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

The config is referred to by the string 'react' in the extends field, not by npm package path. This is a shareable config pattern.

// .eslintrc { "extends": "react" }

The package exports a plain object. Both ESM and CJS are supported, but CJS is more common for config files.

import config from 'eslint-config-react'; // if using programmatic API

The config expects babel-eslint as parser. Not setting it will cause parsing errors on JSX.

// .eslintrc { "extends": "react", "plugins": ["react"] // optional, config includes it }

Example of installing and configuring eslint-config-react with required dependencies and ESLint config file.

// Install dependencies npm install --save-dev eslint eslint-config-react babel-eslint eslint-plugin-react // Create .eslintrc { "extends": "react", "env": { "browser": true, "es6": true }, "parser": "babel-eslint", "parserOptions": { "ecmaFeatures": { "jsx": true }, "ecmaVersion": 6, "sourceType": "module" }, "rules": { // Your overrides } } // Then run ESLint npx eslint src/
Debug
Known footguns
deprecatedPackage is unmaintained since 2016. Use modern alternatives like eslint-config-react-app or @eslint-react/eslint-plugin.
breakingv1.1.1 removed 'env' from config. You must set env in your project's .eslintrc.
breakingv1.0.2 deprecated 'react/jsx-quotes' in favor of 'jsx-quotes'. The config was updated accordingly.
gotchaThe config does not set a parser. You must manually set parser to 'babel-eslint' in your project's .eslintrc.
gotchaThe config requires eslint-plugin-react as a peer dependency. Missing it will cause runtime errors.
deprecatedThe config uses deprecated ESLint rules like prefer-reflect (removed in ESLint 3+).
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources