eslint-config-react-tools
raw JSON → 1.1.7 verified Sat Apr 25 auth: no javascript abandoned
A shareable ESLint configuration tailored for React projects using react-tools. Version 1.1.7 is the latest stable release, but the package has very little adoption and is not actively maintained. It provides a preset of rules for linting React applications, but lacks documentation, changelog, or updates for modern ESLint and React versions. Unlike more popular configs like eslint-config-react-app or eslint-config-airbnb, this package offers minimal customization and is essentially a wrapper around a small set of ESLint rules.
Common errors
error Error: Failed to load config "react-tools" to extend from. ↓
cause The package is not installed or the extends name is incorrect.
fix
Run
npm install eslint-config-react-tools --save-dev and ensure extends: ['react-tools'] (no prefix). error Error: Cannot find module 'eslint-config-react-tools' ↓
cause Package not installed or ESLint cannot resolve it due to missing dependencies.
fix
Ensure the package is in node_modules. Try reinstalling with
npm install eslint-config-react-tools --save-dev. error Configuration for rule 'react-tools/xxx' is invalid ↓
cause Rule name is misspelled or does not exist.
fix
Check the source of eslint-config-react-tools for valid rules. Likely the rule does not exist.
Warnings
deprecated Package has not been updated since 2017 and is effectively abandoned. ↓
fix Migrate to a maintained alternative like eslint-config-airbnb or eslint-config-react-app.
gotcha Configuration is CommonJS only and will not work with ESLint's flat config system (>=9.0.0). ↓
fix Use eslint-config-react-tools only with legacy eslintrc config. For flat config, switch to modern alternatives.
gotcha No documentation or changelog available; version 1.1.7 is the latest but breaking changes unknown. ↓
fix Inspect the source code directly on GitHub to understand rules.
Install
npm install eslint-config-react-tools yarn add eslint-config-react-tools pnpm add eslint-config-react-tools Imports
- default wrong
import config from 'eslint-config-react-tools'correctmodule.exports = { extends: ['react-tools'] } - plugins wrong
plugins: ['eslint-config-react-tools']correctplugins: ['react-tools'] - rules wrong
rules: { 'eslint-config-react-tools/some-rule': 'error' }correctrules: { 'react-tools/some-rule': 'error' }
Quickstart
// In .eslintrc.js or .eslintrc.json
module.exports = {
extends: ['react-tools']
};
// Or in package.json:
// "eslintConfig": { "extends": ["react-tools"] }
// Then run: npx eslint src/