Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/contributor/generators/biome_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Biome formatter and linter configuration. Writes `biome.json` and merges `lint`/
| Field | Value |
|-------|-------|
| Name | `biome_config` |
| Version | `0.1.0` |
| Version | `0.2.2` |
| Package | `generators/biome_config` |

---
Expand All @@ -32,7 +32,7 @@ None. `biome_config` writes the same baseline configuration for every project.

| Path | Description |
|------|-------------|
| `biome.json` | Biome schema, import organizer, linter (recommended rules), formatter (space, 2-space indent) |
| `biome.json` | Biome schema, linter (recommended rules), formatter (space, 2-space indent), scanner ignores for `.dot/` |

Also merges into:

Expand Down
7 changes: 3 additions & 4 deletions generators/biome_config/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ func (g *Generator) Version() string { return Manifest.Version }
func (g *Generator) Generate(ctx *dotapi.Context) error {
if err := ctx.State.UpdateJSON("biome.json", func(d *state.JSONDoc) error {
d.Merge(map[string]interface{}{
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
"organizeImports": map[string]interface{}{"enabled": true},
"$schema": "https://biomejs.dev/schemas/2.4.16/schema.json",
"linter": map[string]interface{}{
"enabled": true,
"rules": map[string]interface{}{"recommended": true},
Expand All @@ -27,7 +26,7 @@ func (g *Generator) Generate(ctx *dotapi.Context) error {
"indentWidth": 2,
},
"files": map[string]interface{}{
"ignore": []interface{}{".dot/"},
"experimentalScannerIgnores": []interface{}{".dot/"},
},
})
return nil
Expand All @@ -42,7 +41,7 @@ func (g *Generator) Generate(ctx *dotapi.Context) error {
"format": "biome format --write .",
},
"devDependencies": map[string]interface{}{
"@biomejs/biome": "^1.9.0",
"@biomejs/biome": "^2.4.16",
},
})
return nil
Expand Down
2 changes: 1 addition & 1 deletion generators/biome_config/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const BIOME_FILE = "biome.json"
// Depends on typescript_base since it modifies package.json scripts.
var Manifest = dotapi.Manifest{
Name: "biome_config",
Version: "0.1.0",
Version: "0.2.2",
Description: "Biome lint + format configuration",
DependsOn: []string{"typescript_base", "*"},
Outputs: []string{
Expand Down
Loading