Install ESLint either locally or globally. (Note that locally, per project, is strongly preferred). If you installed ESLint globally, you have to install React plugin globally too. Otherwise, install it locally. Use our preset to get reasonable defaults. If you are using the new JSX transform from React 17, extend react/jsx-runtime in your eslint config to disable the relevant rules. You should also specify settings that will be shared across all the plugin rules. If you do not use a preset you will need to specify individual rules and add extra configuration. This plugin exports a recommended configuration that enforces React good practices. This plugin also exports an all configuration that includes every available rule. This pairs well with the eslint:all rule. These configurations will import eslint-plugin-react and enable JSX in parser options.

Features

  • Install ESLint either locally or globally
  • Use our preset to get reasonable defaults
  • Specify settings that will be shared across all the plugin rules
  • ESLint-plugin-React is licensed under the MIT License
  • Add "react" to the plugins section
  • Enable the rules that you would like to use

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow ESLint-plugin-React

ESLint-plugin-React Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ESLint-plugin-React!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Browser Extensions and Plugins

Registered

2021-08-11