Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jeffgukang/react-native-eslint-prettier-starter
- Owner: JeffGuKang
- Created: 2019-09-09T12:00:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T09:32:49.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T06:11:10.992Z (7 months ago)
- Language: Objective-C
- Size: 1.03 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
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,
}
```