|
1 | 1 | { |
| 2 | + "root": true, |
2 | 3 | "extends": [ |
3 | 4 | "plugin:@typescript-eslint/recommended", |
4 | 5 | "plugin:@typescript-eslint/recommended-requiring-type-checking", |
|
15 | 16 | "project": ["./tsconfig.json"] |
16 | 17 | }, |
17 | 18 | "env": { "browser": true, "node": true, "jest/globals": true }, |
18 | | - "plugins": ["jest"], |
| 19 | + "plugins": ["react", "jest"], |
19 | 20 | "ignorePatterns": ["packages/react-native-gesture-handler/lib/**/*"], |
20 | 21 | "rules": { |
21 | 22 | // removed in new jest-eslint-plugin, referenced in satya config |
|
26 | 27 | "warn", |
27 | 28 | { "assertFunctionNames": ["expect*", "assert*"] } |
28 | 29 | ], |
| 30 | + "jest/no-conditional-expect": "warn", |
| 31 | + |
29 | 32 | // temporary, remove after we type internals better |
30 | 33 | "@typescript-eslint/restrict-template-expressions": "warn", |
31 | 34 | "@typescript-eslint/no-unsafe-member-access": "warn", |
32 | 35 | "@typescript-eslint/no-unsafe-call": "warn", |
33 | 36 | "@typescript-eslint/no-unsafe-assignment": "warn", |
| 37 | + "@typescript-eslint/no-unsafe-argument": "warn", |
34 | 38 | "@typescript-eslint/no-unsafe-return": "warn", |
| 39 | + "@typescript-eslint/no-non-null-assertion": "warn", |
35 | 40 | "@typescript-eslint/ban-types": "warn", |
36 | 41 |
|
37 | 42 | // common |
38 | 43 | "@typescript-eslint/explicit-module-boundary-types": "off", |
39 | 44 | "import/named": "off", |
40 | 45 | "react/sort-comp": "off", |
41 | 46 | "react/no-unused-prop-types": "warn", |
| 47 | + "react-hooks/exhaustive-deps": "warn", |
| 48 | + "@typescript-eslint/no-floating-promises": "warn", |
| 49 | + "@eslint-react/no-missing-component-display-name": "warn", |
| 50 | + "@eslint-react/no-nested-components": "warn", |
| 51 | + "@eslint-react/no-nested-component-definitions": "warn", |
42 | 52 | "prefer-const": [ |
43 | 53 | "error", |
44 | 54 | { |
|
49 | 59 | "error", |
50 | 60 | { "argsIgnorePattern": "^_" } |
51 | 61 | ], |
| 62 | + "@typescript-eslint/no-explicit-any": "warn", |
| 63 | + "@typescript-eslint/no-redundant-type-constituents": "warn", |
| 64 | + "@typescript-eslint/no-empty-function": "error", |
| 65 | + "@typescript-eslint/no-misused-promises": "warn", |
| 66 | + "@eslint-react/no-array-index-key": "warn", |
| 67 | + "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn", |
| 68 | + "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn", |
52 | 69 | "no-redeclare": "off", |
53 | 70 | "@typescript-eslint/no-redeclare": "error", |
54 | 71 | "no-use-before-define": "off", |
|
61 | 78 | } |
62 | 79 | ], |
63 | 80 | "curly": "error", |
64 | | - "spaced-comment": "error" |
| 81 | + "spaced-comment": "error", |
| 82 | + "no-alert": "warn" |
65 | 83 | } |
66 | 84 | } |
0 commit comments