Skip to content

Instantly share code, notes, and snippets.

@chipcerio
Forked from radiovisual/.eslintrc
Last active May 11, 2018 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chipcerio/41605163d4c5f2d89ab36549c8236f06 to your computer and use it in GitHub Desktop.
Save chipcerio/41605163d4c5f2d89ab36549c8236f06 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 eslint eslint-plugin-import babel-eslint eslint-config-airbnb-base eslint-plugin-react eslint-plugin-react-native
yarn add eslint eslint-plugin-import babel-eslint eslint-config-airbnb-base eslint-plugin-react eslint-plugin-react-native --dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment