# Create React App

The config Create React App shipped with. Written for the eslintrc format and still installed by many older projects.

- Linter: ESLint
- Package: `eslint-config-react-app` (https://github.com/facebook/create-react-app/tree/main/packages/eslint-config-react-app)
- Author: Create React App (community)
- Rules: 109, plus 3 from plugins this site doesn't track
- Weekly downloads: 4.1M, +4.3% last quarter
- Technologies: javascript (67), a11y (17), react (14), typescript (7), imports (4)

## Install

```sh
npm install -D eslint eslint-config-react-app
pnpm add -D eslint eslint-config-react-app
yarn add -D eslint eslint-config-react-app
bun add -d eslint eslint-config-react-app
```

## Config: `eslint.config.js`

```js
// .eslintrc.json (legacy config format)
{
  "extends": "react-app"
}
```

## Rules it enables

| Rule | Severity | Description | Reach |
| --- | --- | --- | --- |
| [eslint/no-cond-assign](https://lintradar.dev/rules/eslint/no-cond-assign.md) | warn | Disallow assignment operators in conditional expressions | 282.3M |
| [eslint/no-ex-assign](https://lintradar.dev/rules/eslint/no-ex-assign.md) | warn | Disallow reassigning exceptions in `catch` clauses | 282.3M |
| [eslint/no-global-assign](https://lintradar.dev/rules/eslint/no-global-assign.md) | warn | Disallow assignments to native objects or read-only global variables | 282.3M |
| [eslint/no-shadow-restricted-names](https://lintradar.dev/rules/eslint/no-shadow-restricted-names.md) | warn | Disallow identifiers from shadowing restricted names | 282.3M |
| [eslint/no-sparse-arrays](https://lintradar.dev/rules/eslint/no-sparse-arrays.md) | warn | Disallow sparse arrays | 282.3M |
| [eslint/use-isnan](https://lintradar.dev/rules/eslint/use-isnan.md) | warn | Require calls to `isNaN()` when checking for `NaN` | 282.3M |
| [eslint/no-control-regex](https://lintradar.dev/rules/eslint/no-control-regex.md) | warn | Disallow control characters in regular expressions | 282.3M |
| [eslint/no-useless-escape](https://lintradar.dev/rules/eslint/no-useless-escape.md) | warn | Disallow unnecessary escape characters | 281.5M |
| [eslint/no-empty-character-class](https://lintradar.dev/rules/eslint/no-empty-character-class.md) | warn | Disallow empty character classes in regular expressions | 281.1M |
| [eslint/no-duplicate-case](https://lintradar.dev/rules/eslint/no-duplicate-case.md) | warn | Disallow duplicate case labels | 281.1M |
| [eslint/no-empty-pattern](https://lintradar.dev/rules/eslint/no-empty-pattern.md) | warn | Disallow empty destructuring patterns | 281.1M |
| [eslint/no-self-assign](https://lintradar.dev/rules/eslint/no-self-assign.md) | warn | Disallow assignments where both sides are exactly the same | 281.1M |
| [eslint/valid-typeof](https://lintradar.dev/rules/eslint/valid-typeof.md) | warn | Enforce comparing `typeof` expressions against valid strings | 280.8M |
| [eslint/no-with](https://lintradar.dev/rules/eslint/no-with.md) | warn | Disallow `with` statements | 279.7M |
| [eslint/no-const-assign](https://lintradar.dev/rules/eslint/no-const-assign.md) | warn | Disallow reassigning `const`, `using`, and `await using` variables | 278.7M |
| [eslint/no-dupe-keys](https://lintradar.dev/rules/eslint/no-dupe-keys.md) | warn | Disallow duplicate keys in object literals | 278.7M |
| [eslint/no-func-assign](https://lintradar.dev/rules/eslint/no-func-assign.md) | warn | Disallow reassigning `function` declarations | 278.7M |
| [eslint/no-obj-calls](https://lintradar.dev/rules/eslint/no-obj-calls.md) | warn | Disallow calling global object properties as functions | 278.7M |
| [eslint/no-unreachable](https://lintradar.dev/rules/eslint/no-unreachable.md) | warn | Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements | 278.7M |
| [eslint/no-this-before-super](https://lintradar.dev/rules/eslint/no-this-before-super.md) | warn | Disallow `this`/`super` before calling `super()` in constructors | 278.1M |
| [eslint/no-unsafe-negation](https://lintradar.dev/rules/eslint/no-unsafe-negation.md) | warn | Disallow negating the left operand of relational operators | 277.5M |
| [eslint/require-yield](https://lintradar.dev/rules/eslint/require-yield.md) | warn | Require generator functions to contain `yield` | 276.9M |
| [eslint/no-unused-labels](https://lintradar.dev/rules/eslint/no-unused-labels.md) | warn | Disallow unused labels | 276.7M |
| [eslint/getter-return](https://lintradar.dev/rules/eslint/getter-return.md) | warn | Enforce `return` statements in getters | 274.2M |
| [eslint/no-delete-var](https://lintradar.dev/rules/eslint/no-delete-var.md) | warn | Disallow deleting variables | 253.8M |
| [eslint/no-invalid-regexp](https://lintradar.dev/rules/eslint/no-invalid-regexp.md) | warn | Disallow invalid regular expression strings in `RegExp` constructors | 252.6M |
| [eslint/no-fallthrough](https://lintradar.dev/rules/eslint/no-fallthrough.md) | warn | Disallow fallthrough of `case` statements | 231.5M |
| [eslint/no-regex-spaces](https://lintradar.dev/rules/eslint/no-regex-spaces.md) | warn | Disallow multiple spaces in regular expressions | 231.5M |
| [eslint/no-octal](https://lintradar.dev/rules/eslint/no-octal.md) | warn | Disallow octal literals | 231.4M |
| [eslint/no-dupe-args](https://lintradar.dev/rules/eslint/no-dupe-args.md) | warn | Disallow duplicate arguments in `function` definitions | 226.6M |
| [react-hooks/exhaustive-deps](https://lintradar.dev/rules/react-hooks/exhaustive-deps.md) | warn | Verifies the list of dependencies for Hooks like useEffect and similar | 201.1M |
| [react-hooks/rules-of-hooks](https://lintradar.dev/rules/react-hooks/rules-of-hooks.md) | error | Enforces the Rules of Hooks | 201.1M |
| [typescript/no-unused-vars](https://lintradar.dev/rules/typescript/no-unused-vars.md) | warn | Disallow unused variables | 185.6M |
| [typescript/no-array-constructor](https://lintradar.dev/rules/typescript/no-array-constructor.md) | warn | Disallow generic `Array` constructors | 185.6M |
| [typescript/no-unused-expressions](https://lintradar.dev/rules/typescript/no-unused-expressions.md) | error | Disallow unused expressions | 184.8M |
| [react/jsx-no-comment-textnodes](https://lintradar.dev/rules/react/jsx-no-comment-textnodes.md) | warn | Disallow comments from being inserted as text nodes | 167.2M |
| [react/jsx-no-duplicate-props](https://lintradar.dev/rules/react/jsx-no-duplicate-props.md) | warn | Disallow duplicate properties in JSX | 167.2M |
| [react/no-danger-with-children](https://lintradar.dev/rules/react/no-danger-with-children.md) | warn | Disallow when a DOM element is using both children and dangerouslySetInnerHTML | 166M |
| [jsx-a11y/alt-text](https://lintradar.dev/rules/jsx-a11y/alt-text.md) | warn | Enforce all elements that require alternative text have meaningful information to relay back to end user. | 149.9M |
| [jsx-a11y/aria-props](https://lintradar.dev/rules/jsx-a11y/aria-props.md) | warn | Enforce all `aria-*` props are valid. | 149.9M |
| [jsx-a11y/aria-proptypes](https://lintradar.dev/rules/jsx-a11y/aria-proptypes.md) | warn | Enforce ARIA state and property values are valid. | 149.9M |
| [jsx-a11y/aria-unsupported-elements](https://lintradar.dev/rules/jsx-a11y/aria-unsupported-elements.md) | warn | Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes. | 149.9M |
| [jsx-a11y/role-has-required-aria-props](https://lintradar.dev/rules/jsx-a11y/role-has-required-aria-props.md) | warn | Enforce that elements with ARIA roles must have all required attributes for that role. | 149.9M |
| [jsx-a11y/role-supports-aria-props](https://lintradar.dev/rules/jsx-a11y/role-supports-aria-props.md) | warn | Enforce that elements with explicit or implicit roles defined contain only `aria-*` properties supported by that `role`. | 149.9M |
| [react/jsx-no-undef](https://lintradar.dev/rules/react/jsx-no-undef.md) | error | Disallow undeclared variables in JSX | 136.7M |
| [react/no-is-mounted](https://lintradar.dev/rules/react/no-is-mounted.md) | warn | Disallow usage of isMounted | 135.4M |
| [react/require-render-return](https://lintradar.dev/rules/react/require-render-return.md) | error | Enforce ES5 or ES6 class for returning value in render function | 135.4M |
| [react/no-direct-mutation-state](https://lintradar.dev/rules/react/no-direct-mutation-state.md) | warn | Disallow direct mutation of this.state | 132M |
| [react/jsx-no-target-blank](https://lintradar.dev/rules/react/jsx-no-target-blank.md) | warn | Disallow `target="_blank"` attribute without `rel="noreferrer"` | 119.1M |
| [jsx-a11y/anchor-has-content](https://lintradar.dev/rules/jsx-a11y/anchor-has-content.md) | warn | Enforce all anchors to contain accessible content. | 103.1M |
| [jsx-a11y/anchor-is-valid](https://lintradar.dev/rules/jsx-a11y/anchor-is-valid.md) | warn | Enforce all anchors are valid, navigable elements. | 103.1M |
| [jsx-a11y/aria-activedescendant-has-tabindex](https://lintradar.dev/rules/jsx-a11y/aria-activedescendant-has-tabindex.md) | warn | Enforce elements with aria-activedescendant are tabbable. | 103.1M |
| [jsx-a11y/aria-role](https://lintradar.dev/rules/jsx-a11y/aria-role.md) | warn | Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. | 103.1M |
| [jsx-a11y/heading-has-content](https://lintradar.dev/rules/jsx-a11y/heading-has-content.md) | warn | Enforce heading (`h1`, `h2`, etc) elements contain accessible content. | 103.1M |
| [jsx-a11y/iframe-has-title](https://lintradar.dev/rules/jsx-a11y/iframe-has-title.md) | warn | Enforce iframe elements have a title attribute. | 103.1M |
| [jsx-a11y/img-redundant-alt](https://lintradar.dev/rules/jsx-a11y/img-redundant-alt.md) | warn | Enforce `<img>` alt prop does not contain the word "image", "picture", or "photo". | 103.1M |
| [jsx-a11y/no-access-key](https://lintradar.dev/rules/jsx-a11y/no-access-key.md) | warn | Enforce that the `accessKey` prop is not used on any element to avoid complications with keyboard commands used by a screen reader. | 103.1M |
| [jsx-a11y/no-distracting-elements](https://lintradar.dev/rules/jsx-a11y/no-distracting-elements.md) | warn | Enforce distracting elements are not used. | 103.1M |
| [jsx-a11y/no-redundant-roles](https://lintradar.dev/rules/jsx-a11y/no-redundant-roles.md) | warn | Enforce explicit role property is not the same as implicit/default role property on element. | 103.1M |
| [jsx-a11y/scope](https://lintradar.dev/rules/jsx-a11y/scope.md) | warn | Enforce `scope` prop is only used on `<th>` elements. | 103.1M |
| [eslint/no-caller](https://lintradar.dev/rules/eslint/no-caller.md) | warn | Disallow the use of `arguments.caller` or `arguments.callee` | 102.1M |
| [eslint/no-eval](https://lintradar.dev/rules/eslint/no-eval.md) | warn | Disallow the use of `eval()` | 101.4M |
| [eslint/no-useless-rename](https://lintradar.dev/rules/eslint/no-useless-rename.md) | warn | Disallow renaming import, export, and destructured assignments to the same name | 100.2M |
| [eslint/no-iterator](https://lintradar.dev/rules/eslint/no-iterator.md) | warn | Disallow the use of the `__iterator__` property | 72.9M |
| [typescript/no-useless-constructor](https://lintradar.dev/rules/typescript/no-useless-constructor.md) | warn | Disallow unnecessary constructors | 52.3M |
| [eslint/eqeqeq](https://lintradar.dev/rules/eslint/eqeqeq.md) | warn | Require the use of `===` and `!==` | 51.1M |
| [import/no-anonymous-default-export](https://lintradar.dev/rules/import/no-anonymous-default-export.md) | warn | Forbid anonymous values as default exports. | 50.9M |
| [typescript/consistent-type-assertions](https://lintradar.dev/rules/typescript/consistent-type-assertions.md) | warn | Enforce consistent usage of type assertions | 50.7M |
| [eslint/no-self-compare](https://lintradar.dev/rules/eslint/no-self-compare.md) | warn | Disallow comparisons where both sides are exactly the same | 50.6M |
| [eslint/no-sequences](https://lintradar.dev/rules/eslint/no-sequences.md) | warn | Disallow comma operators | 50.6M |
| [eslint/no-octal-escape](https://lintradar.dev/rules/eslint/no-octal-escape.md) | warn | Disallow octal escape sequences in string literals | 50.6M |
| [eslint/no-implied-eval](https://lintradar.dev/rules/eslint/no-implied-eval.md) | warn | Disallow the use of `eval()`-like methods | 50.4M |
| [eslint/no-labels](https://lintradar.dev/rules/eslint/no-labels.md) | warn | Disallow labeled statements | 49.8M |
| [eslint/no-lone-blocks](https://lintradar.dev/rules/eslint/no-lone-blocks.md) | warn | Disallow unnecessary nested blocks | 49.8M |
| [eslint/array-callback-return](https://lintradar.dev/rules/eslint/array-callback-return.md) | warn | Enforce `return` statements in callbacks of array methods | 49.4M |
| [eslint/no-template-curly-in-string](https://lintradar.dev/rules/eslint/no-template-curly-in-string.md) | warn | Disallow template literal placeholder syntax in regular strings | 49.4M |
| [eslint/no-script-url](https://lintradar.dev/rules/eslint/no-script-url.md) | warn | Disallow `javascript:` URLs | 46.4M |
| [eslint/no-label-var](https://lintradar.dev/rules/eslint/no-label-var.md) | warn | Disallow labels that share a name with a variable | 46.2M |
| [eslint/no-extra-label](https://lintradar.dev/rules/eslint/no-extra-label.md) | warn | Disallow unnecessary labels | 45M |
| [eslint/no-new-wrappers](https://lintradar.dev/rules/eslint/no-new-wrappers.md) | warn | Disallow `new` operators with the `String`, `Number`, and `Boolean` objects | 22.7M |
| [eslint/no-extend-native](https://lintradar.dev/rules/eslint/no-extend-native.md) | warn | Disallow extending native types | 22.7M |
| [eslint/no-extra-bind](https://lintradar.dev/rules/eslint/no-extra-bind.md) | warn | Disallow unnecessary calls to `.bind()` | 22.7M |
| [eslint/no-new-func](https://lintradar.dev/rules/eslint/no-new-func.md) | warn | Disallow `new` operators with the `Function` object | 22.1M |
| [import/first](https://lintradar.dev/rules/import/first.md) | error | Ensure all imports appear before other statements. | 21.9M |
| [eslint/no-multi-str](https://lintradar.dev/rules/eslint/no-multi-str.md) | warn | Disallow multiline strings | 21.5M |
| [eslint/no-throw-literal](https://lintradar.dev/rules/eslint/no-throw-literal.md) | warn | Disallow throwing literals as exceptions | 20.9M |
| [eslint/no-useless-computed-key](https://lintradar.dev/rules/eslint/no-useless-computed-key.md) | warn | Disallow unnecessary computed property keys in objects and classes | 20.9M |
| [eslint/unicode-bom](https://lintradar.dev/rules/eslint/unicode-bom.md) | warn | Require or disallow Unicode byte order mark (BOM) | 20.1M |
| [import/no-webpack-loader-syntax](https://lintradar.dev/rules/import/no-webpack-loader-syntax.md) | error | Forbid webpack loader syntax in imports. | 19.6M |
| [eslint/no-new-object](https://lintradar.dev/rules/eslint/no-new-object.md) | warn | Disallow `Object` constructors | 19M |
| [eslint/no-new-symbol](https://lintradar.dev/rules/eslint/no-new-symbol.md) | warn | Disallow `new` operators with the `Symbol` object | 17.8M |
| [eslint/rest-spread-spacing](https://lintradar.dev/rules/eslint/rest-spread-spacing.md) | warn | Enforce spacing between rest and spread operators and their expressions | 17.8M |
| [eslint/no-restricted-globals](https://lintradar.dev/rules/eslint/no-restricted-globals.md) | error | Disallow specified global variables | 17.2M |
| [eslint/dot-location](https://lintradar.dev/rules/eslint/dot-location.md) | warn | Enforce consistent newlines before and after dots | 17.1M |
| [eslint/new-parens](https://lintradar.dev/rules/eslint/new-parens.md) | warn | Enforce or disallow parentheses when invoking a constructor with no arguments | 17.1M |
| [eslint/no-mixed-operators](https://lintradar.dev/rules/eslint/no-mixed-operators.md) | warn | Disallow mixed binary operators | 17.1M |
| [eslint/no-whitespace-before-property](https://lintradar.dev/rules/eslint/no-whitespace-before-property.md) | warn | Disallow whitespace before properties | 17.1M |
| [eslint/no-useless-concat](https://lintradar.dev/rules/eslint/no-useless-concat.md) | warn | Disallow unnecessary concatenation of literals or template literals | 16.7M |
| [eslint/no-loop-func](https://lintradar.dev/rules/eslint/no-loop-func.md) | warn | Disallow function declarations that contain unsafe references inside loop statements | 16.6M |
| [import/no-amd](https://lintradar.dev/rules/import/no-amd.md) | error | Forbid AMD `require` and `define` calls. | 16.5M |
| [eslint/strict](https://lintradar.dev/rules/eslint/strict.md) | warn | Require or disallow strict mode directives | 16.2M |
| [eslint/no-restricted-properties](https://lintradar.dev/rules/eslint/no-restricted-properties.md) | error | Disallow certain properties on certain objects | 15.3M |
| [eslint/no-restricted-syntax](https://lintradar.dev/rules/eslint/no-restricted-syntax.md) | warn | Disallow specified syntax | 14M |
| [react/jsx-pascal-case](https://lintradar.dev/rules/react/jsx-pascal-case.md) | warn | Enforce PascalCase for user-defined JSX components | 7.5M |
| [react/style-prop-object](https://lintradar.dev/rules/react/style-prop-object.md) | warn | Enforce style prop value is an object | 7.5M |
| [react/no-typos](https://lintradar.dev/rules/react/no-typos.md) | error | Disallow common typos | 7.5M |
| [react/forbid-foreign-prop-types](https://lintradar.dev/rules/react/forbid-foreign-prop-types.md) | warn | Disallow using another component's propTypes | 7.5M |
| [typescript/no-redeclare](https://lintradar.dev/rules/typescript/no-redeclare.md) | warn | Disallow variable redeclaration | 6.6M |
| [typescript/no-use-before-define](https://lintradar.dev/rules/typescript/no-use-before-define.md) | warn | Disallow the use of variables before they are defined | 6.4M |

---

Web page: https://lintradar.dev/presets/react-app. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
