@tanstack/eslint-plugin-query 5.53.0 → 5.56.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.
@@ -1,7 +1,6 @@
1
1
  import { rules } from './rules.cjs';
2
2
  import { ESLint, Linter } from 'eslint';
3
3
  import { RuleModule } from '@typescript-eslint/utils/ts-eslint';
4
-
5
4
  type RuleKey = keyof typeof rules;
6
5
  interface Plugin extends Omit<ESLint.Plugin, 'rules'> {
7
6
  rules: Record<RuleKey, RuleModule<any, any, any>>;
@@ -1,5 +1,4 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from '../../types';
3
-
4
3
  export declare const name = "exhaustive-deps";
5
4
  export declare const rule: ESLintUtils.RuleModule<string, readonly unknown[], ExtraRuleDocs, ESLintUtils.RuleListener>;
@@ -1,5 +1,4 @@
1
1
  import { TSESLint, TSESTree } from '@typescript-eslint/utils';
2
-
3
2
  export declare const ExhaustiveDepsUtils: {
4
3
  isRelevantReference(params: {
5
4
  sourceCode: Readonly<TSESLint.SourceCode>;
@@ -1,5 +1,4 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from '../../types';
3
-
4
3
  export declare const name = "no-rest-destructuring";
5
4
  export declare const rule: ESLintUtils.RuleModule<string, readonly unknown[], ExtraRuleDocs, ESLintUtils.RuleListener>;
@@ -1,5 +1,4 @@
1
1
  import { TSESTree } from '@typescript-eslint/utils';
2
-
3
2
  export declare const NoRestDestructuringUtils: {
4
3
  isObjectRestDestructuring(node: TSESTree.Node): boolean;
5
4
  };
@@ -1,6 +1,5 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from '../../types';
3
-
4
3
  export declare const name = "no-unstable-deps";
5
4
  export declare const reactHookNames: string[];
6
5
  export declare const useQueryHookNames: string[];
@@ -1,5 +1,4 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from '../../types';
3
-
4
3
  export declare const name = "stable-query-client";
5
4
  export declare const rule: ESLintUtils.RuleModule<string, readonly unknown[], ExtraRuleDocs, ESLintUtils.RuleListener>;
@@ -1,4 +1,3 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from './types.cjs';
3
-
4
3
  export declare const rules: Record<string, ESLintUtils.RuleModule<string, ReadonlyArray<unknown>, ExtraRuleDocs, ESLintUtils.RuleListener>>;
@@ -1,5 +1,4 @@
1
1
  import { AST_NODE_TYPES, TSESLint, TSESTree } from '@typescript-eslint/utils';
2
-
3
2
  export declare const ASTUtils: {
4
3
  isNodeOfOneOf<T extends AST_NODE_TYPES>(node: TSESTree.Node, types: readonly T[]): node is TSESTree.Node & {
5
4
  type: T;
@@ -1,5 +1,4 @@
1
1
  import { TSESTree, ESLintUtils } from '@typescript-eslint/utils';
2
-
3
2
  type Create = Parameters<ReturnType<typeof ESLintUtils.RuleCreator>>[0]['create'];
4
3
  type Context = Parameters<Create>[0];
5
4
  type Options = Parameters<Create>[1];
@@ -1,7 +1,6 @@
1
1
  import { rules } from './rules.js';
2
2
  import { ESLint, Linter } from 'eslint';
3
3
  import { RuleModule } from '@typescript-eslint/utils/ts-eslint';
4
-
5
4
  type RuleKey = keyof typeof rules;
6
5
  interface Plugin extends Omit<ESLint.Plugin, 'rules'> {
7
6
  rules: Record<RuleKey, RuleModule<any, any, any>>;
@@ -1,5 +1,4 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from '../../types';
3
-
4
3
  export declare const name = "exhaustive-deps";
5
4
  export declare const rule: ESLintUtils.RuleModule<string, readonly unknown[], ExtraRuleDocs, ESLintUtils.RuleListener>;
@@ -1,5 +1,4 @@
1
1
  import { TSESLint, TSESTree } from '@typescript-eslint/utils';
2
-
3
2
  export declare const ExhaustiveDepsUtils: {
4
3
  isRelevantReference(params: {
5
4
  sourceCode: Readonly<TSESLint.SourceCode>;
@@ -1,5 +1,4 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from '../../types';
3
-
4
3
  export declare const name = "no-rest-destructuring";
5
4
  export declare const rule: ESLintUtils.RuleModule<string, readonly unknown[], ExtraRuleDocs, ESLintUtils.RuleListener>;
@@ -1,5 +1,4 @@
1
1
  import { TSESTree } from '@typescript-eslint/utils';
2
-
3
2
  export declare const NoRestDestructuringUtils: {
4
3
  isObjectRestDestructuring(node: TSESTree.Node): boolean;
5
4
  };
@@ -1,6 +1,5 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from '../../types';
3
-
4
3
  export declare const name = "no-unstable-deps";
5
4
  export declare const reactHookNames: string[];
6
5
  export declare const useQueryHookNames: string[];
@@ -1,5 +1,4 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from '../../types';
3
-
4
3
  export declare const name = "stable-query-client";
5
4
  export declare const rule: ESLintUtils.RuleModule<string, readonly unknown[], ExtraRuleDocs, ESLintUtils.RuleListener>;
@@ -1,4 +1,3 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import { ExtraRuleDocs } from './types.js';
3
-
4
3
  export declare const rules: Record<string, ESLintUtils.RuleModule<string, ReadonlyArray<unknown>, ExtraRuleDocs, ESLintUtils.RuleListener>>;
@@ -1,5 +1,4 @@
1
1
  import { AST_NODE_TYPES, TSESLint, TSESTree } from '@typescript-eslint/utils';
2
-
3
2
  export declare const ASTUtils: {
4
3
  isNodeOfOneOf<T extends AST_NODE_TYPES>(node: TSESTree.Node, types: readonly T[]): node is TSESTree.Node & {
5
4
  type: T;
@@ -1,5 +1,4 @@
1
1
  import { TSESTree, ESLintUtils } from '@typescript-eslint/utils';
2
-
3
2
  type Create = Parameters<ReturnType<typeof ESLintUtils.RuleCreator>>[0]['create'];
4
3
  type Context = Parameters<Create>[0];
5
4
  type Options = Parameters<Create>[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/eslint-plugin-query",
3
- "version": "5.53.0",
3
+ "version": "5.56.1",
4
4
  "description": "ESLint plugin for TanStack Query",
5
5
  "author": "Eliya Cohen",
6
6
  "license": "MIT",