🐛 Buggy side-effect caused by previous fix that made biome.json(c)
un-ignore-able
#2990
Closed
1 task done
Labels
A-Project
Area: project
good first issue
Good for newcomers
S-Bug-confirmed
Status: report has been confirmed as a valid bug
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Environment information
What happened?
To replicate the issue (after setting up the same env as mine):
biome.json
, specify:Run
npx biome check --apply .
(or yarn, or npmp, or predefined script inpackage.json
);biome.json
will be formatted with trailing commas, which breaks the json standard for a root level config data file. To demonstrate, runnpx biome check --apply .
again and receive this error:biome.json
can't be ignored #1531 specifiedbiome.json
to be un-ignore-able, meaning that while the rest of the**/*.json
files can be ignored or fine-grained controlled to add/not add commas (i.e.package.json
),biome.json
will always be incorrectly formatted.Expected result
biome.json
should be (by design, not by user choice) untouched by the trailing comma formatting option.I would further suggest that user would not be able to specify to apply formatting to the file to avoid confusion.
In short:
Given the
trailingCommas
formatter for json is set toall
When running
npx biome check --apply .
Then
biome.json
should not be affectedCode of Conduct
The text was updated successfully, but these errors were encountered: