@tanstack/eslint-plugin-query 5.96.0 → 5.96.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.
@@ -2,7 +2,6 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils';
2
2
  import type { ESLint } from 'eslint';
3
3
  import { ESLintUtils } from '@typescript-eslint/utils';
4
4
  import type { Linter } from 'eslint';
5
- import { Options as Options_2 } from 'tsup';
6
5
  import { RuleListener } from '@typescript-eslint/utils/ts-eslint';
7
6
  import { RuleModule } from '@typescript-eslint/utils/ts-eslint';
8
7
  import type { TSESLint } from '@typescript-eslint/utils';
@@ -45,12 +44,8 @@ export declare const ASTUtils: {
45
44
  getNestedReturnStatements(node: TSESTree.Node): Array<TSESTree.ReturnStatement>;
46
45
  };
47
46
 
48
- declare type CheckedProperties = (typeof checkedProperties)[number];
49
-
50
47
  export declare const checkedProperties: readonly ["queryFn", "getPreviousPageParam", "getNextPageParam"];
51
48
 
52
- declare type CheckedProperties_2 = (typeof checkedProperties_alias_1)[number];
53
-
54
49
  export declare const checkedProperties_alias_1: readonly ["onMutate", "onError", "onSettled"];
55
50
 
56
51
  declare type Context = Parameters<Create>[0];
@@ -65,14 +60,6 @@ declare const createRule: <Options extends readonly unknown[], MessageIds extend
65
60
  name: string;
66
61
  };
67
62
 
68
- export declare const default_alias_1: any[];
69
-
70
- export declare const default_alias_2: any[];
71
-
72
- export declare const default_alias_3: Options_2 | Options_2[] | ((overrideOptions: Options_2) => Options_2 | Options_2[] | Promise<Options_2 | Options_2[]>);
73
-
74
- export declare const default_alias_4: Record<string, any>;
75
-
76
63
  export declare function detectTanstackQueryImports(create: EnhancedCreate): Create;
77
64
 
78
65
  declare type EnhancedCreate = (context: Context, options: Options, helpers: Helpers) => ReturnType<Create>;
@@ -153,28 +140,10 @@ export declare const ExhaustiveDepsUtils: {
153
140
  getQueryFnNodes(queryFn: TSESTree.Property): Array<TSESTree.Node>;
154
141
  };
155
142
 
156
- export declare function expectArrayEqualIgnoreOrder<T>(a: Array<T>, b: Array<T>): void;
157
-
158
143
  export declare type ExtraRuleDocs = {
159
144
  recommended: 'strict' | 'error' | 'warn';
160
145
  };
161
146
 
162
- export declare function generateInterleavedCombinations<TData, TAdditional, TResult extends TData | TAdditional>(data: Array<TData> | ReadonlyArray<TData>, additional: Array<TAdditional> | ReadonlyArray<TAdditional>): Array<Array<TResult>>;
163
-
164
- export declare function generateInvalidPermutations(arr: ReadonlyArray<CheckedProperties>): Array<{
165
- invalid: Array<CheckedProperties>;
166
- valid: Array<CheckedProperties>;
167
- }>;
168
-
169
- export declare function generateInvalidPermutations_alias_1(arr: ReadonlyArray<CheckedProperties_2>): Array<{
170
- invalid: Array<CheckedProperties_2>;
171
- valid: Array<CheckedProperties_2>;
172
- }>;
173
-
174
- export declare function generatePartialCombinations<T>(arr: ReadonlyArray<T>, minLength: number): Array<Array<T>>;
175
-
176
- export declare function generatePermutations<T>(arr: Array<T>): Array<Array<T>>;
177
-
178
147
  export declare const getDocsUrl: (ruleName: string) => string;
179
148
 
