-
Notifications
You must be signed in to change notification settings - Fork 3
ENG-908 Make lint not fail on database, utils #464
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
Conversation
|
Updates to Preview Branch (eng-908-make-lint-not-fail-on-database-utils) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
|
@CodeRabbit review. |
|
@maparent I'll review the changes in this PR. ✅ Actions performedReview triggered.
|
📝 WalkthroughWalkthroughIntroduces editor LSP settings for ESLint, updates ESLint configs (rule addition, config source change, and new per-package config), adjusts a database migration script to parse stderr and trigger type generation when migrations apply, and reformats Supabase SQL schema files without functional changes. Changes
Sequence Diagram(s)sequenceDiagram
actor Dev as Developer
participant M as migrate.ts
participant S as Supabase CLI
participant N as npm (gentypes)
Dev->>M: Run migrate script
M->>S: spawnSync("supabase", ["migrate", ...])
S-->>M: status, stderr (text)
alt Non-zero status and stderr suggests "--include-all"
M->>Dev: Log stderr and retry suggestion
M->>Dev: Exit with status
else Continue
M->>M: Parse stderr for "Applying migration ..."
alt One or more migrations applied
M->>N: spawnSync("npm", ["run", "gentypes"], stdio: inherit)
N-->>M: status
alt gentypes failed
M->>Dev: Exit with error
else
M->>Dev: Done
end
else No migrations applied
M->>Dev: Log "No migrations applied"
end
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Pre-merge checks✅ Passed checks (3 passed)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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 |
mdroidian
left a comment
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.
|
It was a global lint, and worked for me. Out now, I'll check again later tonight. |
|
ok I put an eslint command that seemed to work in my editor and not in eslint. Corrected. |
* Apply sqlruff lints * One valid lint on migrate.ts * Tweak lint rules to allow `while (true)` * Wrong lint base in @repo/database
3aaf87a to
183aed1
Compare
mdroidian
left a comment
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.
|
ok I tried something else that made a warning go away on my side, it may solve your error? |
mdroidian
left a comment
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.
👍
* * Missing eslint.config in utils * Apply sqlruff lints * One valid lint on migrate.ts * Tweak lint rules to allow `while (true)` * Wrong lint base in @repo/database * remove eslint9-dependent setting. * declare eslint as module



Make sure that
turbo lintdoes not fail.https://linear.app/discourse-graphs/issue/ENG-908/make-lint-not-fail-on-database-utils
Summary by CodeRabbit
New Features
Chores