# @sowhatdoido/react-app-rewire-eslint

> rewire your react-app and use your own eslint config

Latest version **0.2.3** (published 2018-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sowhatdoido/react-app-rewire-eslint
pnpm add @sowhatdoido/react-app-rewire-eslint
yarn add @sowhatdoido/react-app-rewire-eslint
bun add @sowhatdoido/react-app-rewire-eslint
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2018-09-12 |
| First published | 2018-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sowhatdoido |

## Links

- npm: https://www.npmjs.com/package/@sowhatdoido/react-app-rewire-eslint
- npm.io page: https://npm.io/package/@sowhatdoido/react-app-rewire-eslint

## Recent versions

- 0.2.3 (latest) — 2018-09-12

## README

# Create your React app using `create-react-app my-app` or use an CRA app

# Rewire it

## 1) Install react-app-rewired + react-app-rewire-eslint

```bash
npm install react-app-rewired react-app-rewire-eslint --save
```

## 2) Create a config-overrides.js file in the root directory

```javascript
const rewireEslint = require('react-app-rewire-eslint');

function overrideEslintOptions(options) {
  // do stuff with the eslint options...
  return options;
}

/* config-overrides.js */
module.exports = function override(config, env) {
  config = rewireEslint(config, env, overrideEslintOptions);
  return config;
}
```

Note that the `overrideEslintOptions` argument is optional.  It allows you to make additional changes to the eslint options that are not made already by `rewireEslint`.

## 3) Create your own .eslintrc in the root directory

**Sample Structure**

```
+-- your-project
|   +-- .eslintrc
|   +-- config-overrides.js
|   +-- node_modules
|   +-- package.json
|   +-- public
|   +-- README.md
|   +-- src
```

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