Skip to content

Instantly share code, notes, and snippets.

@chourobin
Last active October 27, 2018 00:30
Show Gist options
  • Select an option

  • Save chourobin/7bc91aea0ff79701f39bc2d71b6b16d9 to your computer and use it in GitHub Desktop.

Select an option

Save chourobin/7bc91aea0ff79701f39bc2d71b6b16d9 to your computer and use it in GitHub Desktop.
React Native General Eslint File
{
"parser": "babel-eslint",
"env": {
"browser": true
},
"plugins": [
"babel",
"react",
"react-native"
],
"extends": [
"airbnb",
"eslint:recommended",
"plugin:react/recommended"
],
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".android.js",
".ios.js"
]
}
}
},
"rules": {
"react/jsx-filename-extension": [1, {
"extensions": [".js", ".jsx"]
}],
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"react/forbid-prop-types": [0, {
"forbid": []
}],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment