Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/attitude/eslint-config-with-attitude

Opinionated eslint rules for React Native apps
https://github.com/attitude/eslint-config-with-attitude

config eslint eslint-config esnext flow import promise react react-native rules standard

Last synced: about 4 hours ago
JSON representation

Opinionated eslint rules for React Native apps

Awesome Lists containing this project

README

        

# react-native-eslint-config
Opinionated eslint rules for React Native apps

## Usage

Due [Issue#3458](https://github.com/eslint/eslint/issues/3458) you must install the peer dependencies.

#### Option A

You can follow same process as described in [what Airbnb is doing with eslint-config-airbnb](https://www.npmjs.com/package/eslint-config-airbnb). Just list dependencies using

```
npm info "eslint-config-with-attitude" peerDependencies
```

#### Option B

Use bin executable script included within this repository to link/unlink peer dependencies after installing this package. (Requires PHP available on the machine. Sorry Ia am still not friend with Node on the CLI side.)

```
yarn eslint-config-with-attitude-linker link
```

---

## Upgrading

1. Run unlink before upgrading:
```
yarn eslint-config-with-attitude-linker unlink
```
2. Upgrade e.g by re-adding the package:
```
yarn add eslint-config-with-attitude
```
3. Run link after upgrading:
```
yarn eslint-config-with-attitude-linker link
```