Last active
June 23, 2018 14:43
-
-
Save droidMakk/9aa07baca4f891408eccbf961b009a7f to your computer and use it in GitHub Desktop.
react-native eslint configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// 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