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
{{ message }}
This repository was archived by the owner on Apr 12, 2026. It is now read-only.
|[use-query-no-inline-query](docs/rules/use-query-no-inline-query.md)|Enforces useQuery (and family) hooks use some form of query constructor pattern. Will error if queryKey or queryFn properties are passed to the hook| ✅ |
Copy file name to clipboardExpand all lines: docs/rules/use-query-no-inline-query.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Enforce use*Query functions are called with a queryOptions pattern(`react-query-options/require-query-options`)
1
+
# Enforces useQuery (and family) hooks use some form of query constructor pattern. Will error if queryKey or queryFn properties are passed to the hook (`react-query-options/use-query-no-inline-query`)
2
2
3
3
💼 This rule is enabled in the ✅ `recommended` config.
"no-inline-query": "Expected query hook to use queryOptions pattern",
50
+
},
51
+
docs: {
52
+
description:
53
+
"Enforces useQuery (and family) hooks use some form of query constructor pattern. Will error if queryKey or queryFn properties are passed to the hook",
0 commit comments