My standard react native app with pre-configured ESLint, Flow, Prettier, Babel.
Tutorial from: https://medium.com/@sgroff04/configure-eslint-prettier-and-flow-in-vs-code-for-react-development-c9d95db07213
Press Ctrl + , (or Cmd + , for Mac), click bracket icon in top right { } and add these code:
"editor.formatOnSave": true,
"eslint.autoFixOnSave": true,
"eslint.alwaysShowStatus": true,
"flow.useNPMPackagedFlow": true,
"javascript.validate.enable": false,
"javascript.format.enable": false,
"prettier.eslintIntegration": true,
- Clone project and change folder name
git clone https://github.com/sumirart/Boilerplate-RN-ESLint-Flow-Prettier.git change-folder-name
- cd into folder
cd change-folder-name
- Download dependencies
npm install
- Start flow before doing some code (if it doesn't start already)
npm run flow start
-
Configure '.eslintrc' if you would like to
-
Add comment '@flow' in top line in every file if you want to use flow
//@flow
-
Restart VS Code if doens't work
-
Googling if still doesn't work :P