Skip to content

Instantly share code, notes, and snippets.

@iraycd
Last active January 16, 2017 11:14
Show Gist options
  • Save iraycd/9757fd8951cd14aadd84d7a560925c8a to your computer and use it in GitHub Desktop.
Save iraycd/9757fd8951cd14aadd84d7a560925c8a to your computer and use it in GitHub Desktop.
ESLint React Native Sample
{
"parser": "babel-eslint",
"ecmaFeatures": {
"jsx": true
},
"env": {
"es6": true,
"jasmine": true,
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
}
}

Install devDependencies:

  "devDependencies": {
    "babel-eslint": "^7.1.1",
    "babel-jest": "17.0.2",
    "babel-preset-react-native": "1.9.0",
    "eslint": "^3.13.0",
    "eslint-plugin-react": "^6.9.0",
    "jest": "17.0.3",
    "react-test-renderer": "15.4.1"
  },
  "jest": {
    "preset": "react-native"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment