|
1 | 1 | { |
2 | 2 | "root": true, |
| 3 | + "extends": "@react-native-community", |
3 | 4 | "parser": "@typescript-eslint/parser", |
4 | | - "parserOptions": { |
5 | | - "project": [ |
6 | | - "./src/tsconfig.json" |
7 | | - ] |
| 5 | + "plugins": ["@typescript-eslint"], |
| 6 | + "globals": { |
| 7 | + "localStorage": false |
8 | 8 | }, |
9 | | - "plugins": [ |
10 | | - "@typescript-eslint", |
11 | | - "prettier", |
12 | | - "no-null" |
13 | | - ], |
14 | | - "extends": [ |
15 | | - "@react-native-community", |
16 | | - "standard-with-typescript", |
17 | | - "prettier", |
18 | | - "prettier/@typescript-eslint", |
19 | | - "prettier/standard" |
20 | | - ], |
21 | 9 | "rules": { |
22 | | - "no-param-reassign": "error", |
| 10 | + "semi": "off", |
| 11 | + "@typescript-eslint/semi": ["error"], |
23 | 12 | "no-shadow": "off", |
24 | | - "prettier/prettier": "warn", |
| 13 | + "@typescript-eslint/no-shadow": "error", |
| 14 | + "@typescript-eslint/no-unused-vars": "error", |
| 15 | + "react-hooks/rules-of-hooks": "error", |
| 16 | + "react-hooks/exhaustive-deps": "warn", |
| 17 | + "no-console": 0, |
| 18 | + "no-empty": ["error", { "allowEmptyCatch": true }], |
| 19 | + "no-buffer-constructor": 0, |
| 20 | + "no-case-declarations": 0, |
| 21 | + "no-useless-escape": 0, |
| 22 | + "react/jsx-no-duplicate-props": [2, { "ignoreCase": true }], |
| 23 | + "react-native/no-unused-styles": 1, |
| 24 | + "react-native/no-raw-text": 0, |
| 25 | + "react/jsx-equals-spacing": [2, "never"], |
| 26 | + "react/no-unsafe": [2, { "checkAliases": true }], |
| 27 | + "react/jsx-curly-spacing": [ |
| 28 | + 2, |
| 29 | + { |
| 30 | + "when": "never", |
| 31 | + "attributes": { "allowMultiline": true }, |
| 32 | + "children": true |
| 33 | + } |
| 34 | + ], |
25 | 35 | "indent": [ |
26 | 36 | 2, |
27 | 37 | "tab", |
28 | 38 | { "SwitchCase": 1, "ignoredNodes": ["ConditionalExpression"] } |
29 | 39 | ], |
30 | | - "no-null/no-null": "error", |
31 | | - "@typescript-eslint/ban-types": ["error", { "types": { "null": null } }], |
32 | | - "@typescript-eslint/no-explicit-any": "error", |
33 | | - "@typescript-eslint/no-non-null-assertion": "error", |
34 | | - "@typescript-eslint/ban-ts-comment": "error", |
35 | | - "@typescript-eslint/switch-exhaustiveness-check": "error", |
36 | | - "@typescript-eslint/consistent-type-definitions": ["error", "type"], |
37 | | - "@typescript-eslint/explicit-function-return-type": "error", |
38 | | - "@typescript-eslint/no-unused-vars": "warn", |
39 | | - "@typescript-eslint/strict-boolean-expressions": "off", |
40 | | - "@typescript-eslint/restrict-template-expressions": "off" |
| 40 | + "object-curly-spacing": [ |
| 41 | + "error", |
| 42 | + "always", |
| 43 | + { |
| 44 | + "objectsInObjects": true |
| 45 | + } |
| 46 | + ], |
| 47 | + "react/jsx-uses-vars": 2, |
| 48 | + "react/jsx-wrap-multilines": 2, |
| 49 | + "react/jsx-tag-spacing": [ |
| 50 | + 2, |
| 51 | + { |
| 52 | + "closingSlash": "never", |
| 53 | + "beforeSelfClosing": "always", |
| 54 | + "afterOpening": "never", |
| 55 | + "beforeClosing": "never" |
| 56 | + } |
| 57 | + ], |
| 58 | + "react/jsx-indent": [2, "tab", { "indentLogicalExpressions": false }], |
| 59 | + "react/jsx-child-element-spacing": 2, |
| 60 | + "react/no-unused-prop-types": 2, |
| 61 | + "react/prop-types": 0, |
| 62 | + "no-undef": 0, |
| 63 | + "react/display-name": 0, |
| 64 | + "require-atomic-updates": 0, |
| 65 | + "no-async-promise-executor": 0, |
| 66 | + "brace-style": [2, "1tbs", { "allowSingleLine": true }], |
| 67 | + "@typescript-eslint/explicit-function-return-type": "warn", |
| 68 | + "jest/no-disabled-tests": 0 |
41 | 69 | } |
42 | 70 | } |
0 commit comments