eslint-config-react-app
ESLint configuration used by Create React App
Last updated a month ago by iansu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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, ESLint and the necessary plugins.

npm install --save-dev eslint-config-react-app @typescript-eslint/eslint-plugin@1.x @typescript-eslint/parser@1.x babel-eslint@10.x eslint@6.x eslint-plugin-flowtype@3.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-react@7.x eslint-plugin-react-hooks@1.x

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.

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.0.1                                ...           latest (a month ago)
  • 4.0.0-next.74                                ...           next (5 months ago)

61 Versions

  • 5.0.1                                ...           a month ago
  • 5.0.0                                ...           a month ago
  • 4.0.1                                ...           4 months ago
  • 4.0.0                                ...           5 months ago
  • 4.0.0-next.74                                ...           5 months ago
  • 4.0.0-next.b0cbf2ca                                ...           6 months ago
  • 3.0.8                                ...           6 months ago
  • 3.0.7                                ...           7 months ago
  • 3.0.7-next.6a95aae9                                ...           8 months ago
  • 3.0.6                                ...           9 months ago
  • 3.0.5                                ...           a year ago
  • 3.0.5-next.c662dfb0                                ...           a year ago
  • 3.0.5-next.9b4009d7                                ...           a year ago
  • 3.0.4                                ...           a year ago
  • 3.0.3                                ...           a year ago
  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 3.0.0-next.fb6e6f70                                ...           a year ago
  • 3.0.0-next.2150693d                                ...           a year ago
  • 3.0.0-next.a671462c                                ...           a year ago
  • 3.0.0-next.3e165448                                ...           a year ago
  • 3.0.0-next.66cc7a90                                ...           a year ago
  • 3.0.0-next.b2fd8db8                                ...           a year ago
  • 3.0.0-next.47d2d941                                ...           2 years ago
  • 3.0.0-next.03604a46                                ...           2 years ago
  • 3.0.0-next.9754a231                                ...           2 years ago
  • 3.0.0-next.096703ab                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4-alpha.60ae2b6d                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-alpha.55afd862                                ...           2 years ago
  • 1.0.0-alpha.02968ecd                                ...           2 years ago
  • 1.0.0-alpha.0d0536f9                                ...           2 years ago
  • 1.0.0-alpha.c82c4f05                                ...           2 years ago
  • 1.0.0-alpha.e280254d                                ...           2 years ago
  • 1.0.0-alpha.134d2297                                ...           2 years ago
  • 1.0.0-alpha.dadf93b2                                ...           2 years ago
  • 1.0.0-alpha.58689133                                ...           2 years ago
  • 0.7.0-alpha.f55d2212                                ...           3 years ago
  • 0.6.2                                ...           3 years ago
  • 0.6.1                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.2                                ...           3 years ago
  • 0.5.1                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0-alpha.9c45b252                                ...           3 years ago
  • 0.3.0-alpha.e756d73a                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Downloads
Today 2,103
This Week 2,103
This Month 41,600
Last Day 926
Last Week 16,805
Last Month 93,887
Dependencies (1)
Dev Dependencies (0)
None
Dependents (3445)

Copyright 2014 - 2017 © taobao.org |