Created
April 5, 2017 07:52
-
-
Save rexlow/2c0dcb1de768e2add26fb0e0c7d9d75c to your computer and use it in GitHub Desktop.
Setup eslint in react-native project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure eslint is install in your project or gloablly | |
// In your project | |
npm install --save-dev babel-eslint eslint eslint-plugin-react | |
// Create .eslintrc | |
{ | |
"parser": "babel-eslint", | |
"env": { | |
"browser": true | |
}, | |
"plugins": [ | |
"react" | |
], | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended" | |
], | |
"rules": { | |
// overrides | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment