Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ltatarev/eslint-config

📝 Eslint config for React & React Native projects
https://github.com/ltatarev/eslint-config

eslint eslint-config eslint-config-react eslint-config-react-native

Last synced: 8 days ago
JSON representation

📝 Eslint config for React & React Native projects

Awesome Lists containing this project

README

        

# 🗂️ eslint-config

[![NPM](https://img.shields.io/npm/v/@ltatarev/eslint-config-react?style=flat-square)](https://www.npmjs.com/package/@ltatarev/eslint-config-react) [![NPM License](https://img.shields.io/npm/l/@ltatarev/eslint-config-react-native?style=flat-square)](https://opensource.org/licenses/MIT)

Eslint config for React and React Native projects. Contains recommended rules extended from `airbnb`, `airbnb/hooks`, `plugin:react`, `plugin:react-hooks`. Added rules contain import and prop sorting, as well as most available `react-native` rules.

## 🖥️ Installation

1. Install the desired package using the below commands.

```sh
npm install --dev @ltatarev/eslint-config-react
```

or

```sh
npm install --dev @ltatarev/eslint-config-react-native
```

2. Add `"extends": "@ltatarev/react"` or `"extends": "@ltatarev/react-native"` to your .eslintrc.