180
149
  declare type Helpers = {
@@ -188,24 +157,6 @@ export declare const infiniteQueryFunctions: readonly ["infiniteQueryOptions", "
188
157
 
189
158
  export declare type InfiniteQueryProperties = (typeof checkedProperties)[number];
190
159
 
191
- /**
192
- * @param {Object} opts - Options for building configurations.
193
- * @param {string[]} opts.entry - The entry array.
194
- * @returns {import('tsup').Options}
195
- */
196
- export declare function legacyConfig(opts: {
197
- entry: string[];
198
- }): Options_2;
199
-
200
- /**
201
- * @param {Object} opts - Options for building configurations.
202
- * @param {string[]} opts.entry - The entry array.
203
- * @returns {import('tsup').Options}
204
- */
205
- export declare function modernConfig(opts: {
206
- entry: string[];
207
- }): Options_2;
208
-
209
160
  export declare type MutationFunctions = (typeof mutationFunctions)[number];
210
161
 
211
162
  export declare const mutationFunctions: readonly ["useMutation"];
@@ -233,8 +184,6 @@ export declare const NoRestDestructuringUtils: {
233
184
  isObjectRestDestructuring(node: TSESTree.Node): boolean;
234
185
  };
235
186
 
236
- export declare function normalizeIndent(template: TemplateStringsArray): string;
237
-
238
187
  declare type Options = Parameters<Create>[1];
239
188
 
240
189
  declare const plugin: {
@@ -2,7 +2,6 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils';
2
2
  import type { ESLint } from 'eslint';
3
3
  import { ESLintUtils } from '@typescript-eslint/utils';
4
4
  import type { Linter } from 'eslint';
5
- import { Options as Options_2 } from 'tsup';
6
5
  import { RuleListener } from '@typescript-eslint/utils/ts-eslint';
7
6
  import { RuleModule } from '@typescript-eslint/utils/ts-eslint';
8
7
  import type { TSESLint } from '@typescript-eslint/utils';
@@ -45,12 +44,8 @@ export declare const ASTUtils: {
45
44
  getNestedReturnStatements(node: TSESTree.Node): Array<TSESTree.ReturnStatement>;
46
45
  };
47
46
 
48
- declare type CheckedProperties = (typeof checkedProperties)[number];
49
-
50
47
  export declare const checkedProperties: readonly ["queryFn", "getPreviousPageParam", "getNextPageParam"];
51
48
 
52
- declare type CheckedProperties_2 = (typeof checkedProperties_alias_1)[number];
53
-
54
49
  export declare const checkedProperties_alias_1: readonly ["onMutate", "onError", "onSettled"];
55
50
 
56
51
  declare type Context = Parameters<Create>[0];
@@ -65,14 +60,6 @@ declare const createRule: <Options extends readonly unknown[], MessageIds extend
65
60
  name: string;
66
61
  };
67
62
 
68
- export declare const default_alias_1: any[];
69
-
70
- export declare const default_alias_2: any[];
71
-
72
- export declare const default_alias_3: Options_2 | Options_2[] | ((overrideOptions: Options_2) => Options_2 | Options_2[] | Promise<Options_2 | Options_2[]>);
73
-
74
- export declare const default_alias_4: Record<string, any>;
75
-
76
63
  export declare function detectTanstackQueryImports(create: EnhancedCreate): Create;
77
64
 
78
65
  declare type EnhancedCreate = (context: Context, options: Options, helpers: Helpers) => ReturnType<Create>;
@@ -153,28 +140,10 @@ export declare const ExhaustiveDepsUtils: {
153
140
  getQueryFnNodes(queryFn: TSESTree.Property): Array<TSESTree.Node>;
154
141
  };
155
142
 
156
- export declare function expectArrayEqualIgnoreOrder<T>(a: Array<T>, b: Array<T>): void;
157
-
158
143
  export declare type ExtraRuleDocs = {
159
144
  recommended: 'strict' | 'error' | 'warn';
160
145
  };
161
146
 
162
- export declare function generateInterleavedCombinations<TData, TAdditional, TResult extends TData | TAdditional>(data: Array<TData> | ReadonlyArray<TData>, additional: Array<TAdditional> | ReadonlyArray<TAdditional>): Array<Array<TResult>>;
163
-
164
- export declare function generateInvalidPermutations(arr: ReadonlyArray<CheckedProperties>): Array<{
165
- invalid: Array<CheckedProperties>;
166
- valid: Array<CheckedProperties>;
167
- }>;
168
-
169
- export declare function generateInvalidPermutations_alias_1(arr: ReadonlyArray<CheckedProperties_2>): Array<{
170
- invalid: Array<CheckedProperties_2>;
171
- valid: Array<CheckedProperties_2>;
172
- }>;
173
-
174
- export declare function generatePartialCombinations<T>(arr: ReadonlyArray<T>, minLength: number): Array<Array<T>>;
175
-
176
- export declare function generatePermutations<T>(arr: Array<T>): Array<Array<T>>;
177
-
178
147
  export declare const getDocsUrl: (ruleName: string) => string;
179
148
 
180
149
  declare type Helpers = {
@@ -188,24 +157,6 @@ export declare const infiniteQueryFunctions: readonly ["infiniteQueryOptions", "
188
157
 
189
158
  export declare type InfiniteQueryProperties = (typeof checkedProperties)[number];
190
159
 
191
- /**
192
- * @param {Object} opts - Options for building configurations.
193
- * @param {string[]} opts.entry - The entry array.
194
- * @returns {import('tsup').Options}
195
- */
196
- export declare function legacyConfig(opts: {
197
- entry: string[];
198
- }): Options_2;
199
-
200
- /**
201
- * @param {Object} opts - Options for building configurations.
202
- * @param {string[]} opts.entry - The entry array.
203
- * @returns {import('tsup').Options}
204
- */
205
- export declare function modernConfig(opts: {
206
- entry: string[];
207
- }): Options_2;
208
-
209
160
  export declare type MutationFunctions = (typeof mutationFunctions)[number];
210
161
 
211
162
  export declare const mutationFunctions: readonly ["useMutation"];
@@ -233,8 +184,6 @@ export declare const NoRestDestructuringUtils: {
233
184
  isObjectRestDestructuring(node: TSESTree.Node): boolean;
234
185
  };
235
186
 
236
- export declare function normalizeIndent(template: TemplateStringsArray): string;
237
-
238
187
  declare type Options = Parameters<Create>[1];
239
188
 
240
189
  declare const plugin: {
@@ -2,7 +2,6 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils';
2
2
  import type { ESLint } from 'eslint';
3
3
  import { ESLintUtils } from '@typescript-eslint/utils';
4
4
  import type { Linter } from 'eslint';
5
- import { Options as Options_2 } from 'tsup';
6
5
  import { RuleListener } from '@typescript-eslint/utils/ts-eslint';
7
6
  import { RuleModule } from '@typescript-eslint/utils/ts-eslint';
8
7
  import type { TSESLint } from '@typescript-eslint/utils';
@@ -45,12 +44,8 @@ export declare const ASTUtils: {
45
44
  getNestedReturnStatements(node: TSESTree.Node): Array<TSESTree.ReturnStatement>;
46
45
  };
47
46
 
48
- declare type CheckedProperties = (typeof checkedProperties)[number];
49
-
50
47
  export declare const checkedProperties: readonly ["queryFn", "getPreviousPageParam", "getNextPageParam"];
51
48
 
52
- declare type CheckedProperties_2 = (typeof checkedProperties_alias_1)[number];
53
-
54
49
  export declare const checkedProperties_alias_1: readonly ["onMutate", "onError", "onSettled"];
55
50
 
56
51
  declare type Context = Parameters<Create>[0];
@@ -65,14 +60,6 @@ declare const createRule: <Options extends readonly unknown[], MessageIds extend
65
60
  name: string;
66
61
  };
67
62
 
68
- export declare const default_alias_1: any[];
69
-
70
- export declare const default_alias_2: any[];
71
-
72
- export declare const default_alias_3: Options_2 | Options_2[] | ((overrideOptions: Options_2) => Options_2 | Options_2[] | Promise<Options_2 | Options_2[]>);
73
-
74
- export declare const default_alias_4: Record<string, any>;
75
-
76
63
  export declare function detectTanstackQueryImports(create: EnhancedCreate): Create;
77
64
 
78
65
  declare type EnhancedCreate = (context: Context, options: Options, helpers: Helpers) => ReturnType<Create>;
@@ -153,28 +140,10 @@ export declare const ExhaustiveDepsUtils: {
153
140
  getQueryFnNodes(queryFn: TSESTree.Property): Array<TSESTree.Node>;
154
141
  };
155
142
 
156
- export declare function expectArrayEqualIgnoreOrder<T>(a: Array<T>, b: Array<T>): void;
157
-
158
143
  export declare type ExtraRuleDocs = {
159
144
  recommended: 'strict' | 'error' | 'warn';
160
145
  };
161
146
 
162
- export declare function generateInterleavedCombinations<TData, TAdditional, TResult extends TData | TAdditional>(data: Array<TData> | ReadonlyArray<TData>, additional: Array<TAdditional> | ReadonlyArray<TAdditional>): Array<Array<TResult>>;
163
-
164
- export declare function generateInvalidPermutations(arr: ReadonlyArray<CheckedProperties>): Array<{
165
- invalid: Array<CheckedProperties>;
166
- valid: Array<CheckedProperties>;
167
- }>;
168
-
169
- export declare function generateInvalidPermutations_alias_1(arr: ReadonlyArray<CheckedProperties_2>): Array<{
170
- invalid: Array<CheckedProperties_2>;
171
- valid: Array<CheckedProperties_2>;
172
- }>;
173
-
174
- export declare function generatePartialCombinations<T>(arr: ReadonlyArray<T>, minLength: number): Array<Array<T>>;
175
-
176
- export declare function generatePermutations<T>(arr: Array<T>): Array<Array<T>>;
177
-
178
147
  export declare const getDocsUrl: (ruleName: string) => string;
179
148
 
180
149
  declare type Helpers = {
@@ -188,24 +157,6 @@ export declare const infiniteQueryFunctions: readonly ["infiniteQueryOptions", "
188
157
 
189
158
  export declare type InfiniteQueryProperties = (typeof checkedProperties)[number];
190
159
 
191
- /**
192
- * @param {Object} opts - Options for building configurations.
193
- * @param {string[]} opts.entry - The entry array.
194
- * @returns {import('tsup').Options}
195
- */
196
- export declare function legacyConfig(opts: {
197
- entry: string[];
198
- }): Options_2;
199
-
200
- /**
201
- * @param {Object} opts - Options for building configurations.
202
- * @param {string[]} opts.entry - The entry array.
203
- * @returns {import('tsup').Options}
204
- */
205
- export declare function modernConfig(opts: {
206
- entry: string[];
207
- }): Options_2;
208
-
209
160
  export declare type MutationFunctions = (typeof mutationFunctions)[number];
210
161
 
211
162
  export declare const mutationFunctions: readonly ["useMutation"];
@@ -233,8 +184,6 @@ export declare const NoRestDestructuringUtils: {
233
184
  isObjectRestDestructuring(node: TSESTree.Node): boolean;
234
185
  };
235
186
 
236
- export declare function normalizeIndent(template: TemplateStringsArray): string;
237
-
238
187
  declare type Options = Parameters<Create>[1];
239
188
 
240
189
  declare const plugin: {
@@ -2,7 +2,6 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils';
2
2
  import type { ESLint } from 'eslint';
3
3
  import { ESLintUtils } from '@typescript-eslint/utils';
4
4
  import type { Linter } from 'eslint';
5
- import { Options as Options_2 } from 'tsup';
6
5
  import { RuleListener } from '@typescript-eslint/utils/ts-eslint';
7
6
  import { RuleModule } from '@typescript-eslint/utils/ts-eslint';
8
7
  import type { TSESLint } from '@typescript-eslint/utils';
@@ -45,12 +44,8 @@ export declare const ASTUtils: {
45
44
  getNestedReturnStatements(node: TSESTree.Node): Array<TSESTree.ReturnStatement>;
46
45
  };
47
46
 
48
- declare type CheckedProperties = (typeof checkedProperties)[number];
49
-
50
47
  export declare const checkedProperties: readonly ["queryFn", "getPreviousPageParam", "getNextPageParam"];
51
48
 
52
- declare type CheckedProperties_2 = (typeof checkedProperties_alias_1)[number];
53
-
54
49
  export declare const checkedProperties_alias_1: readonly ["onMutate", "onError", "onSettled"];
55
50
 
56
51
  declare type Context = Parameters<Create>[0];
@@ -65,14 +60,6 @@ declare const createRule: <Options extends readonly unknown[], MessageIds extend
65
60
  name: string;
66
61
  };
67
62
 
68
- export declare const default_alias_1: any[];
69
-
70
- export declare const default_alias_2: any[];
71
-
72
- export declare const default_alias_3: Options_2 | Options_2[] | ((overrideOptions: Options_2) => Options_2 | Options_2[] | Promise<Options_2 | Options_2[]>);
73
-
74
- export declare const default_alias_4: Record<string, any>;
75
-
76
63
  export declare function detectTanstackQueryImports(create: EnhancedCreate): Create;
77
64
 
78
65
  declare type EnhancedCreate = (context: Context, options: Options, helpers: Helpers) => ReturnType<Create>;
@@ -153,28 +140,10 @@ export declare const ExhaustiveDepsUtils: {
153
140
  getQueryFnNodes(queryFn: TSESTree.Property): Array<TSESTree.Node>;
154
141
  };
155
142
 
156
- export declare function expectArrayEqualIgnoreOrder<T>(a: Array<T>, b: Array<T>): void;
157
-
158
143
  export declare type ExtraRuleDocs = {
159
144
  recommended: 'strict' | 'error' | 'warn';
160
145
  };
161
146
 
162
- export declare function generateInterleavedCombinations<TData, TAdditional, TResult extends TData | TAdditional>(data: Array<TData> | ReadonlyArray<TData>, additional: Array<TAdditional> | ReadonlyArray<TAdditional>): Array<Array<TResult>>;
163
-
164
- export declare function generateInvalidPermutations(arr: ReadonlyArray<CheckedProperties>): Array<{
165
- invalid: Array<CheckedProperties>;
166
- valid: Array<CheckedProperties>;
167
- }>;
168
-
169
- export declare function generateInvalidPermutations_alias_1(arr: ReadonlyArray<CheckedProperties_2>): Array<{
170
- invalid: Array<CheckedProperties_2>;
171
- valid: Array<CheckedProperties_2>;
172
- }>;
173
-
174
- export declare function generatePartialCombinations<T>(arr: ReadonlyArray<T>, minLength: number): Array<Array<T>>;
175
-
176
- export declare function generatePermutations<T>(arr: Array<T>): Array<Array<T>>;
177
-
178
147
  export declare const getDocsUrl: (ruleName: string) => string;
179
148
 
180
149
  declare type Helpers = {
@@ -188,24 +157,6 @@ export declare const infiniteQueryFunctions: readonly ["infiniteQueryOptions", "
188
157
 
189
158
  export declare type InfiniteQueryProperties = (typeof checkedProperties)[number];
190
159
 
191
- /**
192
- * @param {Object} opts - Options for building configurations.
193
- * @param {string[]} opts.entry - The entry array.
194
- * @returns {import('tsup').Options}
195
- */
196
- export declare function legacyConfig(opts: {
197
- entry: string[];
198
- }): Options_2;
199
-
200
- /**
201
- * @param {Object} opts - Options for building configurations.
202
- * @param {string[]} opts.entry - The entry array.
203
- * @returns {import('tsup').Options}
204
- */
205
- export declare function modernConfig(opts: {
206
- entry: string[];
207
- }): Options_2;
208
-
209
160
  export declare type MutationFunctions = (typeof mutationFunctions)[number];
210
161
 
211
162
  export declare const mutationFunctions: readonly ["useMutation"];
@@ -233,8 +184,6 @@ export declare const NoRestDestructuringUtils: {
233
184
  isObjectRestDestructuring(node: TSESTree.Node): boolean;
234
185
  };
235
186
 
236
- export declare function normalizeIndent(template: TemplateStringsArray): string;
237
-
238
187
  declare type Options = Parameters<Create>[1];
239
188
 
240
189
  declare const plugin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/eslint-plugin-query",
3
- "version": "5.96.0",
3
+ "version": "5.96.1",
4
4
  "description": "ESLint plugin for TanStack Query",
5
5
  "author": "Eliya Cohen",
6
6
  "license": "MIT",