Skip to content

chore: vscode config - #21

Merged
Artmann merged 11 commits into
mainfrom
vscode-config
Oct 7, 2025
Merged

Artmann merged 11 commits into
mainfrom
vscode-config

Conversation

@jamesbhobbs

@jamesbhobbs jamesbhobbs commented Oct 2, 2025 •

Copy link
Copy Markdown
Member

Fixes #8

Summary by CodeRabbit

  • Chores

    • Added VS Code extension recommendations for Biome and Prettier to streamline setup.
    • Updated lint-staged/prettier invocation for Markdown/YAML files to use the project prettier script.
  • Style

    • Standardized editor formatting across JS/TS, React, JSON/JSONC using Biome by default.
    • Enabled format-on-save globally; added explicit quick fixes and organize-imports on save for JS/TS.
    • Configured Markdown and YAML to use Prettier.

@coderabbitai

coderabbitai Bot commented Oct 2, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds VS Code workspace config files under .vscode: extensions.json recommends biomejs.biome and esbenp.prettier-vscode; settings.json sets editor.formatOnSave globally, enables biome.enabled, and configures per-language default formatters and save actions: Biome for JavaScript, TypeScript (and React variants) and JSON/JSONC (with explicit quick fixes and organizeImports on save for JS/TS), Prettier for Markdown and YAML. package.json lint-staged invocation for Markdown/YAML is changed from pnpm exec prettier --write to pnpm run prettier. No exported/public code entities were modified.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Developer
  participant VS as VS Code
  participant Ext as .vscode config
  participant Lang as Language Detector
  participant BM as Biome (formatter)
  participant PR as Prettier (formatter)
  participant FS as File System

  Dev->>VS: Save file
  VS->>Ext: Read settings & extensions (formatter, formatOnSave)
  VS->>Lang: Detect language
  alt language is JS/TS/JSX/TSX or JSON/JSONC
    rect rgb(235,245,255)
      note right of BM: Biome set as default formatter
      VS->>BM: Run format on save (+ organizeImports/quickFixes for JS/TS)
      BM-->>VS: Formatted edits
    end
  else language is Markdown or YAML
    rect rgb(245,240,255)
      note right of PR: Prettier set as default formatter
      VS->>PR: Run format on save
      PR-->>VS: Formatted edits
    end
  end
  VS->>FS: Write formatted file
  FS-->>Dev: Save complete
Loading

Possibly related PRs

Suggested reviewers

  • Artmann
  • andyjakubowski
  • saltenasl

Pre-merge checks

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Linked Issues Check ⚠️ Warning The pull request updates VSCode formatting settings and tweaks lint-staged commands for markdown and YAML but does not include any configuration or rule sets for JavaScript or TypeScript linting as required by issue #8, such as adding an ESLint or Biome config file or updating scripts for code linting. Consequently, the core objective of deciding on and implementing a primary linting configuration remains unaddressed. Please include the selected linting tool’s configuration by adding a .eslintrc or .biomerc.json file and updating package.json scripts or lint-staged rules to apply linting to code files, ensuring that the repository-wide linting conventions are clearly defined and implemented.
Out of Scope Changes Check ⚠️ Warning The pull request introduces VSCode-specific settings, recommended extensions, and markdown/YAML lint-staged tweaks which fall outside the scope of deciding on a repository-wide linting configuration as described in issue #8. These editor and formatting changes do not directly contribute to selecting or applying a primary linting tool or rule set. Separate the editor configuration and markdown/YAML formatting updates into a dedicated PR, or adjust the objectives to explicitly include VSCode tooling changes, and focus this PR solely on implementing the chosen linting configuration for code files.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly describes the pull request as a chore for VSCode configuration and accurately reflects the main changes made to editor settings and recommended extensions.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

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

@codecov

codecov Bot commented Oct 2, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.67%. Comparing base (cf19cb0) to head (a484454).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #21   +/-   ##
=======================================
  Coverage   92.67%   92.67%           
=======================================
  Files          16       16           
  Lines         505      505           
  Branches      110      167   +57     
=======================================
  Hits          468      468           
  Misses         37       37           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jamesbhobbs
jamesbhobbs marked this pull request as ready for review October 2, 2025 15:11
@jamesbhobbs
jamesbhobbs requested a review from saltenasl as a code owner October 2, 2025 15:11

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between aef5fd0 and 39ada51.

📒 Files selected for processing (2)
  • .vscode/extensions.json (1 hunks)
  • .vscode/settings.json (1 hunks)
🧰 Additional context used
🪛 GitHub Actions: CI
.vscode/settings.json

[error] 6-6: lint/suspicious/noQuickfixBiome: The use of quickfix.biome is deprecated. Safe fix: Remove the code action. Found 2 occurrences across settings; potential fixes suggested.


[error] 14-14: lint/suspicious/noQuickfixBiome: The use of quickfix.biome is deprecated. Safe fix: Remove the code action. Found 2 occurrences across settings; potential fixes suggested.


[error] 22-22: lint/suspicious/noQuickfixBiome: The use of quickfix.biome is deprecated. Safe fix: Remove the code action. Found 2 occurrences across settings; potential fixes suggested.


[error] 30-30: lint/suspicious/noQuickfixBiome: The use of quickfix.biome is deprecated. Safe fix: Remove the code action. Found 2 occurrences across settings; potential fixes suggested.

.vscode/extensions.json

[error] 2-5: Formatter would have printed different content (extensions recommendations). Expected: ["biomejs.biome", "esbenp.prettier-vscode"]. Found: ["biomejs.biome", "esbenp.prettier-vscode"].

Comment thread .vscode/extensions.json Resolved
Comment thread .vscode/settings.json Resolved
@jamesbhobbs
jamesbhobbs marked this pull request as draft October 2, 2025 15:16
Base automatically changed from lint-reconfig to main October 2, 2025 15:41
@jamesbhobbs
jamesbhobbs marked this pull request as ready for review October 2, 2025 15:44

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 39ada51 and dfa0660.

📒 Files selected for processing (3)
  • .vscode/extensions.json (1 hunks)
  • .vscode/settings.json (1 hunks)
  • package.json (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-09-03T13:01:49.096Z
Learnt from: CR
PR: deepnote/vscode-extension#0
File: .github/instructions/typescript.instructions.md:0-0
Timestamp: 2025-09-03T13:01:49.096Z
Learning: Use `npm run format` to check code style

Applied to files:

  • package.json
📚 Learning: 2025-08-18T23:41:22.727Z
Learnt from: CR
PR: deepnote/deepnote#0
File: CONVENTIONS.md:0-0
Timestamp: 2025-08-18T23:41:22.727Z
Learning: Use pnpm over npm; check package.json for scripts

Applied to files:

  • package.json

Comment thread package.json Resolved
@jamesbhobbs
jamesbhobbs enabled auto-merge (squash) October 2, 2025 15:45
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.

Decide on linting configuration: ESLint, Biome, or blend

3 participants