TanStack / query

πŸ€– Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
https://tanstack.com/query
MIT License
42.72k stars 2.93k forks source link

fix(eslint-plugin-query): `expect-expect` warning for `expectArrayEqualIgnoreOrder` #8143

Closed saul-atomrigs closed 1 month ago

saul-atomrigs commented 1 month ago

Captura de pantalla 2024-10-08 a las 11 30 58 a β€―m

ESLint's expect-expect rule doesn't recognize that the expect function is being used indirectly via expectArrayEqualIgnoreOrder. This PR adds a global config to fix it.

nx-cloud[bot] commented 1 month ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 633c6653c0a8f3808dbbd2fbe65c1433dc92a196. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

πŸ“‚ See all runs for this CI Pipeline Execution


βœ… Successfully ran 2 targets - [`nx affected --targets=test:sherif,test:knip,test:eslint,test:lib,test:types,test:build,build --parallel=3`](https://cloud.nx.app/runs/LfBMsMgUlC?utm_source=pull-request&utm_medium=comment) - [`nx run-many --target=build --exclude=examples/** --exclude=integrations/**`](https://cloud.nx.app/runs/8fTkJTKpuy?utm_source=pull-request&utm_medium=comment)

Sent with πŸ’Œ from NxCloud.

pkg-pr-new[bot] commented 1 month ago

Open in Stackblitz

More templates

- [@tanstack/query-example-angular-basic](https://pkg.pr.new/template/de0e0583-06f3-4711-82ef-15f1678496c6) - [@tanstack/query-example-angular-infinite-query-with-max-pages](https://pkg.pr.new/template/aea8108a-ea87-4bce-8505-f456799137d7) - [@tanstack/query-example-angular-pagination](https://pkg.pr.new/template/f7761c74-99ab-4c44-96d9-1c74bf3fb905) - [@tanstack/query-example-angular-router](https://pkg.pr.new/template/0d99f2fb-cda4-44c5-9ddc-a886d5526fe9) - [@tanstack/query-example-angular-rxjs](https://pkg.pr.new/template/4c6b148c-e577-4bb9-b136-4c8d3d69a18d) - [@tanstack/query-example-angular-simple](https://pkg.pr.new/template/e774dfaf-c238-4c84-9d36-4980b7aa112c) - [@tanstack/query-example-solid-astro](https://pkg.pr.new/template/f881405c-2de9-46ff-a3b0-a95e9fb4a623) - [@tanstack/query-example-solid-basic](https://pkg.pr.new/template/c26a95a9-f818-4ea1-be31-718892bb7704) - [@tanstack/query-example-solid-basic-graphql-request](https://pkg.pr.new/template/fea53f7c-fbf2-4d16-91b5-a5044d4c87af) - [@tanstack/query-example-solid-default-query-function](https://pkg.pr.new/template/d2132050-3f2a-44ea-bec9-e8f8be8b5417) - [@tanstack/query-example-solid-simple](https://pkg.pr.new/template/a0b93ff7-bb62-414d-9c79-97b61b908c8e) - [@tanstack/query-example-solid-start-streaming](https://pkg.pr.new/template/11259a28-167a-4064-8270-e80c604ddf5a) - [@tanstack/query-example-react-algolia](https://pkg.pr.new/template/12953169-e3f6-489b-b9b0-7e179f41dc17) - [@tanstack/query-example-react-auto-refetching](https://pkg.pr.new/template/79e6e092-02e0-47ee-9733-6800f6431c63) - [@tanstack/query-example-react-basic](https://pkg.pr.new/template/7e0ab3ce-a4d4-418b-a5c4-cbc9265349be) - [@tanstack/query-example-react-basic-graphql-request](https://pkg.pr.new/template/3724e035-63fa-45f3-bc0c-6551cd6d62b0) - [@tanstack/query-example-react-default-query-function](https://pkg.pr.new/template/b4f60146-9f00-4eab-ac0f-ee532912ac9e) - [@tanstack/query-example-react-devtools-panel](https://pkg.pr.new/template/484c90dc-7029-4d2c-aec5-1a310137b72b) - [@tanstack/query-example-react-infinite-query-with-max-pages](https://pkg.pr.new/template/39370c3a-f787-46ef-a2b6-029df0afca18) - [@tanstack/query-example-react-load-more-infinite-scroll](https://pkg.pr.new/template/55949a07-69f2-43bf-b67b-8210f3a49298) - [@tanstack/query-example-react-nextjs](https://pkg.pr.new/template/5ff41446-ac6e-4a57-a6a4-b3aa65ddea2e) - [@tanstack/query-example-react-nextjs-app-prefetching](https://pkg.pr.new/template/e875fff4-7e7c-4bf6-b803-0770ed7f726a) - [@tanstack/query-example-nextjs-suspense-streaming](https://pkg.pr.new/template/79a0f946-5066-4904-97c4-f2168dc83c24) - [@tanstack/query-example-react-offline](https://pkg.pr.new/template/aa08de92-986a-4d67-a65e-ea90a2bf16c2) - [@tanstack/query-example-react-optimistic-updates-cache](https://pkg.pr.new/template/118e80c9-5bbd-42cc-8043-b9d12cc86a34) - [@tanstack/query-example-react-optimistic-updates-ui](https://pkg.pr.new/template/9e6874e9-b55e-4b7c-a84f-e0d58b946462) - [@tanstack/query-example-react-pagination](https://pkg.pr.new/template/55727d6e-0b9c-403c-8a28-863a85271877) - [@tanstack/query-example-react-playground](https://pkg.pr.new/template/5be3efc6-c16f-4bd3-994b-bee8a5172edc) - [@tanstack/query-example-react-prefetching](https://pkg.pr.new/template/9e59b70b-8ade-4d60-a756-a90afca6ec36) - [@tanstack/query-example-react-router](https://pkg.pr.new/template/3515fae3-a35d-4907-ae78-dae5d7d90123) - [@tanstack/query-example-react-react-native](https://pkg.pr.new/template/31aa9387-d9ae-4127-b00f-fcc0858d92f5) - [@tanstack/query-example-react-rick-morty](https://pkg.pr.new/template/2b624417-3bf8-4f6c-a213-e450a34e880b) - [@tanstack/query-example-react-shadow-dom](https://pkg.pr.new/template/9a7ef0da-7756-4056-8118-29290e9fe5c6) - [@tanstack/query-example-react-simple](https://pkg.pr.new/template/46d9379b-a1ee-41bc-84e6-8072675bd035) - [@tanstack/query-example-react-star-wars](https://pkg.pr.new/template/69552b19-66be-4a69-9d09-57dcd8ccb936) - [@tanstack/query-example-react-suspense](https://pkg.pr.new/template/61b8ac26-0e6b-4922-8ecc-d8a36b761bf4) - [@tanstack/query-example-svelte-auto-refetching](https://pkg.pr.new/template/a5695b9f-617a-4e28-b158-fa47184c3bdd) - [@tanstack/query-example-svelte-basic](https://pkg.pr.new/template/f5206100-1417-4580-9778-fb4f05c27b67) - [@tanstack/query-example-svelte-load-more-infinite-scroll](https://pkg.pr.new/template/f2b51db4-88b9-4c8d-b9f7-3861ceaabec2) - [@tanstack/query-example-svelte-optimistic-updates](https://pkg.pr.new/template/06539dea-1082-4680-9d33-0ff24649cf01) - [@tanstack/query-example-svelte-playground](https://pkg.pr.new/template/4b8e49a0-623e-44db-b6a7-e62054683ffa) - [@tanstack/query-example-svelte-simple](https://pkg.pr.new/template/142f7c54-f68f-4f53-b34d-4525bd5dba0f) - [@tanstack/query-example-svelte-ssr](https://pkg.pr.new/template/e2b6daaf-99ea-402f-a557-c5fea3f47427) - [@tanstack/query-example-svelte-star-wars](https://pkg.pr.new/template/ea2602f6-91d9-410c-90c0-7b8395a1d8f6) - [@tanstack/query-example-vue-2.7-basic](https://pkg.pr.new/template/f159f099-3efc-4128-aa53-a37e0d4c0949) - [@tanstack/query-example-vue-2.6-basic](https://pkg.pr.new/template/ff8dd7b3-3637-4b8c-817a-67302b7739dc) - [@tanstack/query-example-vue-basic](https://pkg.pr.new/template/081f304b-29ec-408d-97a4-fed7750b358f) - [@tanstack/query-example-vue-dependent-queries](https://pkg.pr.new/template/f516d063-8eee-44a3-a2e7-133e4d156676) - [@tanstack/query-example-vue-nuxt3](https://pkg.pr.new/template/dce8d9ee-633f-450b-8484-ede3b57b1dfd) - [@tanstack/query-example-vue-persister](https://pkg.pr.new/template/f1b7d582-2a40-4e5f-95e0-0949f407041b) - [@tanstack/query-example-vue-simple](https://pkg.pr.new/template/87ea6e76-6c3b-48e7-af7b-001e8d2c5b4a)

@tanstack/angular-query-devtools-experimental

``` pnpm add https://pkg.pr.new/@tanstack/angular-query-devtools-experimental@8143 ```

@tanstack/eslint-plugin-query

``` pnpm add https://pkg.pr.new/@tanstack/eslint-plugin-query@8143 ```

@tanstack/angular-query-experimental

``` pnpm add https://pkg.pr.new/@tanstack/angular-query-experimental@8143 ```

@tanstack/query-async-storage-persister

``` pnpm add https://pkg.pr.new/@tanstack/query-async-storage-persister@8143 ```

@tanstack/query-broadcast-client-experimental

``` pnpm add https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@8143 ```

@tanstack/query-core

``` pnpm add https://pkg.pr.new/@tanstack/query-core@8143 ```

@tanstack/query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/query-devtools@8143 ```

@tanstack/query-persist-client-core

``` pnpm add https://pkg.pr.new/@tanstack/query-persist-client-core@8143 ```

@tanstack/query-sync-storage-persister

``` pnpm add https://pkg.pr.new/@tanstack/query-sync-storage-persister@8143 ```

@tanstack/react-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/react-query-devtools@8143 ```

@tanstack/react-query

``` pnpm add https://pkg.pr.new/@tanstack/react-query@8143 ```

@tanstack/react-query-next-experimental

``` pnpm add https://pkg.pr.new/@tanstack/react-query-next-experimental@8143 ```

@tanstack/react-query-persist-client

``` pnpm add https://pkg.pr.new/@tanstack/react-query-persist-client@8143 ```

@tanstack/solid-query

``` pnpm add https://pkg.pr.new/@tanstack/solid-query@8143 ```

@tanstack/solid-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/solid-query-devtools@8143 ```

@tanstack/solid-query-persist-client

``` pnpm add https://pkg.pr.new/@tanstack/solid-query-persist-client@8143 ```

@tanstack/svelte-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/svelte-query-devtools@8143 ```

@tanstack/svelte-query

``` pnpm add https://pkg.pr.new/@tanstack/svelte-query@8143 ```

@tanstack/svelte-query-persist-client

``` pnpm add https://pkg.pr.new/@tanstack/svelte-query-persist-client@8143 ```

@tanstack/vue-query

``` pnpm add https://pkg.pr.new/@tanstack/vue-query@8143 ```

@tanstack/vue-query-devtools

``` pnpm add https://pkg.pr.new/@tanstack/vue-query-devtools@8143 ```

commit: 633c665

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.82%. Comparing base (495b086) to head (633c665). Report is 9 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/TanStack/query/pull/8143/graphs/tree.svg?width=650&height=150&src=pr&token=jqEbswkEDQ&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack)](https://app.codecov.io/gh/TanStack/query/pull/8143?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) ```diff @@ Coverage Diff @@ ## main #8143 +/- ## ========================================= + Coverage 0 87.82% +87.82% ========================================= Files 0 15 +15 Lines 0 493 +493 Branches 0 183 +183 ========================================= + Hits 0 433 +433 - Misses 0 46 +46 - Partials 0 14 +14 ``` | [Components](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | Coverage Ξ” | | |---|---|---| | [@tanstack/angular-query-devtools-experimental](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/angular-query-experimental](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/eslint-plugin-query](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `87.82% <ΓΈ> (βˆ…)` | | | [@tanstack/query-async-storage-persister](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-broadcast-client-experimental](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-codemods](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-core](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-persist-client-core](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/query-sync-storage-persister](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/react-query](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/react-query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/react-query-next-experimental](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/react-query-persist-client](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/solid-query](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/solid-query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/solid-query-persist-client](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/svelte-query](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/svelte-query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/svelte-query-persist-client](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/vue-query](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | | | [@tanstack/vue-query-devtools](https://app.codecov.io/gh/TanStack/query/pull/8143/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=TanStack) | `βˆ… <ΓΈ> (βˆ…)` | |