Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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
- }
- }
Add Comment
Please, Sign In to add comment