@tanstack/eslint-plugin-query
Advanced tools
Comparing version 5.61.3 to 5.61.4
import { AST_NODE_TYPES, TSESLint, TSESTree } from '@typescript-eslint/utils'; | ||
export declare const ASTUtils: { | ||
isNodeOfOneOf<T extends AST_NODE_TYPES>(node: TSESTree.Node, types: readonly T[]): node is TSESTree.Node & { | ||
isNodeOfOneOf<T extends AST_NODE_TYPES>(node: TSESTree.Node, types: ReadonlyArray<T>): node is TSESTree.Node & { | ||
type: T; | ||
@@ -8,4 +8,4 @@ }; | ||
isIdentifierWithName(node: TSESTree.Node, name: string): node is TSESTree.Identifier; | ||
isIdentifierWithOneOfNames<T_1 extends string[]>(node: TSESTree.Node, name: T_1): node is TSESTree.Identifier & { | ||
name: T_1[number]; | ||
isIdentifierWithOneOfNames<T extends Array<string>>(node: TSESTree.Node, name: T): node is TSESTree.Identifier & { | ||
name: T[number]; | ||
}; | ||
@@ -12,0 +12,0 @@ isProperty(node: TSESTree.Node): node is TSESTree.Property; |
@@ -37,8 +37,9 @@ import { TSESTree } from "@typescript-eslint/utils"; | ||
enhancedRuleInstructions[instruction] = (node) => { | ||
var _a, _b; | ||
var _a; | ||
if (instruction in detectionInstructions) { | ||
(_a = detectionInstructions[instruction]) == null ? void 0 : _a.call(detectionInstructions, node); | ||
} | ||
if (ruleInstructions[instruction]) { | ||
return (_b = ruleInstructions[instruction]) == null ? void 0 : _b.call(ruleInstructions, node); | ||
const ruleInstruction = ruleInstructions[instruction]; | ||
if (ruleInstruction) { | ||
return ruleInstruction(node); | ||
} | ||
@@ -45,0 +46,0 @@ return void 0; |
{ | ||
"name": "@tanstack/eslint-plugin-query", | ||
"version": "5.61.3", | ||
"version": "5.61.4", | ||
"description": "ESLint plugin for TanStack Query", | ||
@@ -5,0 +5,0 @@ "author": "Eliya Cohen", |
@@ -45,2 +45,3 @@ import { AST_NODE_TYPES } from '@typescript-eslint/utils' | ||
): TSESTree.Property | undefined { | ||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion | ||
return properties.find((x) => | ||
@@ -47,0 +48,0 @@ ASTUtils.isPropertyWithIdentifierKey(x, key), |
@@ -83,5 +83,7 @@ import { TSESTree } from '@typescript-eslint/utils' | ||
const ruleInstruction = ruleInstructions[instruction] | ||
// TODO: canReportErrors() | ||
if (ruleInstructions[instruction]) { | ||
return ruleInstructions[instruction]?.(node) | ||
if (ruleInstruction) { | ||
return ruleInstruction(node) | ||
} | ||
@@ -88,0 +90,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
250394
3119