Skip to content

Instantly share code, notes, and snippets.

@droidMakk
Last active June 23, 2018 14:43
Show Gist options
  • Save droidMakk/9aa07baca4f891408eccbf961b009a7f to your computer and use it in GitHub Desktop.
Save droidMakk/9aa07baca4f891408eccbf961b009a7f to your computer and use it in GitHub Desktop.
react-native eslint configuration
// yarn add eslint babel-eslint eslint-plugin-flowtype flow-bin@^0.67.0 eslint-plugin-react eslint-plugin-react-native eslint-plugin-flowtype
{
"env": {
"browser": true,
"react-native/react-native": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-native/all",
"plugin:flowtype/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"ecmaVersion": 2018
},
"plugins": [
"react",
"react-native",
"flowtype"
],
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
],
"react-native/no-unused-styles": 1,
"react-native/split-platform-components": 0,
"react-native/no-inline-styles": 0,
"react-native/no-color-literals": 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment