-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
chore: bump deps #5813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: bump deps #5813
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| /* eslint-disable react-hooks/rules-of-hooks */ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainESLint rule 'react-hooks/rules-of-hooks' is not defined. The ESLint directive references a rule that doesn't exist in the current configuration. This means the directive has no effect and any violations it was intended to suppress will still be reported (or the linting will fail if strict mode is enabled). This issue likely stems from the dependency updates in this PR. Verify that Run the following script to verify the ESLint configuration and plugin installation: 🏁 Script executed: #!/bin/bash
# Check if eslint-plugin-react-hooks is installed and verify available rules
echo "=== Checking package.json for eslint-plugin-react-hooks ==="
cat package.json | jq '.devDependencies["eslint-plugin-react-hooks"], .dependencies["eslint-plugin-react-hooks"]'
echo -e "\n=== Checking workspace package.json files ==="
fd -t f "package.json" -x sh -c 'echo "File: {}"; cat {} | jq -r "select(.devDependencies[\"eslint-plugin-react-hooks\"] or .dependencies[\"eslint-plugin-react-hooks\"]) | \"Found in: \" + (input_filename // \"\")"' 2>/dev/null || fd -t f "package.json" -x sh -c 'echo "{}:"; cat {} | jq ".devDependencies[\"eslint-plugin-react-hooks\"], .dependencies[\"eslint-plugin-react-hooks\"]" | grep -v null'
echo -e "\n=== Checking ESLint config for react-hooks plugin ==="
fd -t f "eslint.config" -x cat {}
echo -e "\n=== Attempting to list available rules from plugin (if Node.js available) ==="
node -e "try { const plugin = require('eslint-plugin-react-hooks'); console.log('Available rules:', Object.keys(plugin.rules || {})); } catch(e) { console.log('Could not load plugin:', e.message); }" 2>&1 || echo "Node.js check skipped"Length of output: 22819 Configure The Either uncomment the plugin configuration in eslint.config.js to enable the rule, or remove the directive if the rule is not needed for this package. 🧰 Tools🪛 ESLint[error] 1-1: Definition for rule 'react-hooks/rules-of-hooks' was not found. (react-hooks/rules-of-hooks) 🤖 Prompt for AI Agents |
||
| import { | ||
| BaseRootRoute, | ||
| BaseRoute, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
ESLint rule 'react-hooks/rules-of-hooks' is not defined.
Same issue as in
packages/react-router/src/route.tsx: the ESLint directive references a rule that doesn't exist in the current configuration, rendering the directive ineffective.Verify that
eslint-plugin-react-hooksis properly installed and configured. See the verification script provided in the review comment forpackages/react-router/src/route.tsx(Line 1).🏁 Script executed:
Length of output: 1770
🏁 Script executed:
Length of output: 1552
🏁 Script executed:
Length of output: 650
🏁 Script executed:
Length of output: 263
🏁 Script executed:
Length of output: 213
🏁 Script executed:
Length of output: 1797
🏁 Script executed:
Length of output: 616
🏁 Script executed:
Length of output: 10928
Enable ESLint's react-hooks plugin in the configuration.
The
eslint-plugin-react-hookspackage is installed, but the plugin is not registered in the ESLint configuration (@tanstack/eslint-config). Thereact-hooks/rules-of-hooksrule is therefore undefined, making the/* eslint-disable react-hooks/rules-of-hooks */directive ineffective.Add the plugin to the ESLint configuration to resolve this issue in both
fileRoute.tsandroute.tsx.🧰 Tools
🪛 ESLint
[error] 1-1: Definition for rule 'react-hooks/rules-of-hooks' was not found.
(react-hooks/rules-of-hooks)
🤖 Prompt for AI Agents