|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + "parser": "babel-eslint", |
| 4 | + "parserOptions": { |
| 5 | + "ecmaFeatures": { |
| 6 | + "jsx": true |
| 7 | + } |
| 8 | + }, |
| 9 | + "extends": [ |
| 10 | + "airbnb-base", |
| 11 | + "plugin:react/recommended", |
| 12 | + "prettier", |
| 13 | + "prettier/react", |
| 14 | + "plugin:import/errors", |
| 15 | + "plugin:import/warnings" |
| 16 | + ], |
| 17 | + "plugins": ["react", "react-native", "import", "prettier"], |
| 18 | + "settings": { |
| 19 | + "import/ignore": ["node_modules", ".png$", ".jpg$"], |
| 20 | + "import/resolver": { |
| 21 | + "babel-module": {} |
| 22 | + }, |
| 23 | + "react": { |
| 24 | + "version": "detect" |
| 25 | + } |
| 26 | + }, |
| 27 | + "env": { |
| 28 | + "jest": true |
| 29 | + }, |
| 30 | + "rules": { |
| 31 | + "jsx-quotes": ["error", "prefer-double"], |
| 32 | + "react/prop-types": "off", |
| 33 | + "prettier/prettier": "error", |
| 34 | + "import/prefer-default-export": "off", |
| 35 | + "import/no-extraneous-dependencies": [ |
| 36 | + "error", |
| 37 | + { |
| 38 | + "devDependencies": true, |
| 39 | + "optionalDependencies": true |
| 40 | + } |
| 41 | + ], |
| 42 | + "linebreak-style": ["error", "windows"], |
| 43 | + "arrow-body-style": ["warn", "as-needed"], |
| 44 | + "arrow-parens": ["error", "always"], |
| 45 | + "no-unused-vars": [ |
| 46 | + "error", |
| 47 | + { |
| 48 | + "args": "none" |
| 49 | + } |
| 50 | + ], |
| 51 | + "func-names": "off", |
| 52 | + "no-console": "off", |
| 53 | + "radix": ["error", "as-needed"], |
| 54 | + "prefer-destructuring": "off", |
| 55 | + "no-useless-escape": "off", |
| 56 | + "spaced-comment": "error", |
| 57 | + "curly": ["error", "multi-line"], |
| 58 | + "eol-last": ["error", "always"], |
| 59 | + "guard-for-in": "error", |
| 60 | + "no-unused-labels": "error", |
| 61 | + "no-caller": "error", |
| 62 | + "no-bitwise": "error", |
| 63 | + "no-multiple-empty-lines": "error", |
| 64 | + "no-new-wrappers": "error", |
| 65 | + "no-eval": "error", |
| 66 | + "dot-notation": "error", |
| 67 | + "no-trailing-spaces": "error", |
| 68 | + "no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }], |
| 69 | + "brace-style": "error", |
| 70 | + "quotes": ["error", "single"], |
| 71 | + "default-case": "error", |
| 72 | + "eqeqeq": "error" |
| 73 | + } |
| 74 | +} |
0 commit comments