{"repo":"jsx-eslint/eslint-plugin-react","free":true,"listed":false,"github":"https://github.com/jsx-eslint/eslint-plugin-react","clone":"git clone https://github.com/jsx-eslint/eslint-plugin-react.git","description":"React-specific linting rules for ESLint","language":"JavaScript","stars":9293,"topics":["javascript","eslint","react","lint","ecmascript","development"],"license":"MIT","category":"dev-tools","readme_excerpt":"eslint-plugin-react [![Version Badge][npm-version-svg]][package-url] =================== [![github actions][actions-image]][actions-url] [![Maintenance Status][status-image]][status-url] [![NPM version][npm-image]][npm-url] [![Tidelift][tidelift-image]][tidelift-url] React specific linting rules for eslint Installation It is also possible to install ESLint globally rather than locally (using npm install -g eslint ). However, this is not recommended, and any plugins or shareable configs that you use must be installed locally in either case. Configuration (legacy: .eslintrc ) 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 (add \"plugin:react/jsx-runtime\" to \"extends\" ) to disable the relevant rules. You should also specify settings that will be shared across all the plugin rules. (More about eslint shared settings) If you do not use a preset you will need to specify individual rules and add extra configuration. Add \"react\" to the plugins section. Enable JSX support. With eslint 2+ Enable the rules that you would like to use. Shareable configs Recommended This plugin exports a recommended configuration that enforces React good practices. To enable this configuration use the extends property in your .eslintrc config file: See eslint documentation for more information about extending configuration files. All This plugin also exports an all configuration that includes every available rul","default_branch":null,"files":null,"tree":[],"storefront":"/r/jsx-eslint","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jsx-eslint/eslint-plugin-react/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}