# eslint-config-react

> A set of opinionated ESLint rules (all rules included) tailored for React projects

Latest version **1.1.7** (published 2016-10-25) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2016-10-25 |
| First published | 2015-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Patric Nordmark |
| Maintainers | patrio |
| Keywords | eslint, eslintconfig |

## Links

- npm: https://www.npmjs.com/package/eslint-config-react
- Repository: https://github.com/patrio/eslint-config-react
- Issues: https://github.com/patrio/eslint-config-react/issues
- npm.io page: https://npm.io/package/eslint-config-react

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.1.7 (latest) — 2016-10-25
- 1.1.6 — 2016-10-24
- 1.1.5 — 2016-10-24
- 1.1.4 — 2016-10-24
- 1.1.3 — 2016-10-24
- 1.1.2 — 2016-10-24
- 1.1.1 — 2015-11-11
- 1.1.0 — 2015-10-16
- 1.0.6 — 2015-10-16
- 1.0.5 — 2015-10-12
- 1.0.4 — 2015-09-25
- 1.0.3 — 2015-09-23
- 1.0.2 — 2015-09-23

## README

# eslint-config-react
A set of opinionated ESLint (http://eslint.org) rules (all rules included) tailored for React projects

## Usage:
1. `npm install --save-dev eslint-config-react babel-eslint eslint-plugin-react`
2. Create a file named `.eslintrc` in your project:
```js
{
  "extends": "react"
  // Your overrides...
}
```

## Why does it complain about bla-blu-blä, what does it all mean?
Read about all the rules here: http://eslint.org/docs/rules/  
React plugin rules: https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules

## Changelog
#### 1.1.2
Removed a bunch of rules about method order, especially the ones that is not really relevant with ES6 anymore
#### 1.1.1 
Removed env from config. That should be set per project, especially since it can't be overriden.
#### 1.1.0
arrow-parens: You should be allowed to omit parens if only one parameter (2 -> 0)  
prefer-spread: Moving to ES6, this should be default.  
prefer-reflect: Moving to ES6, this should be default.  
react/forbid-prop-types: Forbid the usage of React.PropTypes.any, it doesn't say anything really.  
react/jsx-closing-bracket-location: Don't care  
react/jsx-indent-props: Don't specify any.  
react/jsx-quotes: Again don't care, altho I thin "" makes more sense
react/no-direct-mutation-state: If you do this, you should be sent to React prison :)  
react/no-set-state: Entirely project specific.  
#### 1.0.5
react/sort-comp: Order custom component* (lifecycle) methods before other custom methods.
#### 1.0.4
prefer-const: Disabled since it's very annoying when you have variables that will be changeable later on. const is a very nice concept that should be used for stuff that are actually constants.
#### 1.0.3
Name change. This is a config for React projects.
#### 1.0.2
jsx-quotes: The react/jsx-quotes rule is deprecated. Using the jsx-quotes rule instead.
#### 1.0.1
no-unused-vars: Ignore React as unused variable. Because you need to import React for JSX (it will reference that variable) without you specifically referencing it.

---
_Source: https://npm.io/package/eslint-config-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
