@tanstack/eslint-plugin-query 5.17.22 → 5.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/eslint-plugin-query",
3
- "version": "5.17.22",
3
+ "version": "5.18.0",
4
4
  "description": "ESLint plugin for TanStack Query",
5
5
  "author": "Eliya Cohen",
6
6
  "license": "MIT",
@@ -364,13 +364,13 @@ ruleTester.run('exhaustive-deps', rule, {
364
364
  const CONST_VAL = 1
365
365
  function useHook() {
366
366
  const queryClient = useQueryClient()
367
- const kueryKlient = useQueryClient()
367
+ const queryClient2 = useQueryClient()
368
368
  useQuery({
369
369
  queryKey: ["foo"],
370
370
  queryFn: () => {
371
371
  doSomething(queryClient)
372
372
  queryClient.invalidateQueries()
373
- doSomethingSus(kueryKlient)
373
+ doSomethingSus(queryClient2)
374
374
  }
375
375
  });
376
376
  }
@@ -7,7 +7,7 @@ const ruleTester = new ESLintUtils.RuleTester({
7
7
  settings: {},
8
8
  })
9
9
 
10
- ruleTester.run('no-rest-desctructuring', rule, {
10
+ ruleTester.run('no-rest-destructuring', rule, {
11
11
  valid: [
12
12
  {
13
13
  name: 'useQuery is not captured',