Repository navigation
chore(studio): add valtio and react-hook-form ESLint ratchet rules - #48037
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughStudio’s ESLint configuration adds Valtio and React Hook Form plugins, wraps React Hook Form rules for ESLint 9 compatibility, enables related rules, and updates ratchet and baseline configurations. ChangesStudio ESLint rule expansion
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎭 Playwright Test Results (tanstack)Details
Flaky testsFeatures › table-editor.spec.ts › table editor › shortcut saves fk before column update Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
a28e6bf to
22bdfd9
Compare
Add eslint-plugin-valtio and eslint-plugin-react-hook-form rules as warnings, wired into the existing lint ratchet so current violations are grandfathered and only new ones fail CI. [email protected] uses the removed ESLint 8 context.getScope(), so it is wrapped with fixupPluginRules from @eslint/compat to run under flat config / ESLint 9. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
destructuring-formstate, no-access-control, and no-nested-object-setvalue have no existing violations, so enforce them as errors. Rules with existing violations (no-use-watch, both valtio rules) stay as warnings under the ratchet. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
24b5781 to
ba99565
Compare
Braintrust eval reportEvals in progress... ⌛ |
…fomap-entry-for-pitr-archiving-stale' into hunleyd/indata-979-studio-lintinfomap-entry-for-pitr-archiving-stale * origin/hunleyd/indata-979-studio-lintinfomap-entry-for-pitr-archiving-stale: (35 commits) chore: simplify CPU messaging for compute sizes (#48109) chore(studio): add valtio and react-hook-form ESLint ratchet rules (#48037) feat: Add ai/python federated content and data (#48043) feat: Add ai-skills federated content and data (#48045) feat: Add deployment/ci federated content and data (#48041) fix(studio): wire up siwc-enabled query param opt-in on sign-in/sign-up (#48126) fix(studio): stop stacking overlaid area series in report charts (#48034) Update Dev toolbar to support filtering feature flags (#48137) Update dev toolbar to support mocking org restrictions (#48136) feat: Add terraform federated content and data (#48010) Chore/add sessions database connections (#48094) fix(studio): guard panel collapse/resize on narrow viewports (#48098) Landing page agent focus (#47989) fix(studio): chip away explicit-tabindex ratchet debt (#48040) fix(studio): untangle nested buttons in editor tabs (#48101) fix(docs): broken link (#48117) docs: add VS Code to the AI coding agent plugin install picker (#48108) docs: add Kimi Code to MCP and AI coding agent plugin setup (#48099) fix: preserve function responses (#47920) fix(assistant): SQL approval buttons do nothing (#48102) ...
I have read the CONTRIBUTING.md file.
YES
What kind of change does this PR introduce?
Chore / tooling — adds new ESLint rules for
valtioandreact-hook-form.What is the current behavior?
Studio uses
valtioandreact-hook-formheavily, but neither library's dedicated ESLint plugin was installed, so their common API pitfalls were only caught at runtime.What is the new behavior?
Adds
eslint-plugin-valtioandeslint-plugin-react-hook-form(6 rules total) aswarn, wired into the existing lint ratchet (scripts/ratchet-rules.json+ baselines) so current violations are grandfathered and only new ones fail CI — no existing code is changed. Since[email protected]still calls the removed ESLint 8context.getScope(), it is wrapped withfixupPluginRulesfrom@eslint/compatso its rules run under flat config / ESLint 9.Additional context
Baselines captured:
valtio/state-snapshot-rule(1),valtio/avoid-this-in-proxy(1),react-hook-form/no-use-watch(77), and the three recommended react-hook-form rules (0 each).Summary by CodeRabbit
Code Quality
Maintenance