Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jeffgukang/react-native-eslint-prettier-starter

react-native-eslint-prettier-starter
https://github.com/jeffgukang/react-native-eslint-prettier-starter

Last synced: about 12 hours ago
JSON representation

react-native-eslint-prettier-starter

Awesome Lists containing this project

README

        

# React Native Eslint Prettier Starter

## Create React Native Project

Reference [React Native CLI QuickStart](https://facebook.github.io/react-native/docs/getting-started)

```
npx react-native init YourProject
```

## ESLint

ESLint > 6 has error with `@react-native-community/eslint-config`. So install `[email protected]`.

```
yarn add [email protected] --exact -D
```

Than's all.

`@react-native-community/eslint-config` already has options related to React Native.

## VSCode settings

.vscode/settings.json

```
{
"editor.formatOnSave": true,
// disable editor formatting, so eslint can handle it
"[javascript]": {
"editor.formatOnSave": false,
},
"typescript.validate.enable": false,
"javascript.validate.enable": false,
// available through eslint plugin in vscode
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
}
```