|
| 1 | +{ |
| 2 | + "parser": "@typescript-eslint/parser", |
| 3 | + "extends": [ |
| 4 | + "eslint:recommended", |
| 5 | + "plugin:react/recommended", |
| 6 | + "plugin:@typescript-eslint/eslint-recommended", |
| 7 | + "plugin:@typescript-eslint/recommended", |
| 8 | + "plugin:prettier/recommended", |
| 9 | + "plugin:import/typescript", |
| 10 | + "prettier" |
| 11 | + ], |
| 12 | + "plugins": [ |
| 13 | + "react", |
| 14 | + "react-native", |
| 15 | + "import", |
| 16 | + "prettier", |
| 17 | + "react-hooks", |
| 18 | + "@typescript-eslint", |
| 19 | + "shopify-lean" |
| 20 | + ], |
| 21 | + "parserOptions": { |
| 22 | + "ecmaVersion": 2019, |
| 23 | + "sourceType": "module", |
| 24 | + "ecmaFeatures": { |
| 25 | + "jsx": true |
| 26 | + } |
| 27 | + }, |
| 28 | + "env": { |
| 29 | + "jest": true, |
| 30 | + "react-native/react-native": true |
| 31 | + }, |
| 32 | + "globals": { |
| 33 | + "device": false, |
| 34 | + "expect": false, |
| 35 | + "waitFor": false, |
| 36 | + "element": false, |
| 37 | + "by": false |
| 38 | + }, |
| 39 | + "rules": { |
| 40 | + "prettier/prettier": "error", |
| 41 | + "react/display-name": "off", |
| 42 | + "react/prop-types": "off", |
| 43 | + "react/jsx-boolean-value": "error", |
| 44 | + "react-hooks/rules-of-hooks": "error", |
| 45 | + "react-hooks/exhaustive-deps": "warn", |
| 46 | + "react-native/no-unused-styles": "error", |
| 47 | + "react-native/split-platform-components": "error", |
| 48 | + "react-native/no-inline-styles": "off", |
| 49 | + "react-native/no-color-literals": "error", |
| 50 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 51 | + "@typescript-eslint/no-use-before-define": "off", |
| 52 | + "@typescript-eslint/no-empty-interface": "off", |
| 53 | + "@typescript-eslint/no-explicit-any": "off", |
| 54 | + "@typescript-eslint/no-non-null-assertion": "off", |
| 55 | + "@typescript-eslint/ban-ts-ignore": "off", |
| 56 | + "@typescript-eslint/ban-types": "off", |
| 57 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 58 | + "shopify-lean/typescript/prefer-pascal-case-enums": "error", |
| 59 | + "no-param-reassign": "error", |
| 60 | + "no-empty": [ |
| 61 | + "warn", |
| 62 | + { |
| 63 | + "allowEmptyCatch": true |
| 64 | + } |
| 65 | + ], |
| 66 | + "import/newline-after-import": "error", |
| 67 | + "import/no-duplicates": "error", |
| 68 | + "import/order": [ |
| 69 | + "error", |
| 70 | + { |
| 71 | + "groups": [ |
| 72 | + [ |
| 73 | + "builtin", |
| 74 | + "external" |
| 75 | + ], |
| 76 | + [ |
| 77 | + "internal", |
| 78 | + "parent", |
| 79 | + "sibling", |
| 80 | + "index", |
| 81 | + "unknown" |
| 82 | + ] |
| 83 | + ], |
| 84 | + "pathGroups": [ |
| 85 | + { |
| 86 | + "pattern": "app/**", |
| 87 | + "group": "internal", |
| 88 | + "position": "before" |
| 89 | + } |
| 90 | + ], |
| 91 | + "pathGroupsExcludedImportTypes": [ |
| 92 | + "builtin" |
| 93 | + ], |
| 94 | + "alphabetize": { |
| 95 | + "order": "asc" |
| 96 | + }, |
| 97 | + "newlines-between": "always" |
| 98 | + } |
| 99 | + ], |
| 100 | + "id-length": [ |
| 101 | + 2, |
| 102 | + { |
| 103 | + "exceptions": [ |
| 104 | + "t" |
| 105 | + ] |
| 106 | + } |
| 107 | + ] |
| 108 | + }, |
| 109 | + "settings": { |
| 110 | + "react": { |
| 111 | + "version": "detect" |
| 112 | + } |
| 113 | + } |
| 114 | +} |
0 commit comments