Skip to content

Commit

Permalink
fix(eslint-plugin): fix no-unstable-deps with ts-eslint >=8.10.0 (#8340)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored Nov 24, 2024
1 parent 9972595 commit bdafc84
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 313 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-plugin-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
"!src/__tests__"
],
"dependencies": {
"@typescript-eslint/utils": "^8.3.0"
"@typescript-eslint/utils": "^8.15.0"
},
"devDependencies": {
"@typescript-eslint/rule-tester": "^8.3.0",
"@typescript-eslint/rule-tester": "^8.15.0",
"combinate": "^1.1.11",
"eslint": "^9.15.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const rule = createRule({
node.specifiers.forEach((specifier) => {
if (
specifier.type === AST_NODE_TYPES.ImportSpecifier &&
specifier.imported.type === AST_NODE_TYPES.Identifier &&
reactHookNames.includes(specifier.imported.name)
) {
// Track alias or direct import
Expand Down
Loading

0 comments on commit bdafc84

Please sign in to comment.