# poi-preset-eslint-react

> Run eslint as building react app using Poi

Latest version **1.0.3** (published 2018-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install poi-preset-eslint-react
pnpm add poi-preset-eslint-react
yarn add poi-preset-eslint-react
bun add poi-preset-eslint-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.3 |
| Published | 2018-01-07 |
| First published | 2017-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zcong1993 |
| Maintainers | zcong |

## Links

- npm: https://www.npmjs.com/package/poi-preset-eslint-react
- Repository: https://github.com/zcong1993/poi-preset-eslint-react
- Homepage: https://github.com/zcong1993/poi-preset-eslint-react#readme
- Issues: https://github.com/zcong1993/poi-preset-eslint-react/issues
- npm.io page: https://npm.io/package/poi-preset-eslint-react

## Dependencies (7)

- [eslint](https://npm.io/package/eslint.md) ^3.19.0
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^7.2.3
- [eslint-loader](https://npm.io/package/eslint-loader.md) ^1.8.0
- [eslint-config-xo](https://npm.io/package/eslint-config-xo.md) ^0.18.2
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.0.1
- [eslint-config-xo-react](https://npm.io/package/eslint-config-xo-react.md) ^0.12.0
- [eslint-formatter-pretty](https://npm.io/package/eslint-formatter-pretty.md) ^1.1.0

## Recent versions

- 1.0.3 (latest) — 2018-01-07
- 1.0.2 — 2018-01-07
- 1.0.1 — 2017-07-01
- 1.0.0 — 2017-06-30
- 0.0.3 — 2017-05-23
- 0.0.2 — 2017-05-22
- 0.0.1 — 2017-05-22

## README

# poi-preset-eslint-react

[![NPM version](https://img.shields.io/npm/v/poi-preset-eslint-react.svg?style=flat)](https://npmjs.com/package/poi-preset-eslint-react) [![NPM downloads](https://img.shields.io/npm/dm/poi-preset-eslint-react.svg?style=flat)](https://npmjs.com/package/poi-preset-eslint-react) [![CircleCI](https://circleci.com/gh/zcong1993/poi-preset-eslint-react/tree/master.svg?style=shield)](https://circleci.com/gh/zcong1993/poi-preset-eslint-react/tree/master)  [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat)](https://github.com/zcong1993/donate)

> Run eslint as building react app using Poi

## Install

```bash
yarn add poi-preset-eslint-react --dev
```

## Usage

```js
// poi.config.js
module.exports = {
  presets: [
    require('poi-preset-eslint-react')(/* options */)
  ]
}
```

This preset activate in *all* mode!

## Api

### Parameters

- options `Object`(optional, default `{}``)
  - options.loaderOptions *any* Options for `eslint-loader`. (optional, default `undefined`)
  - options.mode (`string` | `Array<string>`) In which mode to run ESLint. It could be a wildcard symbol `*` which means all modes, or an array of modes like ['production', 'test'] (optional, default '*')

### Examples

```js
require('poi-preset-eslint-react')({
  loaderOptions: {
    mode: 'production', // only in `production` mode
    loaderOptions: {
      rules: {
        semi: 0 // ignore semi check
      }
    }
   }
})
```

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Author

**poi-preset-eslint-react** © [zcong1993](https://github.com/zcong1993), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by zcong1993 with help from contributors ([list](https://github.com/zcong1993/poi-preset-eslint-react/contributors)).

> [github.com/zcong1993](https://github.com/zcong1993) · GitHub [@zcong1993](https://github.com/zcong1993)

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