Commit 1a98fc8
authored
feat(build-tools): Add Biome 2.x config reader with version auto-detection (#25969)
Adds Biome 2.x configuration reader for fluid-build with automatic
version detection. Biome 2.x changed from separate `include`/`ignore`
fields to a unified `includes` field with negation patterns.
## Key Changes
**New modules:**
- `biome2Config.ts` - Biome 2.x config reader with unified `includes`
field and re-inclusion pattern support
- `biome2ConfigTypes.d.ts` - Auto-generated types from Biome 2.x JSON
schema
- `biomeVersion.ts` - Version detection from package.json or CLI
- `biomeConfigUtils.ts` - Shared utilities (config loading, extends
resolution, factory, interface)
**Refactored:**
- `biomeConfig.ts` - Renamed to `BiomeConfigReaderV1` for v1-specific
implementation
- `biomeTasks.ts` - Uses `createBiomeConfigReader()` factory for
auto-detection
## Features
- Auto-detects Biome version and returns appropriate reader (v1 or v2)
- Supports `root` field for automatic parent config discovery
- Handles both explicit `extends` and implicit parent config merging
- Supports `//` microsyntax for extending root config
- Comprehensive test coverage for v2 config scenarios1 parent 620f26a commit 1a98fc8
File tree
44 files changed
+8635
-41
lines changed- build-tools
- packages/build-tools
- src
- common
- fluidBuild/tasks/leaf
- test
- data/biome2
- array-extends-test
- src
- circular-test
- directory-input-test
- src
- linter-patterns-test
- format-only
- lint-only
- src
- microsyntax-test
- packages/nested/child
- src
- nested-root
- child
- src
- pkg-a
- include-formatter
- pkg-a-include
- include-formatter
- include-linter
- pkg-a-ignore
- pkg-b
- pkg-b-include
- reinclusion-test
- excluded-dir
- reincluded
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+8635
-41
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
0 commit comments