Skip to content

Instantly share code, notes, and snippets.

@chourobin
Last active October 27, 2018 00:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save chourobin/7bc91aea0ff79701f39bc2d71b6b16d9 to your computer and use it in GitHub Desktop.
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": []
}]
}
}
"babel-eslint": "^7.2.3",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^14.1.0",
"eslint-plugin-babel": "^4.1.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-react-native": "^2.3.2",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment