-
-
Notifications
You must be signed in to change notification settings - Fork 664
Closed
Copy link
Labels
A-FormatterArea: formatterArea: formatterL-JSONLanguage: JSON and super languagesLanguage: JSON and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug
Description
β¦ even when configured to add trailing commas.
it works fine for files with a .jsonc
file extension, and it worked fine with 1.9.4.
Environment information
CLI:
Version: 2.0.5
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_CONFIG_PATH: unset
BIOME_THREADS: unset
NO_COLOR: unset
TERM: xterm-256color
JS_RUNTIME_VERSION: v20.2.0
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: yarn/4.9.2
Biome Configuration:
Status: Loaded successfully
Path: biome.jsonc
Formatter enabled: true
Linter enabled: true
Assist enabled: true
VCS enabled: true
Formatter:
Format with errors: unset
Indent style: unset
Indent width: unset
Line ending: unset
Line width: unset
Attribute position: unset
Bracket spacing: unset
Includes: unset
JavaScript Formatter:
Enabled: unset
JSX quote style: unset
Quote properties: unset
Trailing commas: unset
Semicolons: As needed
Arrow parentheses: unset
Bracket spacing: unset
Bracket same line: unset
Quote style: Single Quotes
Indent style: unset
Indent width: unset
Line ending: unset
Line width: unset
Attribute position: unset
JSON Formatter:
Enabled: unset
Indent style: unset
Indent width: unset
Line ending: unset
Line width: unset
Trailing Commas: unset
Expand lists: unset
CSS Formatter:
Enabled: unset
Indent style: unset
Indent width: unset
Line ending: unset
Line width: unset
Quote style: unset
GraphQL Formatter:
Enabled: unset
Indent style: unset
Indent width: unset
Line ending: unset
Line width: unset
Bracket spacing: unset
Quote style: unset
Workspace:
Open Documents: 0
Configuration
{
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
},
"files": {
"includes": ["**", "!.pnp*", "!.yarn/**"],
"ignoreUnknown": true,
},
"overrides": [
{
"includes": [".vscode/*.json", "**/*.jsonc"],
"json": {
"formatter": {
"trailingCommas": "all",
},
"parser": {
"allowComments": true,
"allowTrailingCommas": true,
},
},
},
],
}
Playground link
https://github.com/flying-sheep/biome-repro-jsonc
Code of Conduct
- I agree to follow Biome's Code of Conduct
Metadata
Metadata
Assignees
Labels
A-FormatterArea: formatterArea: formatterL-JSONLanguage: JSON and super languagesLanguage: JSON and super languagesS-Bug-confirmedStatus: report has been confirmed as a valid bugStatus: report has been confirmed as a valid bug