# @santospatrick/eslint-config-react

> :barber: Simple eslint config for React.js

Latest version **1.0.6** (published 2020-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @santospatrick/eslint-config-react
pnpm add @santospatrick/eslint-config-react
yarn add @santospatrick/eslint-config-react
bun add @santospatrick/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.0.6 |
| Published | 2020-01-12 |
| First published | 2020-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | santospatrick |

## Links

- npm: https://www.npmjs.com/package/@santospatrick/eslint-config-react
- npm.io page: https://npm.io/package/@santospatrick/eslint-config-react

## Dependencies (6)

- [eslint](https://npm.io/package/eslint.md) ^6.8.0
- [prettier](https://npm.io/package/prettier.md) ^1.19.1
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^10.0.3
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.17.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^6.9.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^3.1.2

## Recent versions

- 1.0.6 (latest) — 2020-01-12
- 1.0.5 — 2020-01-12
- 1.0.4 — 2020-01-12
- 1.0.3 — 2020-01-12
- 1.0.2 — 2020-01-12
- 1.0.1 — 2020-01-12
- 1.0.0 — 2020-01-12

## README

# `@santospatrick/eslint-config-react`
:barber: Simple eslint config for React.js

## Usage

1. Install
```sh
yarn add eslint-config-prettier \
  eslint-plugin-prettier \
  @santospatrick/eslint-config-react \
  @santospatrick/prettier-config --dev
```

2. Create a file `.eslintrc` and add this:
```
{
    "extends": "@santospatrick/eslint-config-react"
}
```

3. Add this line at `package.json`
```diff
...
+ "prettier": "@santospatrick/prettier-config"
...
```

4. (Optional) Add script for linting
```json
"scripts": {
    "lint": "eslint --fix src --ext .js"
},
```


## Create React App
If you are using [create-react-app](https://create-react-app.dev/), remove the following lines at `package.json`:

```diff
...
- "eslintConfig": {
-   "extends": "react-app"
- },
...
```

## Development

```sh
yarn link
cd /path/to/project
yarn link @santospatrick/eslint-config-react

# Deploy
# This command will also publish do Yarn
npm publish --access public
```

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