Skip to content

style(landing/codeExamples): add blank line after 'import' in svelte examples#862

Merged
LadyBluenotes merged 2 commits intoTanStack:mainfrom
sukvvon:style/svelte-import-blank-line
Apr 26, 2026
Merged

style(landing/codeExamples): add blank line after 'import' in svelte examples#862
LadyBluenotes merged 2 commits intoTanStack:mainfrom
sukvvon:style/svelte-import-blank-line

Conversation

@sukvvon
Copy link
Copy Markdown
Contributor

@sukvvon sukvvon commented Apr 26, 2026

Summary

Add a blank line after the import statement in all svelte landing code examples (query, form, virtual, table) to align with the convention used by other framework examples (react, vue, solid, angular, etc.).

Why

All non-svelte examples in codeExamples.server.tsx separate import from the rest of the code with a blank line. Only svelte examples were missing this separator, making them visually inconsistent.

Summary by CodeRabbit

Release Notes

  • Style
    • Improved formatting of code examples for better readability.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 26, 2026

👷 Deploy request for tanstack pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit f96c38b

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 26, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 061696d6-c150-4931-b788-e460ebcc46db

📥 Commits

Reviewing files that changed from the base of the PR and between 9ab9eb4 and f96c38b.

📒 Files selected for processing (1)
  • src/components/landing/codeExamples.server.tsx

📝 Walkthrough

Walkthrough

Blank lines are inserted into code-string templates in the landing page examples to improve readability. No functional logic or runtime behavior is altered.

Changes

Cohort / File(s) Summary
Code Examples Formatting
src/components/landing/codeExamples.server.tsx
Added blank lines within Svelte template code strings (query, form, virtualizer, table examples) for improved readability. No logic or behavior changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A line break here, a space just there,
The code examples now breathe fresher air,
No logic bent, no features new,
Just whitespace magic to make them shine through!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding blank lines after import statements in Svelte examples to align with existing conventions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@LadyBluenotes LadyBluenotes merged commit 1e63ccf into TanStack:main Apr 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants