chore(studio): remove require-safe-sql-fragment ESLint rule#46079
Conversation
SafeSqlFragment enforcement for executeSql is now handled by TS compilation. Removes the type-aware ESLint rule, its dedicated config, the ratchet baselines, the CI step, and the @typescript-eslint/utils dev dependency.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRemoves the type-aware SafeSqlFragment ESLint rule and its TypeScript-aware config, deletes the rule baseline entries, removes the related npm script and dev dependency, and simplifies the CI lint step to run only ChangesType-aware ESLint infrastructure removal
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 ResultsDetails
Flaky testsFeatures › filter-bar.spec.ts › Filter Bar › Basic Filter Operations › selecting a column without a value does not trigger a row request Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
…fesql-eslint-rule ; Conflicts: ; apps/studio/.github/eslint-rule-baselines.json
Braintrust eval report
|
I have read the CONTRIBUTING.md file.
YES
What kind of change does this PR introduce?
Refactor / chore.
What is the current behavior?
A custom type-aware ESLint rule (
studio/require-safe-sql-fragment) enforces that thesqlargument toexecuteSqlis aSafeSqlFragment. It runs in a separateeslint.type-checks.config.cjsand a dedicated CI ratchet step, and pulls in@typescript-eslint/utilsas a direct dev dependency.What is the new behavior?
SafeSqlFragmentenforcement is now handled entirely by TypeScript compilation. The ESLint rule, its dedicated config, the ratchet baselines for it, the CI step, and the@typescript-eslint/utilsdirect dev dependency have all been removed.Additional context
Summary by CodeRabbit