Skip to content

Instantly share code, notes, and snippets.

@franzejr
Created August 30, 2016 03:55
Show Gist options
  • Save franzejr/cab26d3950f20731624a5386932aa417 to your computer and use it in GitHub Desktop.
Save franzejr/cab26d3950f20731624a5386932aa417 to your computer and use it in GitHub Desktop.
Add eslint to your React Native Project
{
"name": "My Application",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"lint": "eslint --fix *.js"
},
"dependencies": {
"react": "15.3.1",
"react-native": "0.32.0"
},
"devDependencies": {
"babel-eslint": "^6.1.0",
"eslint": "^2.13.1",
"eslint-config-airbnb": "9.0.1",
"eslint-plugin-import": "1.9.2",
"eslint-plugin-jsx-a11y": "1.5.3",
"eslint-plugin-react": "^5.2.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment