Skip to content

Commit c55e9b3

Browse files
committed
Add a changeset
1 parent 0fb3dba commit c55e9b3

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.changeset/blue-parts-lie.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Fix --stdin-file-path with nested configuration
6+
7+
Previously, --stdin-file-path was not using nested configuration.
8+
For example, with the following structure:
9+
10+
11+
```
12+
├── biome.json
13+
└── subdirectory
14+
├── biome.json
15+
├── lib.js
16+
└── lib.ts
17+
```
18+
19+
A command like `biome format --stdin-file-path=subdirectory/lib.ts <
20+
subdirectory/lib.ts` would fail to use configuration from
21+
`subdirectory/biome.json`, and the output of stdin mode formatting differed
22+
from the result of `biome format .`, or failed to run at all. Now it is
23+
consistent.
24+
25+
Fixes #8233.

e2e-tests/stdin-nested-config/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12
set -euo pipefail
23

34
TEMP=$(mktemp)

0 commit comments

Comments
 (0)