You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helps avoid foot guns / re-rendering issues / bad habits with react-query
Fixes the existing lint errors/warnings we had with react-query or makes notes on them
Copy file name to clipboardExpand all lines: App.tsx
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,7 @@ LogBox.ignoreLogs([
55
55
'event="noNetwork',// ethers
56
56
"[Reanimated] Reading from `value` during component render. Please ensure that you do not access the `value` property or use `get` method of a shared value while React is rendering a component.",
57
57
"Attempted to import the module",
58
+
"Falling back to file-based resolution. Consider updating the call site or asking the package maintainer(s) to expose this API",
58
59
"Couldn't find real values for `KeyboardContext`. Please make sure you're inside of `KeyboardProvider` - otherwise functionality of `react-native-keyboard-controller` will not work. [Component Stack]",
59
60
"sync worker error storage error: Pool needs to reconnect before use",
60
61
"[Converse.debug.dylib] sync worker error storage error: Pool needs to reconnect before use",
// While eslint-plugin-react-native fix to handle eslint flat config (https://github.com/Intellicode/eslint-plugin-react-native/issues/333#issuecomment-2150582430)
"Please use module aliases (e.g., @design-system/) instead of relative paths when going up more than one directory",
58
-
},
59
-
],
60
-
},
61
-
],
36
+
"@tanstack/query/exhaustive-deps": "error",
37
+
"@tanstack/query/no-rest-destructuring": "warn",
38
+
"@tanstack/query/stable-query-client": "error",
39
+
"@tanstack/query/no-unstable-deps": "warn",
62
40
63
-
"react-hooks/exhaustive-deps": "error",
64
-
"react-hooks/rules-of-hooks": "error",
41
+
"import/no-unresolved": "off",
42
+
"import/no-relative-parent-imports": "off",
43
+
"import/no-default-export": "warn",
44
+
"import/order": "off",
65
45
66
-
"react-native/no-raw-text": "off",// We have so many Text wrapper components... and eslint doesn't know that OnboardingTitleSubtitle.Title is a Text component
67
-
"react-native/no-color-literals": "warn",// We need to use the colors in theme!
68
-
"react-native/sort-styles": "off",// Not needed
69
-
"react-native/no-unused-styles": "off",// Because it's giving warning for styles we use in useStyles hook even though they are used
70
-
"react-native/no-inline-styles": "warn",
46
+
"no-restricted-imports": [
47
+
"error",
48
+
{
49
+
paths: [
50
+
{
51
+
name: "i18n-js",
52
+
message: "Use @i18n app module instead.",
53
+
},
54
+
],
55
+
},
56
+
],
71
57
72
-
"react/no-unescaped-entities": "off",// Not needed
73
-
"react/prop-types": "off",// Disable since we use TypeScript
74
-
"react/display-name": "off",// Not needed
75
-
"react/react-in-jsx-scope": "off",// Disable since we use React 18
0 commit comments