Skip to content

Instantly share code, notes, and snippets.

@gHashTag
Forked from radiovisual/.eslintrc
Created August 25, 2018 14:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gHashTag/f1b4dce90b3242836f244df2b38e8ec2 to your computer and use it in GitHub Desktop.
Save gHashTag/f1b4dce90b3242836f244df2b38e8ec2 to your computer and use it in GitHub Desktop.
React Native AirBnB ESLint Config
{
"parser": "babel-eslint",
"plugins": [
"react",
"react-native"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"extends" : [
"eslint:recommended",
"plugin:react/recommended",
"airbnb-base"
],
"rules" : {
"arrow-body-style" : 'warn'
}
}
npm install --save-dev babel-eslint eslint-config-airbnb-base eslint-plugin-react eslint-plugin-react-native
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment