eslint-config-react-app
Last updated 8 years ago by gaearon .
Original npm · Tarball · package.json
$ npm install eslint-config-react-app 
SYNC missed versions from official npm registry.

eslint-config-react-app

This package includes the shareable ESLint configuration used by Create React App.
Please refer to its documentation:

Usage in Create React App Projects

The easiest way to use this configuration is with Create React App, which includes it by default.

You don’t need to install it separately in Create React App projects.

Usage Outside of Create React App

If you want to use this ESLint configuration in a project not built with Create React App, you can install it with the following steps.

First, install this package and ESLint.

npm install --save-dev eslint-config-react-app eslint@^8.0.0

Then create a file named .eslintrc.json with following contents in the root folder of your project:

{
  "extends": "react-app"
}

That's it! You can override the settings from eslint-config-react-app by editing the .eslintrc.json file. Learn more about configuring ESLint on the ESLint website.

Jest rules

This config also ships with optional Jest rules for ESLint (based on eslint-plugin-jest).

You can enable these rules by adding the Jest config to the extends array in your ESLint config.

{
  "extends": ["react-app", "react-app/jest"]
}

Accessibility Checks

The following rules from the eslint-plugin-jsx-a11y plugin are activated:

If you want to enable even more accessibility rules, you can create an .eslintrc.json file in the root of your project with this content:

{
  "extends": ["react-app", "plugin:jsx-a11y/recommended"],
  "plugins": ["jsx-a11y"]
}

However, if you are using Create React App and have not ejected, any additional rules will only be displayed in the IDE integrations, but not in the browser or the terminal.

Current Tags

  • 5.1.0-next.61                                ...           canary (5 years ago)
  • 7.0.1                                ...           latest (3 years ago)
  • 7.1.0-next.14                                ...           next (3 years ago)

84 Versions

  • 7.0.1                                ...           3 years ago
  • 7.1.0-next.14                                ...           3 years ago
  • 7.0.0                                ...           3 years ago
  • 7.0.0-next.104                                ...           3 years ago
  • 7.0.0-next.102                                ...           3 years ago
  • 7.0.0-next.91                                ...           3 years ago
  • 7.0.0-next.81                                ...           3 years ago
  • 7.0.0-next.75                                ...           3 years ago
  • 6.0.0                                ...           4 years ago
  • 6.0.0-next.117                                ...           4 years ago
  • 6.0.0-next.116                                ...           4 years ago
  • 6.0.0-next.98                                ...           4 years ago
  • 6.0.0-next.96                                ...           4 years ago
  • 6.0.0-next.77                                ...           4 years ago
  • 6.0.0-next.64                                ...           4 years ago
  • 5.2.1                                ...           5 years ago
  • 5.2.0                                ...           5 years ago
  • 5.1.0                                ...           5 years ago
  • 5.1.0-next.103                                ...           5 years ago
  • 5.1.0-next.85                                ...           5 years ago
  • 5.1.0-next.62                                ...           5 years ago
  • 5.1.0-next.61                                ...           5 years ago
  • 5.0.2                                ...           5 years ago
  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.0.1                                ...           6 years ago
  • 4.0.0                                ...           6 years ago
  • 4.0.0-next.74                                ...           6 years ago
  • 4.0.0-next.b0cbf2ca                                ...           6 years ago
  • 3.0.8                                ...           6 years ago
  • 3.0.7                                ...           6 years ago
  • 3.0.7-next.6a95aae9                                ...           6 years ago
  • 3.0.6                                ...           6 years ago
  • 3.0.5                                ...           6 years ago
  • 3.0.5-next.c662dfb0                                ...           6 years ago
  • 3.0.5-next.9b4009d7                                ...           6 years ago
  • 3.0.4                                ...           6 years ago
  • 3.0.3                                ...           6 years ago
  • 3.0.2                                ...           6 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 3.0.0-next.fb6e6f70                                ...           6 years ago
  • 3.0.0-next.2150693d                                ...           6 years ago
  • 3.0.0-next.a671462c                                ...           6 years ago
  • 3.0.0-next.3e165448                                ...           6 years ago
  • 3.0.0-next.66cc7a90                                ...           7 years ago
  • 3.0.0-next.b2fd8db8                                ...           7 years ago
  • 3.0.0-next.47d2d941                                ...           7 years ago
  • 3.0.0-next.03604a46                                ...           7 years ago
  • 3.0.0-next.9754a231                                ...           7 years ago
  • 3.0.0-next.096703ab                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.5                                ...           7 years ago
  • 1.0.4-alpha.60ae2b6d                                ...           7 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
  • 1.0.0-alpha.55afd862                                ...           7 years ago
  • 1.0.0-alpha.02968ecd                                ...           7 years ago
  • 1.0.0-alpha.0d0536f9                                ...           7 years ago
  • 1.0.0-alpha.c82c4f05                                ...           7 years ago
  • 1.0.0-alpha.e280254d                                ...           7 years ago
  • 1.0.0-alpha.134d2297                                ...           7 years ago
  • 1.0.0-alpha.dadf93b2                                ...           7 years ago
  • 1.0.0-alpha.58689133                                ...           7 years ago
  • 0.7.0-alpha.f55d2212                                ...           8 years ago
  • 0.6.2                                ...           8 years ago
  • 0.6.1                                ...           8 years ago
  • 0.6.0                                ...           8 years ago
  • 0.5.2                                ...           8 years ago
  • 0.5.1                                ...           8 years ago
  • 0.5.0                                ...           8 years ago
  • 0.4.0                                ...           8 years ago
  • 0.3.0-alpha.9c45b252                                ...           8 years ago
  • 0.3.0-alpha.e756d73a                                ...           8 years ago
  • 0.3.0                                ...           8 years ago
  • 0.2.1                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 38
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE