Skip to content

fix: Add allowComments and allowTrailingCommas to turbo.json schema#11579

Merged
anthonyshew merged 2 commits intovercel:mainfrom
ddmoney420:fix/allow-comments-trailing-commas-in-schema
Jan 31, 2026
Merged

fix: Add allowComments and allowTrailingCommas to turbo.json schema#11579
anthonyshew merged 2 commits intovercel:mainfrom
ddmoney420:fix/allow-comments-trailing-commas-in-schema

Conversation

@ddmoney420
Copy link
Copy Markdown
Contributor

Summary

Adds allowComments and allowTrailingCommas properties to the turbo.json schema to prevent VSCode warnings when using JSONC features.

Fixes #11566

Problem

When formatting turbo.jsonc with tools like oxfmt or prettier that add trailing commas, VSCode shows warnings like "Trailing comma jsonc(519)" because the schema doesn't declare support for JSONC features.

Solution

Added two lines to packages/turbo-types/schemas/schema.json:

"allowComments": true,
"allowTrailingCommas": true,

Test plan

  • Open a turbo.jsonc file with trailing commas in VSCode
  • Verify no "Trailing comma" warnings appear

🤖 Generated with Claude Code

This fixes VSCode warnings about trailing commas in turbo.jsonc files
when formatted with tools like oxfmt that add trailing commas to JSONC.

Fixes vercel#11566

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ddmoney420 ddmoney420 requested a review from a team as a code owner January 29, 2026 15:51
@ddmoney420 ddmoney420 requested review from tknickman and removed request for a team January 29, 2026 15:51
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jan 29, 2026

@ddmoney420 is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread packages/turbo-types/schemas/schema.json Outdated
Copy link
Copy Markdown
Contributor

@anthonyshew anthonyshew left a comment

Choose a reason for hiding this comment

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

Please see the bot comment!

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jan 30, 2026

Congrats! CodSpeed is installed 🎉

🆕 4 new benchmarks were detected.

You will start to see performance impacts in the reports once the benchmarks are run from your default branch.

Detected benchmarks


Open in CodSpeed

The Rust schema generator now adds these JSONC properties so CI
regeneration won't overwrite manually-added entries.
@anthonyshew anthonyshew force-pushed the fix/allow-comments-trailing-commas-in-schema branch from 8d30f36 to cf34ec9 Compare January 30, 2026 22:48
@anthonyshew anthonyshew changed the title fix: add allowComments and allowTrailingCommas to turbo.json schema fix: Add allowComments and allowTrailingCommas to turbo.json schema Jan 30, 2026
@anthonyshew anthonyshew changed the title fix: Add allowComments and allowTrailingCommas to turbo.json schema fix: Add allowComments and allowTrailingCommas to turbo.json schema Jan 31, 2026
Copy link
Copy Markdown
Contributor

@anthonyshew anthonyshew left a comment

Choose a reason for hiding this comment

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

I went ahead and fixed this up. Thanks for getting things moving here!

@anthonyshew anthonyshew merged commit ba0fcb1 into vercel:main Jan 31, 2026
102 of 113 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.

allowTrailingCommas in turbo.jsonc

2 participants