oxlint-config-awesomeness 3.2.0 → 3.2.1

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.
Files changed (2) hide show
  1. package/index.js +9 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -762,7 +762,15 @@ export default defineConfig({
762
762
 
763
763
  // TanStack Query.
764
764
  "react-doctor/query-destructure-result": "error",
765
- "react-doctor/query-mutation-missing-invalidation": "warn",
765
+ // Off: the plugin's 0.5.x check only scans the `useMutation` options object
766
+ // literal for a `queryClient.invalidateQueries`-style call, so extracting the
767
+ // invalidation into a named hook (`onSuccess: invalidateWallets`) reports as
768
+ // missing even though the cache is invalidated. That extraction is the
769
+ // idiomatic React Query pattern, and the rule cannot follow any indirection,
770
+ // so it fires on correct code and stays silent on the real bug (a mismatched
771
+ // queryKey). oxlint-plugin-react-doctor 0.9.x resolves the callback through
772
+ // scope; re-enable when this config moves off 0.5.x.
773
+ "react-doctor/query-mutation-missing-invalidation": "off",
766
774
  "react-doctor/query-no-query-in-effect": "warn",
767
775
  "react-doctor/query-no-rest-destructuring": "warn",
768
776
  "react-doctor/query-no-usequery-for-mutation": "warn",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-config-awesomeness",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Oxlint config with sensible defaults.",
5
5
  "keywords": [
6
6
  "autofix",