-
If you don't already have it, install Homebrew,
-
Install Node and Watchman
$ brew install node
$ brew install watchman
- Install React Native CLI, create a new Project,
cdinto it
$ npm install -g react-native-cli
$ react-native init IntroductionToReact
$ cd IntroductionToReact
- Set up Eslint
$ npm i -D eslint-config-react-app [email protected] [email protected] [email protected]
$ npm i -D [email protected] [email protected] [email protected]
$ touch .eslintrc.js
Add the following to your .eslintrc.js file
module.exports = {
"extends": "react-app"
};- If you don't already have it, Install the Atom text editor
- Install the
linter-eslintAtom package by:- Opening Atom
- Opening preferences with
Command + , - Click on "Install" in the left pane
- Fill in "linter-eslint" in the "Search packages" input and press
Return - Click on the blue "Install" button for
linter-eslint
thanks @davidrf ! FYI I think you may need to swap the order of the Eslint package installation -- I got an
UNMET PEER DEPENDENCYerror installingeslint-config-react-appuntil i installedeslint-plugin-import.