Skip to content

Instantly share code, notes, and snippets.

@rexlow
Created April 5, 2017 07:52
Show Gist options
  • Save rexlow/2c0dcb1de768e2add26fb0e0c7d9d75c to your computer and use it in GitHub Desktop.
Save rexlow/2c0dcb1de768e2add26fb0e0c7d9d75c to your computer and use it in GitHub Desktop.
Setup eslint in react-native project
// 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