Skip to content

Instantly share code, notes, and snippets.

@thinhhung
Forked from radiovisual/.eslintrc
Created June 19, 2018 03:12
Show Gist options
  • Save thinhhung/41aab1b351e8df5f377bb840f557edcd to your computer and use it in GitHub Desktop.
Save thinhhung/41aab1b351e8df5f377bb840f557edcd 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