|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "es6": true, |
| 4 | + "react-native/react-native": true |
| 5 | + }, |
| 6 | + "extends": ["airbnb", "plugin:react/recommended"], |
| 7 | + "globals": { |
| 8 | + "__DEV__": false |
| 9 | + }, |
| 10 | + "parser": "babel-eslint", |
| 11 | + "plugins": [ |
| 12 | + "react", |
| 13 | + "react-native" |
| 14 | + ], |
| 15 | + "rules": { |
| 16 | + "arrow-parens": ["error", "as-needed"], |
| 17 | + "class-methods-use-this": "off", |
| 18 | + "comma-dangle": ["error", { |
| 19 | + "arrays": "always-multiline", |
| 20 | + "objects": "always-multiline", |
| 21 | + "imports": "always-multiline", |
| 22 | + "exports": "always-multiline", |
| 23 | + "functions": "ignore" |
| 24 | + }], |
| 25 | + "indent": ["error", 2, { |
| 26 | + "SwitchCase": 1 |
| 27 | + }], |
| 28 | + "global-require": "off", |
| 29 | + "no-console": ["error", { |
| 30 | + "allow": ["warn", "error"] |
| 31 | + }], |
| 32 | + "no-underscore-dangle": ["error", { |
| 33 | + "allowAfterThis": true |
| 34 | + }], |
| 35 | + "no-use-before-define": ["error", { |
| 36 | + "variables": false |
| 37 | + }], |
| 38 | + "object-curly-newline": "off", |
| 39 | + "operator-linebreak": "off", |
| 40 | + "radix": "off", |
| 41 | + |
| 42 | + "import/extensions": ["error", { |
| 43 | + "js": "never", |
| 44 | + "graphql": "always", |
| 45 | + "png": "always" |
| 46 | + }], |
| 47 | + "import/no-named-as-default": "off", |
| 48 | + "import/no-unresolved": ["error", { |
| 49 | + "ignore": ["^[~]"] |
| 50 | + }], |
| 51 | + |
| 52 | + "react/jsx-filename-extension": ["error", { |
| 53 | + "extensions": [".js", ".jsx"] |
| 54 | + }], |
| 55 | + "react/jsx-indent": ["error", 2], |
| 56 | + "react/jsx-indent-props": ["error", 2], |
| 57 | + "react/jsx-one-expression-per-line": "off", |
| 58 | + "react/prefer-stateless-function": ["warn", { |
| 59 | + "ignorePureComponents": true |
| 60 | + }], |
| 61 | + |
| 62 | + "react-native/no-inline-styles": "error" |
| 63 | + } |
| 64 | +} |
0 commit comments